[FEATURE]: Add shutdown/exit event allowing a plugin to right before closing. #7187

Open
opened 2026-02-16 18:06:24 -05:00 by yindo · 1 comment
Owner

Originally created by @matglas on GitHub (Jan 22, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

It would be great for a plugin to be able to receive an event when the TUI shutdown happens. In this case it could spawn some actions or track behavior. Also having the details of which session was running when exit happens would be great.

Originally created by @matglas on GitHub (Jan 22, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request It would be great for a plugin to be able to receive an event when the TUI shutdown happens. In this case it could spawn some actions or track behavior. Also having the details of which session was running when exit happens would be great.
yindo added the discussion label 2026-02-16 18:06:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5409: SessionStart hook for session lifecycle events - requests lifecycle event hooks including startup/resume/compact triggers that could encompass shutdown scenarios

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #5409: SessionStart hook for session lifecycle events - requests lifecycle event hooks including startup/resume/compact triggers that could encompass shutdown scenarios Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7187