[PR #5513] fix(tui): --continue selects wrong session #11448

Closed
opened 2026-02-16 18:16:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5513

State: closed
Merged: Yes


Problem

--continue selects sessions based on ID order, but IDs reflect creation time, not last activity.
This causes --continue to open an old session instead of the one you were last working on.

Solution

Sort sessions by time.updated (descending) before selecting, so --continue opens the most recently used session.

fixes #5510

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5513 **State:** closed **Merged:** Yes --- ## Problem `--continue` selects sessions based on ID order, but IDs reflect creation time, not last activity. This causes `--continue` to open an old session instead of the one you were last working on. ## Solution Sort sessions by `time.updated` (descending) before selecting, so `--continue` opens the most recently used session. fixes #5510
yindo added the pull-request label 2026-02-16 18:16:17 -05:00
yindo closed this issue 2026-02-16 18:16:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11448