Q77: a session keeps the model and account it started with

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 13:03:11 -04:00
1 parent 8fcdd61bc5
commit d557e42676
8 files changed
+89 -11

No files matched your search

@@ -0,0 +1,7 @@
export const runPinsSchema = `
alter table task_runs add column run_model text;
alter table task_runs add column run_credential_id text;
insert into schema_migrations(version, name, applied_at)
values (76, 'run_pins', datetime('now'));
`;
+2
View File
@@ -74,6 +74,7 @@ import { spendSchema } from "./migrations/072-spend";
import { usageWindowTokensSchema } from "./migrations/073-usage-window-tokens";
import { runFailureKindSchema } from "./migrations/074-run-failure-kind";
import { providerCooldownsSchema } from "./migrations/075-provider-cooldowns";
import { runPinsSchema } from "./migrations/076-run-pins";
interface Migration {
version: number;
@@ -157,6 +158,7 @@ const MIGRATIONS: Migration[] = [
{ version: 73, name: "usage_window_tokens", sql: usageWindowTokensSchema },
{ version: 74, name: "run_failure_kind", sql: runFailureKindSchema },
{ version: 75, name: "provider_cooldowns", sql: providerCooldownsSchema },
{ version: 76, name: "run_pins", sql: runPinsSchema },
];
const SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1].version;