Skip to content

Don't play permission sound if auto-approve is on #48579

Open

Description

@Sarulean

Description

When sounds are configured in the TUI, the "permission" sound always plays when the agent asks for permission, even if "Enable auto-approve permissions" is on. This causes the permission sound to play a lot if the agent is requesting permissions while auto-approve is on. If auto-approve is on the permission sound should not play

Plugins

No response

OpenCode version

1.18.29

Steps to reproduce

  1. Set a permission sound
  2. Enable "auto-approve" in TUI
  3. Have the agent open a file that is not in the current project

Screenshot and/or share link

No response

Operating System

CachyOS

Terminal

Kitty

Activity

  1. Sarulean commented on Sep 12, 2026

    @Sarulean
    Author

    This is V1 by the way

  2. Sarulean commented on Sep 16, 2026

    @Sarulean
    Author

    This issue also applies to V2 though

  3. Sarulean commented on Oct 3, 2026

    @Sarulean
    Author

    This isn't referring to the planned full-auto mode (though it should apply to that too when it is released), it is referring to the existing "auto-accept" mode.

  4. opencodejr commented on Oct 28, 2026

    @opencodejr

    Thanks for the clear report, @Sarulean!

    You're on OpenCode 1.18.29, which is v1. v1 now only gets fixes for critical bugs (data loss, security problems, crashes or breakage with no workaround). A permission sound playing while auto-approve is on doesn't fall into that group, and turning the permission sound off is a workaround, so this is unlikely to be fixed in v1.

    We'd encourage upgrading to v2 (the @opencode/cli package, opencode command), where active development happens. From reading the v2 code, it may behave the same way: the TUI's auto-approve answers a permission request only after the request is raised, and the notification sound plays on that same event. If you can reproduce this on v2, please reply here with your v2 version. Please also reply if you think this is more serious than it looks.

  5. Sarulean commented on Oct 28, 2026

    @Sarulean
    Author

    This is v2, I hadn't updated when I made this issue. I am using v2 now and the issue still exists.

  6. Sarulean commented on Oct 28, 2026

    @Sarulean
    Author

    My v2 version is 2.1.4

  7. opencodejr commented on Oct 29, 2026

    @opencodejr

    Closing this as not planned. You reported it on v1 (1.18.29), and v1 only gets fixes for critical bugs. We haven't heard that it also happens on v2.

    If the permission sound still plays with auto-approve on in v2 (the @opencode/cli package), please open a new issue with your v2 version and the steps you used. Thanks for reporting it, @Sarulean!

  8. Sarulean commented on Oct 30, 2026

    @Sarulean
    Author

    I confirmed yesterday that this still happens on v2 and provided version 2.1.4: https://github.com/anomalyco/opencode/issues/48579#issuecomment-6470544903⁠. Could you reopen this issue? PR #59094 already targets it.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions