Skip to content

opentui: fix: Deleting current session from TUI - #3617

Merged
rekram1-node merged 3 commits into
anomalyco:opentuifrom
veracioux:fix/tui-current-session-delete
Oct 31, 2025
Merged

rekram1-node merged 3 commits into
anomalyco:opentuifrom
veracioux:fix/tui-current-session-delete

Conversation

@veracioux

@veracioux veracioux commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

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)

@rekram1-node
rekram1-node merged commit dab16f7 into anomalyco:opentui Oct 31, 2025
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.

2 participants