[Bug] Session list focus jumps randomly when deleting via Ctrl+D in v1.1.25 (regression from #5466) #6693

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

Originally created by @chrisFxxk on GitHub (Jan 18, 2026).

Originally assigned to: @kommander on GitHub.

Description
Issue #5466 was supposedly fixed in PR #5666 (released in v1.0.165), but the problem persists in v1.1.25.
When pressing Ctrl+D to delete a session in the session list, the focus/selection jumps randomly to other sessions instead of staying on the intended target. This makes it nearly impossible to reliably delete specific sessions.
OpenCode version
1.1.25
Steps to reproduce

  1. Open OpenCode TUI
  2. Have multiple sessions available
  3. Press Ctrl+X, L to open the session list
  4. Navigate to a non-current session using arrow keys
  5. Press Ctrl+D to mark it for deletion
  6. Expected: Focus stays on the selected session, confirmation prompt appears
  7. Actual: Focus jumps randomly to another session in the list
    Additional context
  • This appears to be a regression or incomplete fix from #5466 / PR Desktop app always uses SHELL (WSL) on Windows (#5666)
  • The workaround is to first switch to the target session (/session), then delete it as the current session
  • Affects TUI, not tested on Desktop
    Operating System
    macOS
    Terminal
    No response
Originally created by @chrisFxxk on GitHub (Jan 18, 2026). Originally assigned to: @kommander on GitHub. Description Issue #5466 was supposedly fixed in PR #5666 (released in v1.0.165), but **the problem persists in v1.1.25**. When pressing `Ctrl+D` to delete a session in the session list, the focus/selection jumps randomly to other sessions instead of staying on the intended target. This makes it nearly impossible to reliably delete specific sessions. OpenCode version 1.1.25 Steps to reproduce 1. Open OpenCode TUI 2. Have multiple sessions available 3. Press `Ctrl+X, L` to open the session list 4. Navigate to a non-current session using arrow keys 5. Press `Ctrl+D` to mark it for deletion 6. **Expected**: Focus stays on the selected session, confirmation prompt appears 7. **Actual**: Focus jumps randomly to another session in the list Additional context - This appears to be a regression or incomplete fix from #5466 / PR #5666 - The workaround is to first switch to the target session (`/session`), then delete it as the current session - Affects TUI, not tested on Desktop Operating System macOS Terminal _No response_
yindo added the opentui label 2026-02-16 18:04:58 -05:00
Author
Owner

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

This issue appears to be a continuation or regression of an existing issue. Please check:

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

This is the original report of the same problem that was supposed to be fixed in PR #5666 for v1.0.165, but the issue has resurfaced in v1.1.25.

Feel free to ignore if you believe this is a distinct case with different root cause.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue appears to be a continuation or regression of an existing issue. Please check: - #5466: Session list jumps to active session when confirming delete on non-current session This is the original report of the same problem that was supposed to be fixed in PR #5666 for v1.0.165, but the issue has resurfaced in v1.1.25. Feel free to ignore if you believe this is a distinct case with different root cause.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6693