Skip to content

Session list jumps to active session when confirming delete on non-current session #5466

@nalin-singh

Description

@nalin-singh

Description

Problem

  • When a user presses Ctrl+D to delete a non-active session in the Sessions dialog (Ctrl+X, L), the selection/focus unexpectedly jumps to the currently active session. This prevents reliable deletion of the intended session and risks accidental deletion of the wrong session.

Impact

  • Accidental delete of the current working session and forces user to exit to the main screen to delete a session

OpenCode version

1.0.152

Steps to reproduce

  1. Open OpenCode TUI
  2. Start a new session
  3. Open Sessions list (Ctrl+X, L)
  4. Navigate to a session that is not the currently active session
  5. Press Ctrl+D to mark it for deletion
  6. Expected: Confirmation text appears ("Press ctrl+d again to confirm") and selection stays on the intended session
  7. Actual : Selection jumps to the active session; if user presses Ctrl+D again, the active session gets deleted instead

Screenshot and/or share link

Screen.Recording.2025-12-13.at.8.46.11.AM.mov

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions