We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3ffb2 commit fdf560cCopy full SHA for fdf560c
packages/opencode/src/cli/cmd/tui/app.tsx
@@ -218,7 +218,9 @@ function App() {
218
let continued = false
219
createEffect(() => {
220
if (continued || sync.status !== "complete" || !args.continue) return
221
- const match = sync.data.session.find((x) => x.parentID === undefined)?.id
+ const match = sync.data.session
222
+ .toSorted((a, b) => b.time.updated - a.time.updated)
223
+ .find((x) => x.parentID === undefined)?.id
224
if (match) {
225
continued = true
226
route.navigate({ type: "session", sessionID: match })
0 commit comments