batch3 T1: session_panes schema + Pane/UserStreamFrame types + sidebar project_id

Adds the session_panes table, Pane/PaneState/PaneCreate/PaneUpdate types,
UserStreamFrame discriminated union, and extends SidebarSession with
project_id (also added to the sidebar SELECT).
This commit is contained in:
2026-05-15 14:46:57 +00:00
parent a297019e34
commit 7bed8033c6
3 changed files with 78 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ export function registerSidebarRoutes(app: FastifyInstance, sql: Sql): void {
projects.map(async (p) => {
const [recent_sessions, countRows] = await Promise.all([
sql<SidebarSession[]>`
SELECT id, name, model, updated_at
SELECT id, project_id, name, model, updated_at
FROM sessions
WHERE project_id = ${p.id}
ORDER BY updated_at DESC