feat: add background AI sessions with persistent storage and SSE streaming

Introduces ai_sessions table (schema v9), AiSessionStore, and background
session support for mission interviews, planning, and subtask breakdown.
Adds BackgroundTasksIndicator component, SSE-based progress streaming,
and dashboard API routes for session management.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-04 13:42:02 -07:00
parent 4f2b840eb4
commit eef87a2aea
23 changed files with 1128 additions and 68 deletions

View File

@@ -2753,6 +2753,11 @@ ${stepsSection}`;
return this.tasksDir;
}
/** Expose the shared Database instance for co-located stores (e.g. AiSessionStore). */
getDatabase(): Database {
return this.db;
}
private generateSpecifiedPrompt(task: Task): string {
const deps =
task.dependencies.length > 0