[PR #13562] feat(acp): add opt-in flag for question tool #14717

Closed
opened 2026-02-16 18:19:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13562

State: closed
Merged: Yes


Closes #13567
Follow-up to #11379

Why

Custom ACP clients can support interactive question prompts, but ACP should stay safe by default.

What changed

  • Added OPENCODE_EXPERIMENTAL_QUESTION_TOOL experimental env flag.
  • Updated tool registry gating:
    • question stays enabled for app, cli, desktop.
    • question is enabled for acp only when the flag is on.
  • Added tests for ACP default-off, ACP opt-in-on, and existing client behavior.
  • Added ACP docs note with the enable example and compatibility warning.

Safety

Default ACP behavior is unchanged. question remains excluded unless explicitly opted in.

How to enable

OPENCODE_EXPERIMENTAL_QUESTION_TOOL=1 opencode acp

Enable this only in ACP clients that support interactive question prompts.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13562 **State:** closed **Merged:** Yes --- Closes #13567 Follow-up to #11379 ### Why Custom ACP clients can support interactive question prompts, but ACP should stay safe by default. ### What changed - Added `OPENCODE_EXPERIMENTAL_QUESTION_TOOL` experimental env flag. - Updated tool registry gating: - `question` stays enabled for `app`, `cli`, `desktop`. - `question` is enabled for `acp` only when the flag is on. - Added tests for ACP default-off, ACP opt-in-on, and existing client behavior. - Added ACP docs note with the enable example and compatibility warning. ### Safety Default ACP behavior is unchanged. `question` remains excluded unless explicitly opted in. ### How to enable `OPENCODE_EXPERIMENTAL_QUESTION_TOOL=1 opencode acp` Enable this only in ACP clients that support interactive question prompts.
yindo added the pull-request label 2026-02-16 18:19:29 -05:00
yindo closed this issue 2026-02-16 18:19:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14717