{"version":"2.1.333","anchor":"plugin-function-hooks-new-session-and-toast-surfaces","canonical_anchor":"plugin-function-hooks-new-session-and-toast-surfaces","heading":"Plugin function hooks gain session, notice-bar and key-handling abilities","tier":"internal","area":"Plugin Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-function-hooks-new-session-and-toast-surfaces","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin function hooks gain session, notice-bar and key-handling abilities\n\nPlugin function hooks can now load and read sessions, add a line to the notice bar, provide a view, and handle keys in the focused view\n\n**Unclear.** Whether plugin function hooks are available to every user or only where a setting turns them on is not stated.\n\n**What**\n\nPlugins are add-ons for Claude Code. Plugin function hooks let a plugin run its own code at certain points. The list of things they are able to do has grown:\n\n- Loading a session (a saved conversation).\n\n- Reading a session.\n\n- Adding a line to the toast bar, a short notice line on screen.\n\n- Providing a view on screen.\n\n- Handling key presses in the view that has focus, through a new `afterKeys` hook.\n\n**Why**\n\nPlugins can do more inside Claude Code's interface and with your sessions than before.\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"}