Skip to content

fix: emit session_shutdown on every dispose path - #575

Open
richardmilles wants to merge 1 commit into
agegr:mainfrom
richardmilles:fix/session-shutdown-dispose-546
Open

fix: emit session_shutdown on every dispose path#575
richardmilles wants to merge 1 commit into
agegr:mainfrom
richardmilles:fix/session-shutdown-dispose-546

Conversation

@richardmilles

Copy link
Copy Markdown

Destroy/dispose now always emits session_shutdown before inner.dispose(), and idle teardown still runs when a session is stuck running so extension children can be reaped.
Fixes #546

Ensure AgentSessionWrapper destroy/dispose always notifies extensions before inner.dispose, and force idle shutdown even when a session is stuck running so MCP children are reaped.
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.

AgentSession.dispose() never emits session_shutdown — extension child processes still leak after #331

1 participant