mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:00:45 +00:00
fix: align claude cli permissions with exec policy
Derive Claude CLI bypass mode from OpenClaw exec YOLO policy, preserve raw Claude permission-mode overrides, update docs/changelog, and cover global/per-agent policy behavior.
This commit is contained in:
committed by
GitHub
parent
999caf530b
commit
f523bbfcd1
@@ -36,6 +36,8 @@ export function buildAnthropicCliBackend(): CliBackendPlugin {
|
||||
"--verbose",
|
||||
"--setting-sources",
|
||||
"user",
|
||||
"--allowedTools",
|
||||
"mcp__openclaw__*",
|
||||
],
|
||||
resumeArgs: [
|
||||
"-p",
|
||||
@@ -45,6 +47,8 @@ export function buildAnthropicCliBackend(): CliBackendPlugin {
|
||||
"--verbose",
|
||||
"--setting-sources",
|
||||
"user",
|
||||
"--allowedTools",
|
||||
"mcp__openclaw__*",
|
||||
"--resume",
|
||||
"{sessionId}",
|
||||
],
|
||||
@@ -53,6 +57,8 @@ export function buildAnthropicCliBackend(): CliBackendPlugin {
|
||||
input: "stdin",
|
||||
modelArg: "--model",
|
||||
modelAliases: CLAUDE_CLI_MODEL_ALIASES,
|
||||
imageArg: "@",
|
||||
imagePathScope: "workspace",
|
||||
sessionArg: "--session-id",
|
||||
sessionMode: "always",
|
||||
sessionIdFields: [...CLAUDE_CLI_SESSION_ID_FIELDS],
|
||||
|
||||
Reference in New Issue
Block a user