{"version":"2.1.334","anchor":"hooks-can-no-longer-smuggle-changed-elicitation-content-unc","canonical_anchor":"hooks-can-no-longer-smuggle-changed-elicitation-content-unc","heading":"ElicitationResult hooks handled more strictly for unconfirmed servers and aborted requests","tier":"notice","area":"Hooks","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/hooks-can-no-longer-smuggle-changed-elicitation-content-unc","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### ElicitationResult hooks handled more strictly for unconfirmed servers and aborted requests\n\nAn `ElicitationResult` hook that changes content for an unconfirmed MCP server now becomes a decline, and a hook error on an aborted accept now cancels\n\n**Unclear.** It is not clear when Claude Code treats an MCP server as unconfirmed.\n\n**What**\n\nAn MCP server is an outside tool server that Claude Code can connect to. Such a server can ask you a question during a session, which is called an elicitation. An `ElicitationResult` hook is a script you set up that runs after you answer, before your answer is sent back to the server. Its handling has been tightened in several places:\n\n- Changed content for an unconfirmed server: if the hook changes the content of the answer and the server is unconfirmed, the answer is now turned into a decline. Before, the hook's action was only passed through for decline or cancel.\n\n- `reloadSkills` is now only honoured when there is no unconfirmed server.\n\n- Hook errors after an abort: if the hook throws an error after the request was aborted and the action was accept, the result is now `{ action: \"cancel\" }`. Before, the error was logged and the answer went back with its original action.\n\n**Why**\n\nA hook can no longer slip altered content through to an MCP server you have not confirmed, and an elicitation that was aborted is no longer reported to the server as accepted.\n\n- Area: Hooks\n- Names: `ElicitationResult`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: yes"}