Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(server): parent hears when a grandchild's completion wakes its delegated child
#28462
Send to my agent
Closed
juliusmarminge
wants to merge 6 commits into
main
from
refs/pull/28462/head
·
opened
last month
View on GitHub
Conversation
13
Commits
6
Files changed
2
Impact
Showing
2 changed files
with
154 additions
and
1 deletion
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
152 additions and 0 deletions
+152
-0
apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.ts
View file
Expand up
Show all 3,870 lines
@@ -3871,6 +3871,158 @@
3871
3871
}),
3872
3872
);
3873
3873
3874
+
it.
effect
(
3875
+
"delivers the run a nested subagent's completion starts after the original result"
,
3876
+
() =>
3877
+
Effect
.
gen
(
function
* () {
3878
+
const
orchestrator =
yield
*
Orchestrator
.
OrchestratorV2
;
3879
+
const
eventSink =
yield
*
EventSink
.
EventSinkV2
;
3880
+
const
requests =
yield
*
ProviderContinuationRequests
.
ProviderContinuationRequests
;
3881
+
const
now =
yield
*
DateTime
.
now
;
3882
+
const
parentThreadId =
ThreadId
.
make
(
"thread:nested-wake-parent"
);
3883
+
const
projectId =
ProjectId
.
make
(
"project:nested-wake"
);
3884
+
const
parentRunId =
RunId
.
make
(
"run:nested-wake-parent"
);
3885
+
const
rootNodeId =
NodeId
.
make
(
"node:nested-wake-parent"
);
3886
+
yield
*
seedParentWithTerminalTask
({
3887
+
threadId
: parentThreadId,
3888
+
projectId,
3889
+
runId
: parentRunId,
3890
+
rootNodeId,
3891
+
taskId
:
NodeId
.
make
(
"node:nested-wake-seed"
),
3892
+
deliveryState
:
"acknowledged"
,
3893
+
now,
3894
+
});
3895
+
const
child =
yield
*
seedRestartCancelledChild
({
3896
+
parentThreadId,
3897
+
projectId,
3898
+
parentRunId,
3899
+
rootNodeId,
Home
Search
Explore
Menu