opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open chrisFxxk opened this issue 1 day ago • 1 comments

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

chrisFxxk avatar Jan 18 '26 10:01 chrisFxxk