Skip to content

[FEATURE]: Expose per-session automatic approval through ACP #47918

Open

Description

@DinahK-2SO

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Please expose reversible, per-session automatic approval (Yolo) through ACP configOptions and session/set_config_option, while respecting explicit deny rules.

Tested the official Windows v1.18.29 binary with isolated default and permission: "ask" profiles. initialize and session/new succeed; fresh sessions expose only model and mode (build/plan). Those modes switch successfully, but auto/yolo return -32602; no approval option is advertised.

ACP clients could then offer On/Off without changing global configuration or restarting OpenCode. Unlike #28926, this request is session-scoped.

Additionally, this request is specifically requiring ACP configOptions/session/set_config_option exposure rather than a slash command.

Activity

  1. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of an existing issue. Please check:

    If your request is meaningfully different (e.g., specifically requiring ACP configOptions/session/set_config_option exposure rather than a slash command), please clarify the distinction in your issue.

  2. SANTHOSHKUMAR-303 commented on Sep 8, 2026

    @SANTHOSHKUMAR-303

    I want to work on this issue can assign this to me

  3. DinahK-2SO commented on Sep 20, 2026

    @DinahK-2SO
    Author

    If your request is meaningfully different (e.g., specifically requiring ACP configOptions/session/set_config_option exposure rather than a slash command), please clarify the distinction in your issue.

    Yes it it.

  4. opencodejr commented on Oct 28, 2026

    @opencodejr

    Thanks for the detailed request! To restate it: you'd like ACP sessions to advertise a reversible, per-session automatic approval option in configOptions, toggled with session/set_config_option, that approves everything except what's explicitly denied. That way ACP clients can offer an On/Off switch without changing global config or restarting OpenCode.

    You tested v1.18.29. v1 only gets critical fixes, but this request applies to v2 as well. v2's ACP agent currently only advertises model, effort (for models that have variants) and mode. v2 does have opencode --auto, which auto-approves permissions that aren't explicitly denied, but it applies to the whole process rather than to one session and can't be toggled from an ACP client.

    I've marked this as a feature request for the maintainers to consider. A plugin can't cover it, because plugins can't add ACP session config options.

    Related:

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions