Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): Plan mode asks before writes in Auto and Full access #17963

Mergedmaxwellyoung(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/17963/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 176 additions and 1 deletion.

x
0 of 2 viewed, 2 left
162 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -2542,6 +2542,14 @@
yield* Queue.unbounded<
Extract<ProviderAdapter.ProviderAdapterV2Event, { type: "turn_item.updated" }>
+ const runtimeRequestReceipts =
+ yield* Queue.unbounded<
+ Extract<ProviderAdapter.ProviderAdapterV2Event, { type: "runtime_request.updated" }>
+ >();
+ const planReceipts =
+ yield* Queue.unbounded<
+ Extract<ProviderAdapter.ProviderAdapterV2Event, { type: "plan.updated" }>
+ >();
let openedOptions: ClaudeAdapterV2.ClaudeAgentSdkQueryOptions | undefined;
const adapter = yield* ClaudeAdapterV2.makeClaudeAdapterV2({
instanceId: ClaudeAdapterV2.CLAUDE_DEFAULT_INSTANCE_ID,
@@ -2649,6 +2657,12 @@
if (event.type === "turn.terminal") {
yield* Queue.offer(terminalReceipts, event);
+ if (event.type === "runtime_request.updated") {
+ yield* Queue.offer(runtimeRequestReceipts, event);
+ }
+ if (event.type === "plan.updated") {
+ yield* Queue.offer(planReceipts, event);
+ }
if (event.type === "turn_item.updated" && event.turnItem.type === "system_notice") {
yield* Queue.offer(systemNoticeReceipts, event);