| ... | @@ -17,13 +17,6 @@ import * as AnalyticsService from "./telemetry/AnalyticsService.ts"; | ... | @@ -17,13 +17,6 @@ import * as AnalyticsService from "./telemetry/AnalyticsService.ts"; |
| 17 | import * as ServerRuntimeStartup from "./serverRuntimeStartup.ts"; | 17 | import * as ServerRuntimeStartup from "./serverRuntimeStartup.ts"; |
| 18 | import * as GitVcsDriver from "./vcs/GitVcsDriver.ts"; | 18 | import * as GitVcsDriver from "./vcs/GitVcsDriver.ts"; |
| 19 | | 19 | |
| 20 | it("uses the canonical Codex default for the auto-bootstrapped welcome thread", () => { | | |
| 21 | assert.deepStrictEqual(ServerRuntimeStartup.getAutoBootstrapThreadModelSelection(), { | | |
| 22 | instanceId: ProviderInstanceId.make("codex"), | | |
| 23 | model: DEFAULT_MODEL, | | |
| 24 | }); | | |
| 25 | }); | | |
| 26 | | | |
| 27 | it.effect("automatic pull only updates enabled, behind, clean default-branch checkouts", () => | 20 | it.effect("automatic pull only updates enabled, behind, clean default-branch checkouts", () => |
| 28 | Effect.gen(function* () { | 21 | Effect.gen(function* () { |
| 29 | const pulled: string[] = []; | 22 | const pulled: string[] = []; |
| ... | @@ -201,7 +194,10 @@ it.effect("resolveAutoBootstrapWelcomeTargets returns existing project and threa | ... | @@ -201,7 +194,10 @@ it.effect("resolveAutoBootstrapWelcomeTargets returns existing project and threa |
| 201 | id: bootstrapProjectId, | 194 | id: bootstrapProjectId, |
| 202 | title: "Startup Project", | 195 | title: "Startup Project", |
| 203 | workspaceRoot: "/tmp/startup-project", | 196 | workspaceRoot: "/tmp/startup-project", |
| 204 | defaultModelSelection: ServerRuntimeStartup.getAutoBootstrapThreadModelSelection(), | 197 | defaultModelSelection: { |
| | 198 | instanceId: ProviderInstanceId.make("codex"), |
| | 199 | model: DEFAULT_MODEL, |
| | 200 | }, |
| 205 | scripts: [], | 201 | scripts: [], |
| 206 | createdAt: "2026-01-01T00:00:00.000Z", | 202 | createdAt: "2026-01-01T00:00:00.000Z", |
| 207 | updatedAt: "2026-01-01T00:00:00.000Z", | 203 | updatedAt: "2026-01-01T00:00:00.000Z", |
| ... | @@ -298,10 +294,10 @@ it.effect("resolveAutoBootstrapWelcomeTargets creates a project and thread when | ... | @@ -298,10 +294,10 @@ it.effect("resolveAutoBootstrapWelcomeTargets creates a project and thread when |
| 298 | ["project.create", "thread.create"], | 294 | ["project.create", "thread.create"], |
| 299 | ); | 295 | ); |
| 300 | assert.equal("defaultModelSelection" in commands[0]!, false); | 296 | assert.equal("defaultModelSelection" in commands[0]!, false); |
| 301 | assert.deepStrictEqual( | 297 | assert.deepStrictEqual(commands[1]?.modelSelection, { |
| 302 | commands[1]?.modelSelection, | 298 | instanceId: ProviderInstanceId.make("codex"), |
| 303 | ServerRuntimeStartup.getAutoBootstrapThreadModelSelection(), | 299 | model: DEFAULT_MODEL, |
| 304 | ); | 300 | }); |
| 305 | }), | 301 | }), |
| 306 | ); | 302 | ); |
| 307 | | 303 | |