opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(tui): --continue selects wrong session

Open Raviguntakala opened this issue 1 month ago • 0 comments

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

Raviguntakala avatar Dec 14 '25 06:12 Raviguntakala