Q49: a task that spends its run budget shows as stalled; edits start a fresh budget

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 08:38:02 -04:00
1 parent 090c37abb8
commit 7659adbbdd
11 files changed
+94 -20

No files matched your search

@@ -0,0 +1,7 @@
export const taskRunBudgetSchema = `
alter table tasks add column stalled_reason text;
alter table tasks add column run_budget_floor integer not null default 0;
insert into schema_migrations(version, name, applied_at)
values (67, 'task_run_budget', datetime('now'));
`;
+2
View File
@@ -65,6 +65,7 @@ import { knowledgeScopeSchema } from "./migrations/063-knowledge-scope";
import { knowledgeRevisionsSchema } from "./migrations/064-knowledge-revisions";
import { documentVersionsSchema } from "./migrations/065-document-versions";
import { taskWritingModeSchema } from "./migrations/066-task-writing-mode";
import { taskRunBudgetSchema } from "./migrations/067-task-run-budget";
interface Migration {
version: number;
@@ -139,6 +140,7 @@ const MIGRATIONS: Migration[] = [
{ version: 64, name: "knowledge_revisions", sql: knowledgeRevisionsSchema },
{ version: 65, name: "document_versions", sql: documentVersionsSchema },
{ version: 66, name: "task_writing_mode", sql: taskWritingModeSchema },
{ version: 67, name: "task_run_budget", sql: taskRunBudgetSchema },
];
const SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1].version;