Skip to content

[Feature]: Let ACP agents' elicitations reach the person instead of declining them #6765

Open

Description

@enyst

Is there an existing feature request for this?

  • I have searched existing issues and feature requests, and this is not a duplicate.

Problem or Use Case

ACP agents (Claude Code, Codex, Gemini CLI, Kimi and the other built-in providers) can ask the client to get an answer from the person through the Agent Client Protocol's elicitation methods, added to the Client protocol in agent-client-protocol 0.12.x. The OpenHands bridge has no person to ask, so ACPAgent.create_elicitation always answers DeclineElicitationResponse(action="decline") and complete_elicitation is a no-op (openhands-sdk/openhands/sdk/agent/acp_agent.py).

Its docstring says none of the pinned providers elicits during a headless turn today. Some can, though: the Kimi provider runs in yolo mode because auto "would suppress questions entirely" (settings/acp_providers.py). As providers start eliciting, their questions will be silently declined and the person never sees them.

Desired Behavior

When an ACP agent elicits, the question reaches the person as a structured ask in the conversation, the same way a native agent's ask_user question does, and the person's answer (or a decline/cancel) goes back to the ACP agent.

Acceptance Criteria

  • An ACP elicitation creates a pending ask in the conversation that clients can render and answer.
  • The person's answer is returned to the ACP agent as an accept with its content; dismissing it returns decline or cancel.
  • A pending elicitation at close, restart or timeout resolves as cancel, so the ACP turn never hangs.
  • Without an answering client (headless runs), behavior stays as today: decline.
  • A live check with an ACP provider that elicits.

Alternatives Considered

Keep declining. That is safe for headless runs but loses every question an ACP agent asks in an interactive client.

Priority / Severity

Low - Nice to have

Estimated Scope

Medium - New feature with moderate complexity

Feature Area

  • Agent API / Core functionality
  • Agent Server

Technical Implementation Ideas (Optional)

This depends on a structured ask-the-person primitive landing first. The open ask_user work, #5570 / #5574 (tool and pause/resume) and #5571 / #5577 (typed request/response events and respond_to_ask_user endpoint), was explicitly shaped on MCP elicitation's accept/decline/cancel actions "so SDK elicitation can be layered on later". This issue is that layer for ACP: map an ACP elicitation onto the same request/response pair, so one card in Canvas answers both.

Additional Context

Came up while designing decision cards for OpenHands Projects, where a conversation that waits on the person should show in "Needs you" with its question.


OpenHands AI triage

The following comments and acceptance criteria were added by the OpenHands AI agent.

Triage

Verified in-repo: ACPAgent.create_elicitation always answers
DeclineElicitationResponse(action="decline") and complete_elicitation is a
no-op (openhands-sdk/openhands/sdk/agent/acp_agent.py), and the Kimi provider
is pinned to yolo mode specifically because that mode still allows question
elicitation while auto would suppress it
(openhands-sdk/openhands/sdk/settings/acp_providers.py). With
agent-client-protocol pinned at 0.12.1, an elicitation arrives as a form-mode
request (message plus requestedSchema) and is answered with an accept
carrying content, a decline, or a cancel; the correct repo is this one, which
owns the ACP bridge.

Dependency note: the typed ask_user request/response pair and the
respond_to_ask_user endpoint this issue maps onto (#5571, PR #5577) are not
yet merged to main. This issue's scope assumes that transport lands (or
equivalent functionality is merged first); until then only the decline
fallback applies. This mirrors the dependency handling used when triaging
#5570 and #5571.

Bounded scope: SDK-side wiring in the ACP bridge only — surface an
elicitation as a pending structured ask, route the person's answer or a
dismissal back to the ACP server, and resolve stranded elicitations as cancel.

Non-goals: implementing the ask_user transport itself (#5571 / #5577);
Canvas or Agent Server UI rendering of the ask card (OpenHands/OpenHands);
changing the bridge's request_permission auto-approval behavior; URL-mode
elicitation (UNSTABLE in agent-client-protocol 0.12.x — form mode only);
provider-specific elicitation configuration; new REST endpoints (answers reuse
the ask_user response path; whether to advertise the UNSTABLE client
elicitation capability is an implementation decision).

Acceptance Criteria

  • An elicitation request from an ACP server during a prompt turn creates a pending structured ask in the conversation event stream (the ask_user request/response event pair) instead of being silently declined, demonstrated with an ACP server that elicits using the repository's fake-ACP-server test pattern (tests/sdk/agent/).
  • The person's answer returned through the ask_user response path resolves the pending elicitation as an accept whose content is the answer, and the ACP prompt turn continues to completion afterwards.
  • Dismissing or declining the ask resolves the elicitation as a decline or cancel response reaching the ACP server, and the turn ends rather than hanging.
  • A pending elicitation resolves as cancel toward the ACP server when the turn is cancelled via the session/cancel drain path, when the agent restarts its session on the next turn, and when the agent is closed, so no elicitation stays unanswered across those lifecycle paths.
  • If an ask_user timeout is configured, an unanswered elicitation resolves as cancel at the timeout; with no timeout configured, behavior matches the ask_user default of waiting indefinitely.
  • Headless behavior is unchanged when there is no answering client or the ask_user transport is unavailable: the elicitation is declined as today, and turns for providers that never elicit produce no new events (the existing decline-path tests cover this).
  • A live validation with an ACP provider that elicits (e.g. Kimi Code in its yolo session mode) exercises the accept and decline paths end-to-end, selectable with the repository's acp_live test marker.
  • The ACP agent documentation and the S21 feature map record that elicitation now reaches the person and how the answer path works.

Activity

  1. added
    enhancement
    on Nov 11, 2026
  2. added
    ready-for-dev
    on Nov 11, 2026
  3. all-hands-bot commented on Nov 11, 2026

    @all-hands-bot
    Collaborator

    New issue asks that ACP elicitations (agent-client-protocol 0.12.x Client elicitation methods) reach the person instead of being auto-declined by the bridge in acp_agent.py. The closest sibling is #5480, which asks for the same thing for a different ACP method (session/request_permission): stop the bridge auto-answering and instead surface the pending ACP request to the person as an event, wait, and return their choice (or decline/cancel on interrupt/timeout). Both target the same _OpenHandsACPBridge 'no person to ask' gap and would share the person-facing design and pending-request plumbing, so planning should be co-located, but they are distinct protocol methods with different schemas (PermissionOption vs elicitation content) and #5480 also carries a by-kind auto-selection fix, so this is not a duplicate. The issue also explicitly depends on the ask_user primitives #5570/#5571, which are dependencies rather than duplicates.

    Found 3 possible duplicate issues:

    1. #5480 — [Feature]: Let ACP clients answer permission requests instead of always selecting the first option
    2. #5571 — [Feature]: ask_user request/response event pair and endpoint
    3. #5570 — [Feature]: ask_user tool for structured questions

    These may not be exact duplicates, but the scope appears to overlap enough that keeping discussion in one place may be more useful.

    This comment was created by an AI assistant (OpenHands) on behalf of the repository maintainer.

  4. Liz-Lian commented on Nov 28, 2026

    @Liz-Lian

    Hi @enyst, I’d like to work on #6765 if it’s still available. I saw your note on #5577 about why #6852 ends the turn. For ACP form-mode elicitation, the active turn needs to receive the answer before it can continue. What approach would you prefer for that reply path now?

    I’d keep the scope to elicitation in the SDK bridge, without changing permission prompts or UI. Is there an ACP provider you’d recommend for the live validation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions