Skip to content

feat(extensions): deliver event:session to trusted services - #284

Merged
StuBehan merged 2 commits into
mainfrom
feat/service-extension-session-events
Nov 24, 2026
Merged

StuBehan merged 2 commits into
mainfrom
feat/service-extension-session-events

Conversation

@StuBehan

Copy link
Copy Markdown
Collaborator

Delivers event:session to trusted services. Each session that starts, changes or ends is sent with its whole state, and a service that's just started gets the current list first, so it never needs to have heard an earlier event.

{"type":"event","name":"session","session":"claude-4120","pid":4120,"agent":"claude","state":"waiting","repo":"api","title":"api work","claude_session":"5f0c…"}

state is busy, idle, waiting (a permission prompt still blocking), active (the agent reports no live state) or ended. No paths, tab names or prompt text. pid and claude_session are there so a caller seen somewhere else, like the MCP bridge, can be matched to its session, and title is only ever a name someone chose.

It's built on a new SessionSnapshot, which the MCP server can read too, so the two can't disagree on what waiting means. idle, panel and nudge are still not delivered.

Stacked on #283.

@StuBehan
StuBehan force-pushed the feat/service-extension-feed branch from d532e88 to 5f04f36 Compare November 24, 2026 23:02
@StuBehan
StuBehan force-pushed the feat/service-extension-session-events branch from fe49c50 to 8a4e36e Compare November 24, 2026 23:34
Base automatically changed from feat/service-extension-feed to main November 24, 2026 23:52
@StuBehan
StuBehan force-pushed the feat/service-extension-session-events branch from 8a4e36e to 9fdf79b Compare November 24, 2026 23:53
@StuBehan
StuBehan merged commit 0e464b8 into main Nov 24, 2026
6 checks passed
@StuBehan
StuBehan deleted the feat/service-extension-session-events branch November 24, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant