feat(session): filter v2 session list by parent (#35037)

Co-authored-by: Dax <mail@thdxr.com>
This commit is contained in:
opencode-agent[bot] 2026-07-02 19:48:49 -04:00 committed by GitHub
commit 6555df912a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 180 additions and 21 deletions

View file

@ -51,7 +51,7 @@ export const SessionHandler = HttpApiBuilder.group(Api, "server.session", (handl
...query,
anchor: {
id: first.id,
time: DateTime.toEpochMillis(first.time.created),
time: DateTime.toEpochMillis(first.time.updated),
direction: "previous",
},
})
@ -61,7 +61,7 @@ export const SessionHandler = HttpApiBuilder.group(Api, "server.session", (handl
...query,
anchor: {
id: last.id,
time: DateTime.toEpochMillis(last.time.created),
time: DateTime.toEpochMillis(last.time.updated),
direction: "next",
},
})