Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function DialogSessionList() {

const [searchResults, { refetch }] = createResource(search, async (query) => {
if (!query) return undefined
const result = await sdk.client.session.list({ search: query, limit: 30 })
const result = await sdk.client.session.list({ search: query, limit: 30, roots: true })
return result.data ?? []
})

Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/src/cli/cmd/tui/context/sync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
}
const start = Date.now() - 30 * 24 * 60 * 60 * 1000
const sessionListPromise = sdk.client.session
.list({ start: start })
.list({ start: start, roots: true })
.then((x) => (x.data ?? []).toSorted((a, b) => a.id.localeCompare(b.id)))

// blocking - include session.list when continuing a session
Expand Down Expand Up @@ -482,7 +482,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
async refresh() {
const start = Date.now() - 30 * 24 * 60 * 60 * 1000
const list = await sdk.client.session
.list({ start })
.list({ start, roots: true })
.then((x) => (x.data ?? []).toSorted((a, b) => a.id.localeCompare(b.id)))
setStore("session", reconcile(list))
},
Expand Down
Loading