feat(babysitting): make unstable-agent-babysitter always-on by default
Remove the 'enabled' flag from babysitting config - the hook now runs automatically when not disabled via disabled_hooks. This simplifies configuration and makes the unstable model monitoring a default behavior. BREAKING CHANGE: babysitting.enabled config option is removed. Use disabled_hooks: ['unstable-agent-babysitter'] to disable the hook instead.
This commit is contained in:
@@ -8,7 +8,6 @@ const COOLDOWN_MS = 5 * 60 * 1000
|
||||
const THINKING_SUMMARY_MAX_CHARS = 500
|
||||
|
||||
type BabysittingConfig = {
|
||||
enabled?: boolean
|
||||
timeout_ms?: number
|
||||
}
|
||||
|
||||
@@ -187,7 +186,6 @@ export function createUnstableAgentBabysitterHook(ctx: BabysitterContext, option
|
||||
|
||||
const eventHandler = async ({ event }: { event: { type: string; properties?: unknown } }) => {
|
||||
if (event.type !== "session.idle") return
|
||||
if (options.config?.enabled !== true) return
|
||||
|
||||
const props = event.properties as Record<string, unknown> | undefined
|
||||
const sessionID = props?.sessionID as string | undefined
|
||||
|
||||
Reference in New Issue
Block a user