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): reject waits on foreground subagent background work
#25036
Send to my agent
Open
juliusmarminge
wants to merge 10 commits into
main
from
refs/pull/25036/head
·
opened
last month
View on GitHub
Conversation
24
Commits
10
Files changed
2
Impact
Showing
2 changed files
with
111 additions
and
1 deletion
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
100 additions and 0 deletions
+100
-0
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
View file
Expand up
Show all 11,370 lines
@@ -11371,6 +11371,106 @@
11371
11371
),
11372
11372
);
11373
11373
11374
+
it.
effect
(
"does not mark tasks owned by a foreground subagent as awaited"
, () =>
11375
+
Effect
.
scoped
(
11376
+
Effect
.
gen
(
function
* () {
11377
+
const
harness =
yield
* makeWakeHarness;
11378
+
const
now =
yield
*
DateTime
.
now
;
11379
+
const
awaitBackgroundTasks = harness.
runtime
.
awaitBackgroundTasks
;
11380
+
if
(awaitBackgroundTasks ===
undefined
) {
11381
+
throw
new
Error
(
"Claude adapter runtime must expose awaitBackgroundTasks."
);
11382
+
}
11383
+
const
subagentStarted = (input: {
11384
+
readonly
taskId:
string
;
11385
+
readonly
toolUseId:
string
;
11386
+
readonly
backgrounded:
boolean
;
11387
+
readonly
uuid:
string
;
11388
+
}) =>
11389
+
claudeSdkFrame
({
11390
+
type
:
"system"
,
11391
+
subtype
:
"task_started"
,
11392
+
task_id
: input.
taskId
,
11393
+
tool_use_id
: input.
toolUseId
,
11394
+
description
: input.
taskId
,
11395
+
subagent_type
:
"general-purpose"
,
11396
+
is_backgrounded
: input.
backgrounded
,
11397
+
task_type
:
"local_agent"
,
11398
+
prompt
:
"Run a shell in the background."
,
11399
+
uuid
: input.
uuid
,
Home
Search
Explore
Menu