@devries-cameron20 / t3code Mirror · read-only / commits / ef4c658109
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 22, 08:15 UTC

fix(server): subagent threads no longer inherit a pending title job (#27990)

Co-authored-by: Claude Code (claude-opus-5-5) <claude-code@logueos.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Dreighto committed Oct 31, 2026 at 19:44 UTC ef4c6581099fac4f40a05c6c0b674677b2bac819
2 files changed +7 -1
apps/server/src/orchestration-v2/SubagentProjection.test.ts
+6 -1
@@ -1,5 +1,6 @@
1 import { assert, it } from "@effect/vitest";
2 import {
3 + CommandId,
4 type ModelSelection,
5 NodeId,
6 RunId,
@@ -82,7 +83,10 @@ function makeParentThread(): OrchestrationV2AppThread {
83 }
84
85 it("keeps a subagent child awake when its parent thread is snoozed", () => {
85 - const parentThread = makeParentThread();
86 + const parentThread: OrchestrationV2AppThread = {
87 + ...makeParentThread(),
88 + titleRegeneration: { requestId: CommandId.make("command:parent-title"), startedAt: snoozedAt },
89 + };
90 const childProviderThreadId = ProviderThreadId.make("provider-thread:subagent-awake-child");
91 const parentNodeId = NodeId.make("node:subagent-parent");
92 const childThread = makeSubagentChildThread({
@@ -100,6 +104,7 @@ it("keeps a subagent child awake when its parent thread is snoozed", () => {
104
105 assert.isNull(childThread.snoozedUntil);
106 assert.isNull(childThread.snoozedAt);
107 + assert.isNull(childThread.titleRegeneration);
108 assert.equal(childThread.projectId, parentThread.projectId);
109 assert.equal(childThread.runtimeMode, parentThread.runtimeMode);
110 assert.equal(childThread.interactionMode, parentThread.interactionMode);
packages/provider-core/src/server/subagentProjection.ts
+1
@@ -60,6 +60,7 @@ export function makeSubagentChildThread(input: {
60 creationSource: input.creationSource,
61 id: input.childThreadId,
62 title: input.title,
63 + titleRegeneration: null,
64 linkedPullRequest: null,
65 pullRequests: [],
66 historyOrigin: undefined,