Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/opencode/src/session/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export type ListInput = {
start?: number
search?: string
limit?: number
archived?: boolean
}

const CreatedEventSchema = Schema.Struct({
Expand Down Expand Up @@ -847,6 +848,9 @@ function* listByProject(
if (input.search) {
conditions.push(like(SessionTable.title, `%${input.search}%`))
}
if (!input.archived) {
conditions.push(isNull(SessionTable.time_archived))
}

const limit = input.limit ?? 100

Expand Down
Loading