惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
C
Check Point Blog
J
Java Code Geeks
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
量子位
Google DeepMind News
Google DeepMind News
I
InfoQ
The GitHub Blog
The GitHub Blog
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
小众软件
小众软件
博客园_首页
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
IT之家
IT之家

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
Fail closed on exec approval timeout (#89938) · openclaw/...
drobison00 · 2026-06-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -83,7 +83,7 @@ Precedence is intentional:

8383

```bash

8484

openclaw approvals set --file ./exec-approvals.json

8585

openclaw approvals set --stdin <<'EOF'

86-

{ version: 1, defaults: { security: "full", ask: "off" } }

86+

{ version: 1, defaults: { security: "full", ask: "off", askFallback: "full" } }

8787

EOF

8888

openclaw approvals set --node <id|name|ip> --file ./exec-approvals.json

8989

openclaw approvals set --gateway --file ./exec-approvals.json

@@ -137,7 +137,8 @@ Why `tools.exec.host=gateway` in this example:

137137

- YOLO is about approvals, not routing.

138138

- If you want host exec even when a sandbox is configured, make the host choice explicit with `gateway` or `/exec host=gateway`.

139139
140-

This matches the current host-default YOLO behavior. Tighten it if you want approvals.

140+

Omitted `askFallback` defaults to `deny`. Set `askFallback: "full"`

141+

explicitly when upgrading a no-UI host that should keep never-prompt behavior.

141142
142143

Local shortcut:

143144
Original file line numberDiff line numberDiff line change

@@ -159,7 +159,8 @@ when set at the narrower session or agent scope.

159159

### `askFallback`

160160
161161

<ParamField path="askFallback" type='"deny" | "allowlist" | "full"'>

162-

Resolution when a prompt is required but no UI is reachable.

162+

Resolution when a prompt is required but no UI is reachable. If this

163+

field is omitted, OpenClaw defaults to `deny`.

163164
164165

- `deny` - block.

165166

- `allowlist` - allow only if allowlist matches.

@@ -211,7 +212,9 @@ If you want host exec to run without approval prompts, you must open

211212

(`tools.exec.*`) **and** host-local approvals policy in

212213

`~/.openclaw/exec-approvals.json`.

213214
214-

YOLO is the default host behavior unless you tighten it explicitly:

215+

OpenClaw defaults omitted `askFallback` to `deny`. Set host

216+

`askFallback` to `full` explicitly when a no-UI approval prompt should

217+

fall back to allow.

215218
216219

| Layer | YOLO setting |

217220

| --------------------- | -------------------------- |

@@ -278,7 +281,8 @@ openclaw exec-policy preset yolo

278281

That local shortcut updates both:

279282
280283

- Local `tools.exec.host/security/ask`.

281-

- Local `~/.openclaw/exec-approvals.json` defaults.

284+

- Local `~/.openclaw/exec-approvals.json` defaults, including

285+

`askFallback: "full"`.

282286
283287

It is intentionally local-only. To change gateway-host or node-host

284288

approvals remotely, use `openclaw approvals set --gateway` or

Original file line numberDiff line numberDiff line change

@@ -16,6 +16,7 @@ import {

1616

createExecApprovalPendingState,

1717

enforceStrictInlineEvalApprovalBoundary,

1818

MAX_EXEC_APPROVAL_FOLLOWUP_FAILURE_LOG_KEYS as maxExecApprovalFollowupFailureLogKeys,

19+

resolveBaseExecApprovalDecision,

1920

resolveExecApprovalUnavailableState,

2021

resolveExecHostApprovalContext,

2122

sendExecApprovalFollowupResult,

@@ -443,6 +444,19 @@ describe("resolveExecHostApprovalContext", () => {

443444

});

444445
445446

describe("enforceStrictInlineEvalApprovalBoundary", () => {

447+

it("denies unanswered approvals when ask fallback is fail-closed", () => {

448+

expect(

449+

resolveBaseExecApprovalDecision({

450+

decision: null,

451+

askFallback: "deny",

452+

}),

453+

).toEqual({

454+

approvedByAsk: false,

455+

deniedReason: "approval-timeout",

456+

timedOut: true,

457+

});

458+

});

459+
446460

it("denies timeout-based fallback when strict inline-eval approval is required", () => {

447461

expect(

448462

enforceStrictInlineEvalApprovalBoundary({

Original file line numberDiff line numberDiff line change

@@ -500,8 +500,8 @@ describe("exec approvals CLI", () => {

500500

requireRecord(toolsScope.askFallback, "tools.exec askFallback"),

501501

"tools.exec askFallback",

502502

{

503-

effective: "full",

504-

source: "OpenClaw default (full)",

503+

effective: "deny",

504+

source: "OpenClaw default (deny)",

505505

},

506506

);

507507

@@ -517,8 +517,8 @@ describe("exec approvals CLI", () => {

517517

effective: "always",

518518

});

519519

expectFields(requireRecord(agentScope.askFallback, "agent askFallback"), "agent askFallback", {

520-

effective: "allowlist",

521-

source: "OpenClaw default (full)",

520+

effective: "deny",

521+

source: "OpenClaw default (deny)",

522522

});

523523

});

524524
Original file line numberDiff line numberDiff line change

@@ -694,8 +694,8 @@ describe("exec approvals policy helpers", () => {

694694

});

695695
696696

expect(summary.askFallback).toEqual({

697-

effective: "full",

698-

source: "OpenClaw default (full)",

697+

effective: "deny",

698+

source: "OpenClaw default (deny)",

699699

});

700700

});

701701
Original file line numberDiff line numberDiff line change

@@ -282,7 +282,7 @@ export const DEFAULT_EXEC_APPROVAL_TIMEOUT_MS = 1_800_000;

282282
283283

const DEFAULT_SECURITY: ExecSecurity = "full";

284284

const DEFAULT_ASK: ExecAsk = "off";

285-

export const DEFAULT_EXEC_APPROVAL_ASK_FALLBACK: ExecSecurity = "full";

285+

export const DEFAULT_EXEC_APPROVAL_ASK_FALLBACK: ExecSecurity = "deny";

286286

const DEFAULT_AUTO_ALLOW_SKILLS = false;

287287

const DEFAULT_SOCKET = "~/.openclaw/exec-approvals.sock";

288288

const DEFAULT_FILE = "~/.openclaw/exec-approvals.json";