You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7e0b599
Browse filesBrowse the repository at this point in the historyBrowse files
fix: surface Codex input prompts across runtimes (#126387)
* fix: surface Codex input prompts across runtimes
Codex structured input now reaches bounded Gateway questions in native and ACP runs, with exact turn ownership, explicit unsupported outcomes, and cancellation fencing. Consume the published ACPX elicitation support.
* chore: align elicitation helpers with current guards
Use protocol-specific helper names required by current main and update the reservation regression to the generalized input owner.
* fix: formalize structured input SDK surface
Expose one documented, frozen agent-harness structured-input contract with runtime and subpath coverage, replacing the accidental function-property API.
* fix: satisfy elicitation architecture gates
Register the real-process ACPX fixture as an executable test root and move shared structured-input types into the boundary leaf to keep Knip and Madge clean.
* fix: remove structured input lint suppression
Preserve the rejected control and invisible-character ranges with an explicit code-point check so the production suppression inventory stays closed.
| `plugin-sdk/browser-config` | Private-local after July 2026; Supported browser config facade for normalized profile/defaults, CDP URL parsing, and browser-control auth helpers |
226
226
| `plugin-sdk/agent-harness-task-runtime` | Private-local after July 2026; Generic task lifecycle and completion delivery helpers for harness-backed agents using a host-issued task scope |
227
-
| `plugin-sdk/agent-harness-runtime` | Agent-harness runtime helpers. `acquireSessionWriteLock`, `resolveSessionWriteLockAcquireTimeoutMs`, `resolveSessionWriteLockOptions`, and `SessionWriteLockAcquireTimeoutConfig` are deprecated no-op compatibility exports scheduled for removal in the 2026.10 release train. They no longer block or create lock sidecars; harnesses should rely on OpenClaw's per-session lane plus the durable writer claim and in-transaction fence. |
227
+
| `plugin-sdk/agent-harness-runtime` | Agent-harness runtime helpers, including the bounded `agentHarnessStructuredInput` form/URL compilation and execution surface. `acquireSessionWriteLock`, `resolveSessionWriteLockAcquireTimeoutMs`, `resolveSessionWriteLockOptions`, and `SessionWriteLockAcquireTimeoutConfig` are deprecated no-op compatibility exports scheduled for removal in the 2026.10 release train. They no longer block or create lock sidecars; harnesses should rely on OpenClaw's per-session lane plus the durable writer claim and in-transaction fence. |
228
228
| `plugin-sdk/codex-mcp-projection` | Private-local after July 2026; Bundled Codex helper for projecting user MCP server config into Codex thread config; not for third-party plugins |
229
229
| `plugin-sdk/native-hook-relay-runtime` | Private-local bundled runtime helper for retained native direct-child hook policy; not for third-party plugins |
230
230
| `plugin-sdk/codex-session-transcript-runtime` | Private-local bundled Codex helper for serializing transcript-mirror writes; not for third-party plugins |
Copy file name to clipboardExpand all lines: docs/tools/acp-agents-setup.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,10 @@ Restart the gateway after changing this value.
283
283
284
284
## Permission configuration
285
285
286
-
ACP sessions run non-interactively — there is no TTY to approve or deny file-write and shell-exec permission prompts. The acpx plugin provides two config keys that control how permissions are handled:
286
+
ACP sessions run without an interactive TTY for file-write and shell-exec
287
+
permission prompts. This does not disable ACP form or URL elicitation during a
288
+
channel-delivered turn: those requests use transient Gateway questions instead.
289
+
The acpx plugin provides two config keys that control harness permissions:
287
290
288
291
These ACPX harness permissions are separate from OpenClaw exec approvals and separate from CLI-backend vendor bypass flags such as Claude CLI `--permission-mode bypassPermissions`. ACPX `approve-all` is the harness-level break-glass switch for ACP sessions.
Copy file name to clipboardExpand all lines: docs/tools/acp-agents.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -631,6 +631,15 @@ work. The delivery path depends on that shape.
631
631
session, and ACP output is delivered back to that same
632
632
channel/thread/topic.
633
633
634
+
When an ACP agent requests structured input during a delivered turn,
635
+
OpenClaw presents supported form fields as transient Gateway questions in
636
+
batches of up to three. Single- and multi-select fields support up to four
637
+
choices. URL requests show the literal HTTP(S) URL with explicit Continue
638
+
and Decline choices; OpenClaw does not fetch or open it. Explicitly secret
639
+
fields use a warned, ephemeral text-reply prompt and are never stored in a
640
+
Gateway question record. Malformed or unsupported requests produce a
641
+
visible explanation and are declined instead of returning empty answers.
642
+
634
643
What OpenClaw sends to the harness:
635
644
636
645
- Normal bound follow-ups are sent as prompt text, plus attachments only when the harness/backend supports them.
@@ -840,6 +849,7 @@ see [ACP agents - setup](/tools/acp-agents-setup).
840
849
|`sessions_spawn sandbox="require" is unsupported for runtime="acp" ...`|`sandbox="require"` requested for ACP runtime. | Use `runtime="subagent"` for required sandboxing, or use ACP with `sandbox="inherit"` from a non-sandboxed session. |
841
850
|`Cannot apply --model ... did not advertise model support`| The target harness does not expose generic ACP model switching. | Use a harness that advertises ACP `models`/`session/set_model`, use Codex ACP model refs, or configure the model directly in the harness if it has its own startup flag. |
842
851
| Missing ACP metadata for bound session | Stale/deleted ACP session metadata. | Recreate with `/acp spawn`, then rebind/focus thread. |
852
+
| ACP input request is declined or cancelled | The form/URL is malformed, exceeds field/choice limits, uses unsupported constraints, or the owning turn ended. | Read the visible decline reason, retry with a standard primitive form or valid HTTP(S) URL, and keep the originating turn active while answering. |
843
853
|`PermissionPromptUnavailableError: Permission prompt unavailable in non-interactive mode`|`permissionMode` blocks writes/exec in non-interactive ACP session. | Set `plugins.entries.acpx.config.permissionMode` to `approve-all` and restart gateway. See [Permission configuration](/tools/acp-agents-setup#permission-configuration). |
844
854
| ACP session fails early with little output | Permission prompts are blocked by `permissionMode`/`nonInteractivePermissions`. | Check gateway logs for `AcpRuntimeError`. For full permissions, set `permissionMode=approve-all`; for graceful degradation, set `nonInteractivePermissions=deny`. |
845
855
| ACP session stalls indefinitely after completing work | Harness process finished but ACP session did not report completion. | Update OpenClaw; current acpx cleanup reaps OpenClaw-owned stale wrapper and adapter processes on close and Gateway startup. |
Copy file name to clipboardExpand all lines: docs/tools/permission-modes.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,10 @@ For app-server setup, auth order, and native Codex runtime details, see [Codex h
63
63
64
64
## ACPX harness permissions
65
65
66
-
ACPX sessions are non-interactive, so they cannot click a TTY permission prompt. ACPX uses separate harness-level settings under `plugins.entries.acpx.config`:
66
+
ACPX sessions have no interactive TTY for permission prompts. Supported ACP
67
+
form and URL requests can still reach the operator as Gateway questions during
68
+
a channel-delivered turn; those are separate from permission approval. ACPX
69
+
uses separate harness-level settings under `plugins.entries.acpx.config`:
0 commit comments