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): background Claude subagents still ask for approval after their parent turn ends
#35428
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/35428/head
·
opened
3 weeks ago
View on GitHub
Conversation
7
Commits
2
Files changed
2
Impact
Showing
2 changed files
with
81 additions
and
1 deletion
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
67 additions and 0 deletions
+67
-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 15,796 lines
@@ -15797,6 +15797,73 @@
15797
15797
return
{ childThreadId, toolThreadIds, assistantTexts };
15798
15798
};
15799
15799
15800
+
// regression: #20339 a background subagent outliving its parent turn must still get approvals
15801
+
it.
effect
(
"asks for a background subagent's approval after the parent turn settles"
, () =>
15802
+
Effect
.
gen
(
function
* () {
15803
+
const
harness =
yield
* makeWakeHarness;
15804
+
yield
* harness.
runtime
.
startTurn
(
15805
+
makeClaudeTestTurnInput
({
15806
+
threadId
: harness.
threadId
,
15807
+
providerThread
: harness.
providerThread
,
15808
+
now
:
DateTime
.
makeUnsafe
(
0
),
15809
+
attemptId
:
RunAttemptId
.
make
(
"settled-subagent-permission"
),
15810
+
text
:
"Run the auditor in the background."
,
15811
+
attachments
: [],
15812
+
runtimePolicy
:
ProviderAdapter
.
ProviderAdapterV2RuntimePolicy
.
make
({
15813
+
runtimeMode
:
"approval-required"
,
15814
+
interactionMode
:
"default"
,
15815
+
cwd
:
"/workspace"
,
15816
+
}),
15817
+
}),
15818
+
);
15819
+
yield
* harness.
offerAndWait
(
15820
+
makeSubagentTaskStartedFrame
({
15821
+
taskId
:
"auditor"
,
15822
+
toolUseId
:
"toolu-auditor"
,
15823
+
uuid
:
"00000000-0000-4000-8000-000000020339"
,
15824
+
}),
15825
+
);
Home
Search
Explore
Menu