@devries-cameron20 / t3code-1 / commits / d91915db9e
Fork 0

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

fix(server): a t3 thread send to a finished delegated child notifies its parent (#33446)

Julius Marminge committed Nov 10, 2026 at 15:15 UTC d91915db9e36b03450aa7d6dbd35ff27cb027ffe
2 files changed +4 -1
apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.ts
+2 -1
@@ -2575,7 +2575,8 @@ it.layer(Layer.merge(layerTest, ProviderContinuationRequests.layer))(
2575 creationSource: outcome === "failed" ? "web" : "mcp",
2576 commandId: CommandId.make(`command:followup-send-${outcome}`),
2577 threadId: child.childThreadId,
2578 - senderThreadId: parentThreadId,
2578 + // `t3 thread send` and unscoped MCP sessions carry no sender thread.
2579 + ...(outcome === "completed" ? {} : { senderThreadId: parentThreadId }),
2580 messageId,
2581 text: "Check the same work again.",
2582 attachments: [],
apps/server/src/orchestration-v2/Orchestrator.ts
+2
@@ -8486,12 +8486,14 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio
8486 if (!startsAttempt) return;
8487 const child = yield* projectionStore.getThread(command.threadId);
8488 const parentThreadId = child.lineage.parentThreadId;
8489 + // A send with no sender thread comes from a client acting for the owner, like a user send.
8490 if (
8491 child.lineage.relationshipToParent !== "subagent" ||
8492 parentThreadId === null ||
8493 (command.notification === undefined &&
8494 command.createdBy !== "user" &&
8495 command.usageLimitContinuationOfRunId === undefined &&
8496 + command.senderThreadId !== undefined &&
8497 command.senderThreadId !== parentThreadId)
8498 )
8499 return;