
























@@ -484,7 +484,13 @@ By default, OpenClaw starts local Codex harness sessions in YOLO mode:
484484`approvalPolicy: "never"`, `approvalsReviewer: "user"`, and
485485`sandbox: "danger-full-access"`. This is the trusted local operator posture used
486486for autonomous heartbeats: Codex can use shell and network tools without
487-stopping on native approval prompts that nobody is around to answer.
487+stopping on native approval prompts that nobody is around to answer. On local
488+stdio Codex app-server installs where Codex's system requirements file
489+disallows the implicit YOLO approval, reviewer, or sandbox value, OpenClaw
490+treats the implicit default as guardian instead and selects allowed guardian
491+permissions so it does not send an override that Codex app-server will reject.
492+Hostname-matching `[[remote_sandbox_config]]` entries in the same requirements
493+file are honored for the sandbox default decision.
488494489495To opt in to Codex guardian-reviewed approvals, set `appServer.mode:
490496"guardian"`:
@@ -635,22 +641,22 @@ Supported top-level Codex plugin fields:
635641636642Supported `appServer` fields:
637643638-| Field | Default | Meaning |
639-| ----------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
640-| `transport` | `"stdio"` | `"stdio"` spawns Codex; `"websocket"` connects to `url`. |
641-| `command` | managed Codex binary | Executable for stdio transport. Leave unset to use the managed binary; set it only for an explicit override. |
642-| `args` | `["app-server", "--listen", "stdio://"]` | Arguments for stdio transport. |
643-| `url` | unset | WebSocket app-server URL. |
644-| `authToken` | unset | Bearer token for WebSocket transport. |
645-| `headers` | `{}` | Extra WebSocket headers. |
646-| `clearEnv` | `[]` | Extra environment variable names removed from the spawned stdio app-server process after OpenClaw builds its inherited environment. `CODEX_HOME` and `HOME` are reserved for OpenClaw's per-agent Codex isolation on local launches. |
647-| `requestTimeoutMs` | `60000` | Timeout for app-server control-plane calls. |
648-| `turnCompletionIdleTimeoutMs` | `60000` | Quiet window after a turn-scoped Codex app-server request while OpenClaw waits for `turn/completed`. Raise this for slow post-tool or status-only synthesis phases. |
649-| `mode` | `"yolo"` | Preset for YOLO or guardian-reviewed execution. |
650-| `approvalPolicy` | `"never"` | Native Codex approval policy sent to thread start/resume/turn. |
651-| `sandbox` | `"danger-full-access"` | Native Codex sandbox mode sent to thread start/resume. |
652-| `approvalsReviewer` | `"user"` | Use `"auto_review"` to let Codex review native approval prompts. `guardian_subagent` remains a legacy alias. |
653-| `serviceTier` | unset | Optional Codex app-server service tier. `"priority"` enables fast-mode routing, `"flex"` requests flex processing, `null` clears the override, and legacy `"fast"` is accepted as `"priority"`. |
644+| Field | Default | Meaning |
645+| ----------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
646+| `transport` | `"stdio"` | `"stdio"` spawns Codex; `"websocket"` connects to `url`. |
647+| `command` | managed Codex binary | Executable for stdio transport. Leave unset to use the managed binary; set it only for an explicit override. |
648+| `args` | `["app-server", "--listen", "stdio://"]` | Arguments for stdio transport. |
649+| `url` | unset | WebSocket app-server URL. |
650+| `authToken` | unset | Bearer token for WebSocket transport. |
651+| `headers` | `{}` | Extra WebSocket headers. |
652+| `clearEnv` | `[]` | Extra environment variable names removed from the spawned stdio app-server process after OpenClaw builds its inherited environment. `CODEX_HOME` and `HOME` are reserved for OpenClaw's per-agent Codex isolation on local launches. |
653+| `requestTimeoutMs` | `60000` | Timeout for app-server control-plane calls. |
654+| `turnCompletionIdleTimeoutMs` | `60000` | Quiet window after a turn-scoped Codex app-server request while OpenClaw waits for `turn/completed`. Raise this for slow post-tool or status-only synthesis phases. |
655+| `mode` | `"yolo"` unless local Codex requirements disallow YOLO | Preset for YOLO or guardian-reviewed execution. Local stdio requirements that omit `danger-full-access`, `never` approval, or the `user` reviewer make the implicit default guardian. |
656+| `approvalPolicy` | `"never"` or an allowed guardian approval policy | Native Codex approval policy sent to thread start/resume/turn. Guardian defaults prefer `"on-request"` when allowed. |
657+| `sandbox` | `"danger-full-access"` or an allowed guardian sandbox | Native Codex sandbox mode sent to thread start/resume. Guardian defaults prefer `"workspace-write"` when allowed, otherwise `"read-only"`. |
658+| `approvalsReviewer` | `"user"` or an allowed guardian reviewer | Use `"auto_review"` to let Codex review native approval prompts when allowed, otherwise `guardian_subagent` or `user`. `guardian_subagent` remains a legacy alias. |
659+| `serviceTier` | unset | Optional Codex app-server service tier. `"priority"` enables fast-mode routing, `"flex"` requests flex processing, `null` clears the override, and legacy `"fast"` is accepted as `"priority"`. |
654660655661OpenClaw-owned dynamic tool calls are bounded independently from
656662`appServer.requestTimeoutMs`: each Codex `item/tool/call` request must receive
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。