Skip to content

fix(tui): name deleted session in toast - #39768

Merged
kitlangton merged 1 commit into
v2from
session-delete-toast
Jul 30, 2026
Merged

fix(tui): name deleted session in toast#39768
kitlangton merged 1 commit into
v2from
session-delete-toast

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What

Name the deleted session in the TUI toast introduced by #39750.

Before: The current session was deleted

After: Session "OpenCode Drive" was deleted

How

Retain the last loaded active session ID and title before the deletion event removes it from the data store. The existing session.deleted handler uses that retained title, with the generic text as a fallback if the session was never loaded.

The cache updates independently of terminal-title preferences, so disabling terminal window titles does not affect the toast.

Testing

  • bun typecheck in packages/tui
  • bun run test in packages/tui (573 passed, 5 skipped)
  • Push hook: workspace typecheck across 33 packages
  • OpenCode Drive v1.4.1 with required protocol negotiation: deleted the active simulated session, asserted Session "OpenCode Drive" was deleted, and verified zero sessions remained

Demo

recording-70757955-bbf6-4884-8c3b-622a6172d7bd.mp4

Named deleted-session toast

@kitlangton
kitlangton merged commit b866900 into v2 Jul 30, 2026
12 of 13 checks passed
@kitlangton
kitlangton deleted the session-delete-toast branch July 30, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant