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
Artifacts
Releases
CI
Agents
Settings
fix(server): delegated completions wait behind a parent usage limit
#41896
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/41896/head
·
opened
2 weeks ago
View on GitHub
Conversation
3
Commits
2
Files changed
2
Impact
Showing
2 changed files
with
184 additions
and
10 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
144 additions and 0 deletions
+144
-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 6,160 lines
@@ -6161,4 +6161,148 @@
6161
6161
assert.
notEqual
(finished?.
completionDelivery
?.
state
,
"disposed"
);
6162
6162
}),
6163
6163
);
6164
+
6165
+
it.
effect
(
6166
+
"queues a delegated completion behind a usage-limited parent run so armed auto-resume stays intact"
,
6167
+
() =>
6168
+
Effect
.
gen
(
function
* () {
6169
+
const
orchestrator =
yield
*
Orchestrator
.
OrchestratorV2
;
6170
+
const
eventSink =
yield
*
EventSink
.
EventSinkV2
;
6171
+
const
now =
yield
*
DateTime
.
now
;
6172
+
const
resetAt =
DateTime
.
formatIso
(
DateTime
.
add
(now, {
minutes
:
10
}));
6173
+
const
threadId =
ThreadId
.
make
(
"thread:delegated-limit-parent"
);
6174
+
const
projectId =
ProjectId
.
make
(
"project:delegated-limit"
);
6175
+
const
parentRunId =
RunId
.
make
(
"run:delegated-limit-parent"
);
6176
+
const
rootNodeId =
NodeId
.
make
(
"node:delegated-limit-parent"
);
6177
+
const
taskId =
NodeId
.
make
(
"node:delegated-limit-task"
);
6178
+
const
wakeMessageId =
MessageId
.
make
(
"message:delegated-limit-wake"
);
6179
+
6180
+
yield
*
seedParentWithTerminalTask
({
6181
+
threadId,
6182
+
projectId,
6183
+
runId
: parentRunId,
6184
+
rootNodeId,
6185
+
taskId,
6186
+
deliveryState
:
"claimed"
,
6187
+
deliveryTaskIds
: [taskId],
6188
+
now,
6189
+
});
Home
Search
Explore
Menu