illogical inbox as a SessionStart hook holds headless claude -p forever #124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in S24 (2026-10-03). With illogical's hooks in ~/.claude/settings.json,
claude -p "say hi"(2.1.289) never answers: the SessionStart hookillogical inbox(asyncRewake, timeout 86400) is waited on in print mode, and the run ends with 'No messages returned from query' when killed.--setting-sources project,localanswers in 4.6 s. The same happens through claude-agent-acp when a client's_meta.claudeCode.optionsdoesn't setsettingSources: [](illogical's own blocks do, so they're fine).Fix:
illogical inboxshould return at once when the session isn't one a person drives (print/SDK entrypoints, e.g. CLAUDE_CODE_ENTRYPOINT, or the hook input), or SessionStart shouldn't use it. Test:claude -pwith the installed hooks answers. Part of the Fountain track run (BRIEF-fountain.md).Merged.
illogical inboxexits 0 at once whenCLAUDE_CODE_SESSION_ATTENDED=0, or, when that's unset, when the entrypoint starts withsdk-. With the hooks installed,claude -panswered in 4.5 s; the old build was still waiting at the 40 s timeout. macOS CI timed out twice on team_answers (a permission-hook test). On jake-mini, run directly, it passes every time on both main and this branch (about 5 s), so it's a timing flake under CI load.