opencode
opencode copied to clipboard
[Bug] Session list focus jumps randomly when deleting via Ctrl+D in v1.1.25 (regression from #5466)
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
- Open OpenCode TUI
- Have multiple sessions available
- Press
Ctrl+X, Lto open the session list - Navigate to a non-current session using arrow keys
- Press
Ctrl+Dto mark it for deletion - Expected: Focus stays on the selected session, confirmation prompt appears
- 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