Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): t3_thread_launch takes clientRequestId #16654

Mergedjuliusmarmingemerged 1 commit intot3code/peer/mode-limit-header fromrefs/pull/16654/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 162 additions and 3 deletions (loading 7).

x
0 of 8 viewed, 8 left
162 additions and 3 deletionsapps/server/src/mcp/toolkits/project/handlers.test.tsModified
View file
@@ -6,10 +6,13 @@
type Project as ProjectRecord,
type ModelSelection,
type RuntimeMode,
+ type OrchestrationV2ThreadShell,
} from "@t3tools/contracts";
import * as NodeCrypto from "@effect/platform-node/NodeCrypto";
import * as NodeServices from "@effect/platform-node/NodeServices";
+import * as Cause from "effect/Cause";
import * as Effect from "effect/Effect";
+import * as Exit from "effect/Exit";
import * as FileSystem from "effect/FileSystem";
import * as Path from "effect/Path";
import * as Layer from "effect/Layer";
@@ -44,6 +47,10 @@
instanceId: ProviderInstanceId.make("claudeAgent"),
model: "claude-opus",
};
+ // The project's own default model, which a test can clear between launches.
+ const projectDefaults: { model: ModelSelection | null } = {
+ model: input.overrideModel === undefined ? modelSelection : null,
+ };
const layerDependencies = Layer.mergeAll(
ServerSettings.layerTest({
...(input.defaultRuntimeMode === undefined
@@ -71,7 +78,22 @@
issuedAt: 0,
capabilities: new Set(["orchestration" as const]),