[PR #3617] opentui: fix: Deleting current session from TUI #10713

Closed
opened 2026-02-16 18:15:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3617

State: closed
Merged: Yes


Deleting current session from the TUI would show an empty non-interactive screen.

This PR:

  • Navigates to home screen when current session is deleted
  • Shows an info toast when the current session is deleted (from any source)
  • Properly refocuses the prompt area when the dialog is closed
  • Adds utility useful for the future: useDialog().allClosedEvent, firing when all dialogs are closed - currently used to refocus prompts in home and session routes (the usual refocus() call doesn't work if routes change while the dialog is open)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3617 **State:** closed **Merged:** Yes --- Deleting current session from the TUI would show an empty non-interactive screen. This PR: - Navigates to home screen when current session is deleted - Shows an info toast when the current session is deleted (from any source) - Properly refocuses the prompt area when the dialog is closed - Adds utility useful for the future: `useDialog().allClosedEvent`, firing when all dialogs are closed - currently used to refocus prompts in home and session routes (the usual refocus() call doesn't work if routes change while the dialog is open)
yindo added the pull-request label 2026-02-16 18:15:27 -05:00
yindo closed this issue 2026-02-16 18:15:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10713