Skip to content

fix(tui): --continue selects wrong session - #5513

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
Raviguntakala:dev
Dec 15, 2025
Merged

rekram1-node merged 1 commit into
anomalyco:devfrom
Raviguntakala:dev

Conversation

@Raviguntakala

@Raviguntakala Raviguntakala commented Dec 14, 2025 •

Copy link
Copy Markdown
Contributor

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

@rekram1-node
rekram1-node merged commit fdf560c into anomalyco:dev Dec 15, 2025
3 checks passed
nalin-singh pushed a commit to nalin-singh/opencode that referenced this pull request Dec 17, 2025
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
androidand pushed a commit to androidand/opencode-skein that referenced this pull request Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--continue selects wrong session due to incorrect sort order in sync.tsx

2 participants