@devries-cameron20 / t3code-1 / commits / 554be2c617
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(server): Full access rejects Claude Code's reworded dangerous-removal check (#38581)

Julius Marminge committed Nov 19, 2026 at 12:16 UTC 554be2c6174d3b3ae4fe37113b67830bbbebe2b8
2 files changed +6
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
+5
@@ -2003,6 +2003,11 @@ describe("ClaudeAdapterV2 resume compaction", () => {
2003 },
2004 { askRule: false, reason: "This shell -c script runs rm and could not be checked" },
2005 { askRule: false, reason: "A permission rule denies a command in this shell -c script" },
2006 + {
2007 + askRule: false,
2008 + reason:
2009 + "Claude Code can't be sure it read this command the way the shell will, so it can't rule out a dangerous removal. Read the command, and don't go ahead if you can't tell what it does.",
2010 + },
2011 ].entries()) {
2012 const safetyRequest = yield* runtime.events.pipe(
2013 Stream.filter((event) => event.type === "runtime_request.updated"),
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
+1
@@ -12526,6 +12526,7 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
12526 activePermissionMode === "bypassPermissions" &&
12527 callbackOptions.matchedAskRule === undefined &&
12528 (/^Dangerous rm(?:dir)?\b/i.test(safetyReason) ||
12529 + /\bdangerous removal\b/i.test(safetyReason) ||
12530 safetyReason === "This shell -c script runs rm and could not be checked" ||
12531 safetyReason === "A permission rule denies a command in this shell -c script")
12532 ) {