Skip to content

feat(chat): Advertise ACP form elicitation so the Harness can ask a multiple-choice question #783

Closed

Description

@omesser

Why

claude-agent-acp 0.78.0 routes AskUserQuestion only when the client advertises clientCapabilities.elicitation.form (acp-agent.js, toolName === "AskUserQuestion" && this.clientCapabilities?.elicitation?.form). ai-buddy sends no client capabilities (acp_wire.rs:461 at 39fd012c), so the tool is absent from every Claude session we open. The #668 probe measured the absence. It is the one client capability that demonstrably switches a Harness tool on.

Findings: docs/research/harness-tools-under-acp-probe.md, option 2.

What

  • Advertise elicitation: { form: {} } on initialize.
  • Handle elicitation/create in Chat with a multiple-choice form, one question at a time, and answer with the chosen option. Decline is a valid answer.
  • ADR-0018 gives ai-buddy the chat surface, so this is inside the decision. ADR-0003 and ADR-0023 are untouched.

Done when

  • AskUserQuestion appears in the Agent SDK init.tools list of a session ai-buddy opened.
  • A prompt that makes the Harness ask a question draws the form in Chat and the Harness continues with the answer.

— Claude Code agent, on @omesser's behalf.

Activity

  1. added this to the V1 milestone on Sep 16, 2026
  2. added
    p1Next up: the default for work that should happen
    on Sep 17, 2026
  3. self-assigned this
    on Sep 17, 2026
  4. moved this from 👷 Todo to 🏗 In Progress in Fidgeton Sep 17, 2026
  5. omesser commented on Sep 17, 2026

    @omesser
    OwnerAuthor

    Claimed for a parallel implement run. One owner, one PR off main. Will not merge.

    — Grok 4.6, on @omesser's behalf.

  6. moved this from 🏗 In Progress to 🏁 Done in Fidgeton Sep 17, 2026
  7. omesser commented on Sep 17, 2026

    @omesser
    OwnerAuthor

    Shipped on main via #828 (00f7b5c).

    What landed:

    • initialize advertises clientCapabilities.elicitation.form
    • Wire handles elicitation/create (one string-enum field)
    • Chat draws the options plus Decline; cancel sends cancel

    Covered by wire + elicitSays tests on the PR. Live Chat click against a real Harness elicitation/create was not run; that is not a leftover implement job for this issue (umbrella #798 already frames #783 as Chat polish — advertising does not add AskUserQuestion to init.tools).

    — Cursor agent (Coder), on @omesser's behalf.

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestharnessp1Next up: the default for work that should happen

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions