{"version":"2.1.330","anchor":"uiopen-with-focus-refused-from-a-tool-hook-when-no-surface","canonical_anchor":"uiopen-with-focus-refused-from-a-tool-hook-when-no-surface","heading":"Plugins can no longer open a focused pane from a tool hook with no screen attached","tier":"notice","area":"Plugins","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/uiopen-with-focus-refused-from-a-tool-hook-when-no-surface","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Plugins can no longer open a focused pane from a tool hook with no screen attached\n\nA plugin that calls `ui.open` with focus from a tool hook while no screen is attached is now refused and told to use `ui.ask`\n\n**What**\n\nA plugin calling `ui.open` with focus from a tool hook is now refused when no surface, meaning a screen that can show the pane, has attached. A tool hook is plugin code that runs around Claude's tool calls. The refusal tells the plugin to ask through `ui.ask` instead.\n\n**Why**\n\nThis stops Claude Code hanging while it waits for an answer in a pane that nobody can see.\n\n- Area: Plugins\n- Names: `ui.open`, `ui.ask`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}