{"version":"2.1.326","anchor":"hook-lookup-gate-for-tool-detach-split-out-and-now-fails-clo","canonical_anchor":"hook-lookup-gate-for-tool-detach-split-out-and-now-fails-clo","heading":"Tool calls with after-call hooks stay in the foreground if the hook check fails","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/hook-lookup-gate-for-tool-detach-split-out-and-now-fails-clo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Tool calls with after-call hooks stay in the foreground if the hook check fails\n\nIf Claude Code can't check a tool's after-call hooks, the tool call now stays in the foreground instead of moving to the background\n\n**What**\n\nClaude Code can move some tool calls to the background so that they finish while the conversation goes on. A tool call is one action Claude takes, such as running a command. Before it moves a call, Claude Code checks whether any hooks would run on the result. Hooks are your own scripts. The ones checked here are `PostToolUse`, `PostToolUseFailure` and `PostToolBatch`.\n\nThat check is now done separately. If looking up the hooks fails, the call does not move to the background. The test for whether a tool counts as having a hook also changed.\n\n**Why**\n\nTool calls whose results your hooks need to see stay in the foreground more reliably.\n\n- Flag `tengu_tool_detach`: Not enough to say (read for one account on one subscription tier against v2.1.326; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Hooks\n- Names: `PostToolUse`, `PostToolUseFailure`, `PostToolBatch`, `tengu_tool_detach`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}