fix(babysitter): avoid double prompt gate

This commit is contained in:
YeonGyu-Kim
2026-05-19 13:48:55 +09:00
parent 44ef5dec1d
commit bb75751410
3 changed files with 92 additions and 25 deletions
@@ -14,6 +14,10 @@ const RAW_PROMPT_ALLOWLIST = new Map<string, string>([
path.join(SOURCE_ROOT, "plugin", "build-team-idle-wake-hint-client.ts"),
"binds SDK Session.promptAsync/.status into a narrow facade consumed only by gate-routed team-idle-wake-hint dispatch; performs no direct dispatch itself",
],
[
path.join(SOURCE_ROOT, "plugin", "unstable-agent-babysitter.ts"),
"binds SDK Session.prompt/.promptAsync into a narrow facade consumed only by gate-routed unstable-agent-babysitter dispatch; performs no direct dispatch itself",
],
[
path.join(SOURCE_ROOT, "hooks", "session-recovery", "recover-unavailable-tool.ts"),
"runtime type guard checks promptAsync presence before gate-routed dispatchInternalPrompt",