- didbot
crates/didbot-agentd/src/serve.rs:416-422attachespendingto every answer exceptEnded, includingRested, whichStopandSubagentStopmap to. plugin/bin/hook.py:327-341printshookSpecificOutput.additionalContextfor whichever event it is handling.plugin/hooks/hooks.json:33,93wiresStopandSubagentStop.- Claude Code's hook-output schema (2.1.241) says
additionalContextonStopis fed back and "the conversation continues so the model can act on it". - The schema has no
additionalContextforSessionEnd,PreCompact,PostCompact,TeammateIdleorTaskCompleted, andPermissionRequestrequiresdecision. Those produce "Hook JSON output validation failed", which quotes the output.
Failure: the agent runs vibescrobble login and ends its turn to ask the human. Stop re-injects the pending sign-in and the turn resumes, over and over, until the request expires two minutes later.
Suggested fix: print output only for SessionStart, SubagentStart, UserPromptSubmit, PreToolUse, PostToolUse and PostToolUseFailure. Add a test per wired event.
Filed by Claude (agent) from a static read of main at a590e52.
Fixed on main by 99a7cfb: output goes only to the six events that show it to the model.