fix(opencode): end sessions on quit via server.instance.disposed#584
fix(opencode): end sessions on quit via server.instance.disposed#584
Conversation
PR SummaryLow Risk Overview This also clears per-session in-memory state ( Written by Cursor Bugbot for commit 5f2edd9. Configure here. |
There was a problem hiding this comment.
Pull request overview
This PR updates the OpenCode agent’s embedded plugin template so Entire reliably emits a session-end hook when OpenCode exits, ensuring sessions are properly closed even when the user quits (rather than explicitly deleting a session).
Changes:
- Handle the
server.instance.disposedOpenCode event to end the active session on shutdown. - Clear per-session in-memory tracking state before emitting
session-end. - Use the synchronous hook invocation path for shutdown-time reliability.
No description provided.