@devries-cameron20 / t3code Mirror · read-only / commits / 1550f1b742
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 10:15 UTC

test(server): assert the dispatched welcome thread model (#9980)

Julius Marminge committed Sep 5, 2026 at 00:12 UTC 1550f1b742138df8b31b24e34ddea58c80afb3cc
2 files changed +9 -13
apps/server/src/serverRuntimeStartup.test.ts
+8 -12
@@ -17,13 +17,6 @@ import * as AnalyticsService from "./telemetry/AnalyticsService.ts";
17 import * as ServerRuntimeStartup from "./serverRuntimeStartup.ts";
18 import * as GitVcsDriver from "./vcs/GitVcsDriver.ts";
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 -
20 it.effect("automatic pull only updates enabled, behind, clean default-branch checkouts", () =>
21 Effect.gen(function* () {
22 const pulled: string[] = [];
@@ -201,7 +194,10 @@ it.effect("resolveAutoBootstrapWelcomeTargets returns existing project and threa
194 id: bootstrapProjectId,
195 title: "Startup Project",
196 workspaceRoot: "/tmp/startup-project",
204 - defaultModelSelection: ServerRuntimeStartup.getAutoBootstrapThreadModelSelection(),
197 + defaultModelSelection: {
198 + instanceId: ProviderInstanceId.make("codex"),
199 + model: DEFAULT_MODEL,
200 + },
201 scripts: [],
202 createdAt: "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
294 ["project.create", "thread.create"],
295 );
296 assert.equal("defaultModelSelection" in commands[0]!, false);
301 - assert.deepStrictEqual(
302 - commands[1]?.modelSelection,
303 - ServerRuntimeStartup.getAutoBootstrapThreadModelSelection(),
304 - );
297 + assert.deepStrictEqual(commands[1]?.modelSelection, {
298 + instanceId: ProviderInstanceId.make("codex"),
299 + model: DEFAULT_MODEL,
300 + });
301 }),
302 );
303
apps/server/src/serverRuntimeStartup.ts
+1 -1
@@ -176,7 +176,7 @@ export const launchStartupHeartbeat = recordStartupHeartbeat.pipe(
176 Effect.asVoid,
177 );
178
179 -export const getAutoBootstrapThreadModelSelection = (): ModelSelection => ({
179 +const getAutoBootstrapThreadModelSelection = (): ModelSelection => ({
180 instanceId: ProviderInstanceId.make("codex"),
181 model: DEFAULT_MODEL,
182 });