{"version":"2.1.259","anchor":"new-pluginhook-events-promptcontext-and-sessionstart","canonical_anchor":"new-pluginhook-events-promptcontext-and-sessionstart","heading":"New plugin\/hook events 'prompt.context' and 'session.start'","tier":"use","area":"Plugin Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259\/e\/new-pluginhook-events-promptcontext-and-sessionstart","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259","markdown":"### New plugin\/hook events 'prompt.context' and 'session.start'\n\nTwo hook events arrive: session.start fires on terminal session start, and prompt.context is registered but has no emitter here.\n\nTwo new hook\/event kinds, `prompt.context` and `session.start`, are now recognized for host-plugin messaging validation and payload-shape mapping. `session.start` is wired up: the terminal REPL calls a new `_raiseSessionStart()` unconditionally during session start, sending `{loaded, surface: \"terminal\", interactive: true}`, with a corresponding event schema payload of `{cwd}`. `prompt.context` appears in the same validation and telemetry site tables alongside other prompt-family events, but no direct emitter was found in this slice. Both event kinds were also added to the telemetry site registry alongside existing tool\/prompt\/agent\/turn sites.\n\n- Area: Plugin Hooks\n- Names: `session.start`, `prompt.context`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 4\/5"}