Skip to content

Commit 3e79956

Browse files
committed
docs(codex): clarify report-mode plugin approvals
1 parent 081e295 commit 3e79956

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎docs/plugins/codex-harness-runtime.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ OpenClaw can mirror selected events, but it cannot rewrite the native Codex
9898
thread unless Codex exposes that operation through app-server or native hook
9999
callbacks.
100100

101+
Codex app-server report-mode `PreToolUse` events are fail-closed for plugin
102+
approval requests. If an OpenClaw `before_tool_call` hook returns
103+
`requireApproval` while the native payload sets report approval mode
104+
(`openclaw_approval_mode` is `"report"`), OpenClaw does not open an
105+
interactive plugin approval prompt. The relay reports the requirement back to
106+
Codex as a denied `PreToolUse` response using the approval title or
107+
description as the deny reason. Plugins that need a
108+
human decision on this path should return `block` with explicit retry or
109+
out-of-band approval instructions. Codex `PermissionRequest` events are a
110+
separate approval path and can still route through OpenClaw approvals when the
111+
runtime is configured for that bridge.
112+
101113
Codex app-server item notifications also provide async `after_tool_call`
102114
observations for native tool completions that are not already covered by the
103115
native `PostToolUse` relay. These observations are for telemetry and plugin

‎docs/plugins/hooks.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ Hook guard behavior for typed lifecycle hooks:
211211
- `params` rewrites the tool parameters for execution.
212212
- `requireApproval` pauses the agent run and asks the user through plugin
213213
approvals. The `/approve` command can approve both exec and plugin approvals.
214+
In Codex app-server report-mode native `PreToolUse` relays, this is reported
215+
back to Codex as a denied tool call instead of opening an interactive plugin
216+
approval prompt; see [Codex harness runtime](/plugins/codex-harness-runtime#hook-boundaries).
214217
- A lower-priority `block: true` can still block after a higher-priority hook
215218
requested approval.
216219
- `onResolution` receives the resolved approval decision - `allow-once`,

0 commit comments

Comments
 (0)