Before submitting#
Area#
apps/server, apps/web
Steps to reproduce#
- Add a Claude Code
UserPromptSubmit hook that blocks the prompt, for example one that exits 2 with a reason on stderr (or returns {"decision":"block","reason":"..."}).
- Open a Claude thread in T3 Code and send any message.
Expected behavior#
T3 shows that the hook dropped the prompt and shows the hook's reason. In the terminal CLI the same event appears as a visible warning notice, and the user can act on it (for example by sending again).
Actual behavior#
The hook and Claude Code both behave correctly: the prompt is blocked and no turn runs, as intended. The bug is that T3 never shows the notice explaining the block. Nothing is rendered, and no warning or error appears. The message looks sent, but the thread just sits there. The only trace is in the Claude session transcript (below).
The CLI records the drop as a system message with subtype: "informational", level: "warning", preventContinuation: true and promptSubmitEnding.ending.kind: "dropped_by_hook". As far as I can tell T3 has no handler for system/informational, so this message is ignored.
In my own transcripts, 10 of the 13 hook-dropped prompts I found came from T3 (entrypoint: sdk-ts) between Oct 13 and Oct 18. In two of them I sent /compact about 2 minutes later, because I didn't know the turn had been dropped.
Impact#
Major degradation or frequent failure
Version or commit#
T3 Code (Beta) desktop 0.1.0 · Claude Code 2.1.302
Environment#
macOS (Darwin 25.6.0), Claude provider through the Agent SDK (CLAUDE_CODE_ENTRYPOINT=sdk-ts)
Logs or stack traces#
{"type":"system","subtype":"informational",
"content":"Prompt dropped by a hook: <hook reason>",
"level":"warning","preventContinuation":true,
"promptSubmitEnding":{"ending":{"kind":"dropped_by_hook","reason":"<hook reason>"},"promptKept":false},
"entrypoint":"sdk-ts","version":"2.1.302"}
Workaround#
Make the hook warn instead of block (no decision: block / exit 2), so the prompt always goes through. The hook's message is still invisible in T3.
Related#
Narrower than #18658 (mod UI: panes, status line, toasts, commands). That issue says plain hooks "still work". The hook itself works in T3 (it blocks the prompt), but its explanation is lost, so the block looks like a swallowed message. #15827 (closed) rendered ui_status / ui_toast but not system/informational.
Note
Grok responding on behalf of Julius.
Confirmed on main. The Claude adapter (
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts) has no handler forsystemmessages with subtypeinformational, so a hook's block reason never reaches the thread.The Agent SDK version T3 pins already defines this message (
SDKInformationalMessage), and its docs name a UserPromptSubmit hook's block reason as one of the things it carries. The adapter already renders some system messages as thread notices (for examplemodel_refusal_fallbackbecomes asystem_noticeitem), so this is a missing mapping, not a missing UI.This is narrower than #18658 and separate from #15827, which covered
ui_statusandui_toast.Keeping this open as a bug. Your workaround of making the hook warn instead of block is the way to avoid the silent drop for now.