Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): restarts keep queued steering and stop duplicate launches #17589

Closedmaria-rckswants to merge 250+ commits intomain fromt3/continue-threads-defaultopened View on GitHub

Showing 17 changed files with 106 additions and 3 deletions (loading 14).

x
0 of 17 viewed, 17 left
91 additions and 0 deletionsapps/server/src/mcp/toolkits/project/handlers.test.tsModified
View file
@@ -101,6 +101,97 @@
}),
​
+it.effect(
+ "a launch retried with the same clientRequestId keeps its command after session rotation",
+ () =>
+ Effect.gen(function* () {
+ const sourceThreadId = ThreadId.make("source-thread");
+ const projectId = ProjectId.make("project");
+ const providerInstanceId = ProviderInstanceId.make("codex");
+ const modelSelection = { instanceId: providerInstanceId, model: "gpt-5" };
+ const caller = {
+ id: sourceThreadId,
+ projectId,
+ providerInstanceId,
+ modelSelection,
+ runtimeMode: "full-access",
+ interactionMode: "default",
+ activeRunId: "active-run",
+ archivedAt: null,
+ deletedAt: null,
+ } as OrchestrationV2ThreadShell;
+ const launches: Array<ThreadLaunch.ThreadLaunchInput> = [];
+ const launch = (clientRequestId: string | undefined, requestNamespace: string) =>
+ Effect.gen(function* () {
+ const dependencies = Layer.mergeAll(
+ ServerSettings.layerTest(),
+ NodeCrypto.layer,
+ Layer.succeed(McpInvocationContext.McpInvocationContext, {