tui: add session search functionality with debounced input and server-side filtering

This commit is contained in:
Dax Raad
2026-01-04 13:38:30 -05:00
parent cdd6ea514b
commit 7304ba616e
9 changed files with 79 additions and 12 deletions
@@ -269,8 +269,9 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
async function bootstrap() {
console.log("bootstrapping")
const start = Date.now() - 30 * 24 * 60 * 60 * 1000
const sessionListPromise = sdk.client.session
.list()
.list({ start: start })
.then((x) => setStore("session", reconcile((x.data ?? []).toSorted((a, b) => a.id.localeCompare(b.id)))))
// blocking - include session.list when continuing a session