Skip to content

Commit 130345b

Browse files
authored
fix: sort sessions by updated time (resolves sst#5074) (sst#5080)
1 parent 0baee00 commit 130345b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function DialogSessionList() {
2626
const today = new Date().toDateString()
2727
return sync.data.session
2828
.filter((x) => x.parentID === undefined)
29+
.toSorted((a, b) => b.time.updated - a.time.updated)
2930
.map((x) => {
3031
const date = new Date(x.time.updated)
3132
let category = date.toDateString()

0 commit comments

Comments
 (0)