{"version":"2.1.333","anchor":"plugin-function-hooks-gain-registrationdispose-uititleui","canonical_anchor":"plugin-function-hooks-gain-registrationdispose-uititleui","heading":"Plugin hooks can now remove registrations and wait on dialogs","tier":"internal","area":"Plugin Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-function-hooks-gain-registrationdispose-uititleui","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin hooks can now remove registrations and wait on dialogs\n\nPlugin hooks can now remove agents, commands and tools they registered, and `ui.open` can wait for the pane to close\n\n**Unclear.** It is not clear whether this plugin runtime is available to all users.\n\n**What**\n\nPlugins that run code inside Claude Code have several new abilities:\n\n- `registration.dispose`: removes an agent, command or tool the plugin registered, by kind and name.\n\n- `ui.title` and `ui.verbs`: new events that tell Claude Code to refresh a title or a list of actions.\n\n- `isUnnamed`: a new true or false option when registering a command.\n\n- `wait` on `ui.open`: a plugin can now open a pane and wait until it closes. This is refused if called from that pane's own `ui.close` hook.\n\nWhen a plugin is removed, Claude Code now refreshes its list of agents. There is also a new way to stream updates while plugin events are handled.\n\n**Why**\n\nPlugin authors can now take back things they registered and wait for a user to finish with a dialog before carrying on.\n\n- Area: Plugin Hooks\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}