Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): t3_project_read shows the default model saved in Settings #38636

Mergedspiky02plateau(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/38636/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 67 additions and 3 deletions.

x
0 of 3 viewed, 3 left
41 additions and 0 deletionsapps/server/src/mcp/toolkits/project/handlers.test.tsModified
View file
@@ -1052,6 +1052,47 @@
+it.effect("reading a project shows the default model saved in Settings", () =>
+ Effect.gen(function* () {
+ const overrideModel = {
+ instanceId: ProviderInstanceId.make("claudeAgent"),
+ model: "claude-sonnet",
+ };
+ const harness = clientLaunchHarness({
+ runtimeModeCeiling: "full-access",
+ overrideModel,
+ launched: [],
+ });
+ const dependencies = Layer.merge(
+ harness.dependencies,
+ Layer.mock(Project.ProjectService)({
+ getById: (projectId) =>
+ Effect.succeedSome({
+ id: projectId,
+ title: "Client target",
+ workspaceRoot: "/projects/client-target",
+ defaultModelSelection: null,
+ scripts: [],
+ createdAt: "2026-01-01T00:00:00.000Z",
+ updatedAt: "2026-01-01T00:00:00.000Z",
+ deletedAt: null,
+ }),
+ }),