anomalyco / anomalyco/opencode

ACP: support elicitation for V2 forms and questions

Open
#38,121 0 comments 3 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Jul 21, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Summary

Add ACP elicitation support in V2 by translating session forms/questions into unstable_createElicitation requests when the connected ACP client advertises support.

Today, all session forms are auto-cancelled in the ACP path, so an agent cannot collect structured input from a capable client.

Expected behavior

  • Detect whether the ACP client supports elicitation.
  • Translate V2 session forms/questions into unstable_createElicitation requests when supported.
  • Return the client's submitted or cancelled result to the waiting session flow.
  • Preserve the current auto-cancel fallback when elicitation is unsupported.
  • Cover supported, cancelled, and unsupported-client paths with tests.

Requested by: @nexxeln (Shoubhit Dash via Slack)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.