ACP clients that don't advertise elicitation can't approve anything: tool approvals are silently denied, plan approval is silently granted
Description
All interactive approvals in the ACP path go through elicitation/create. elicitation is an optional ACP client capability. When a client omits it, omp cannot ask the user anything — and it resolves that state inconsistently, in two opposite directions:
| Approval | Fallback when it can't ask | Result |
|---|---|---|
Tool use (write, edit, bash, …) |
treated as denied | agent silently cannot act |
| Plan-mode approval | treated as granted | read-only mode silently ends, agent starts editing |
So on the same client, the agent can't be trusted to stop and can't be allowed to act. With tools.approvalMode: always-ask the agent can only read; with any mode, plan mode stops being read-only the moment a plan is proposed.
session/request_permission is never used for tool approvals — verified across every run below.
Steps to Reproduce
A minimal ACP client, differing only in clientCapabilities. Model and prompt identical; tools.approvalMode: always-ask.
Run A — Air-like (no elicitation):
"clientCapabilities": {
"fs": { "readTextFile": false, "writeTextFile": false },
"terminal": false,
"_meta": { "terminal-auth": true }
}Prompt: "Use the write tool to create /tmp/acp-write-probe.txt containing exactly: hello."
server->client methods : ["session/update"]
elicitation/create : 0
request_permission : 0
stopReason : "end_turn"
file created : NONo prompt of any kind reaches the client. The agent reports the write was denied. Nothing distinguishes this from a policy denial.
Run B — identical, but advertising elicitation: { form: {} }:
>>> elicitation/create {"mode":"form",
"message":"Allow tool: write\nPath: /tmp/acp-write-probe.txt\nContent:\nhello",
"requestedSchema":{"properties":{"value":{"enum":["Approve","Deny"]}}}}
elicitation/create : 1
request_permission : 0
file created : YES (after answering "Approve")The only difference is the advertised capability.
Run C — plan mode, Air-like capabilities (no elicitation):
MODE -> plan (session/set_config_option {"configId":"mode","value":"plan"})
-- task sent: write a minimal plan, then submit it via xd://propose --
MODE -> default
elicitation/create : 0
stopReason : "end_turn"Plan mode exits with zero approval requests. Nothing was shown to the user and nothing was answered, yet the session left its read-only mode.
Run C also shows the two bugs composing: after the unrequested exit, the actual file write was then silently denied by the tool-approval path. The user gets neither the protection nor the work.
Expected Behavior
- Inability to obtain consent should never mean "granted". Plan approval in particular should fail closed: stay in plan mode and respond as when refinement is requested.
- Use
session/request_permissionfor tool approvals. It's the protocol's purpose-built consent mechanism and needs no optional capability. Today it appears unused on this path, so clients withoutelicitationhave no way to approve a tool call.
Error Output
Platform
macOS
omp version
v18.1.17
Bun version
Provider
None
Area
Other
Additional context
Why this is worse than "capability unsupported"
Plan mode is advertised to clients that provably cannot approve anything:
"availableModes": [
{ "id": "default", "name": "Default", "description": "Standard ACP headless mode" },
{ "id": "plan", "name": "Plan",
"description": "Read-only planning mode that drafts a plan to a markdown file before any code changes" }
]Plan mode is otherwise genuinely enforced — a direct write request in plan mode is correctly refused, and nothing is created. So the enforcement is real; only its exit condition is unguarded. And xd://propose, the documented way to complete a plan, is exactly the trigger.
The tool-approval side fails the opposite way, which makes the behaviour hard for users to reason about: identical missing capability, opposite outcomes.
Impact
- On affected clients omp cannot write, edit, or run commands under
always-ask— the agent looks broken, with no actionable error. The denial is indistinguishable from a configured policy. - Users work around it by moving to
writeoryolo, which is the opposite of what they want and removes approval entirely. - Plan mode's single guarantee is void, silently, on the same clients.
- There is no configuration that yields "ask me" on these clients;
promptis unreachable, so every tool is effectivelyallowordeny. - Nothing is logged. The mode indicator flips and edits begin, or tools fail with no explanation.
Relevant spec context
Per the ACP v1 initialization spec, elicitation is optional:
All capabilities included in the
initializerequest are OPTIONAL. Clients and Agents SHOULD support all possible combinations of their peer's capabilities.Clients and Agents MUST treat all capabilities omitted in the
initializerequest as UNSUPPORTED.
A client omitting elicitation is fully compliant, so "no elicitation" is a combination agents are expected to handle. omp detects it correctly — the problem is what it does next.
(omp's elicitation.form-presence test also matches the spec's caveat that, unlike MCP, ACP does not treat {} as form support. Detection isn't the bug.)
Source: can1357/oh-my-pi