Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): resumed Claude subagents keep updating their own thread #20061

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/20061/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 180 additions and 6 deletions (loading 1).

x
0 of 3 viewed, 3 left
9 additions and 5 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsModified
View file
@@ -5347,6 +5347,15 @@
completedAt: task.completedAt,
+ }
+ // Ahead of the child thread's records: the run a resume attributes
+ // the subagent to adopts its child thread from this event.
+ yield* emitProviderEvent({
+ type: "subagent.updated",
+ driver: CLAUDE_PROVIDER,
+ subagent: task,
+ });
+ if (lifecycleChanged) {
yield* emitProviderEvent({
type: "node.updated",
driver: CLAUDE_PROVIDER,
@@ -5389,11 +5398,6 @@
- yield* emitProviderEvent({
- type: "subagent.updated",
- driver: CLAUDE_PROVIDER,
- subagent: task,
- });
if (workflowWithThreads !== undefined) {
yield* projectClaudeWorkflowMembers({
coordinator: subagent,