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): Claude Plan no longer asks again for a tool approved for the session
#36340
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/36340/head
·
opened
3 weeks ago
View on GitHub
Conversation
5
Commits
2
Files changed
2
Impact
Showing
2 changed files
with
86 additions
and
2 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
53 additions and 1 deletion
+53
-1
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 4,878 lines
@@ -4879,7 +4879,7 @@
4879
4879
turn:
Effect
.
Success
<
ReturnType
<
typeof
openPlanTurn>>,
4880
4880
toolName:
string
,
4881
4881
toolInput:
Record
<
string
,
unknown
>,
4882
-
options?: {
toolUseID
:
string
; agentID?:
string
},
4882
+
options?: {
toolUseID
:
string
; agentID?:
string
; decisionReasonType?:
"mode"
|
"hook"
},
4883
4883
) {
4884
4884
const
decision =
yield
*
Effect
.
promise
(() =>
4885
4885
turn.
canUseTool
(toolName, toolInput, {
Show all 1 line
@@ -4887,6 +4887,9 @@
4887
4887
toolUseID: options?.
toolUseID
??
"tool-plan-write"
,
4888
4888
requestId:
"request-plan-write"
,
4889
4889
...(options?.
agentID
===
undefined
? {} : {
agentID
: options.
agentID
}),
4890
+
...(options?.
decisionReasonType
===
undefined
4891
+
? {}
4892
+
: {
decisionReasonType
: options.
decisionReasonType
}),
4890
4893
}),
4891
4894
).
pipe
(
Effect
.
forkScoped
);
4892
4895
const
first =
yield
*
Effect
.
raceFirst
(
Expand up
Expand down
Show all 57 lines
@@ -4950,6 +4953,55 @@
4950
4953
),
4951
4954
);
4952
4955
4956
+
// regression: #23918 the CLI asks again in Plan despite the session rule it was given
4957
+
it.
effect
(
"does not ask again for an MCP tool approved for the session in Plan"
, () =>
4958
+
Effect
.
gen
(
function
* () {
4959
+
const
turn =
yield
*
openPlanTurn
(
"full-access"
);
4960
+
const
toolName =
"mcp__t3-code__t3_thread_read"
;
Home
Search
Explore
Menu