Skip to content

[Bug]: Auto-accept keybind (Cmd+Shift+A) dead on New Session screen and when switching projects #16258

Closed

Description

@luisfelipesena

Description

The Cmd+Shift+A keybind for toggling auto-accept permissions has two bugs:

  1. Dead on New Session screen: The keybind is disabled when no session is active (disabled: !params.id), so pressing Cmd+Shift+A on the "New session" screen does nothing. The chevron icon also doesn't reflect auto-accept state.

  2. Dead after switching projects: When permission: "allow" is set in the global opencode.json, permissionsEnabled() returns false (since there are no non-allow rules to prompt for), which gates the keybind with disabled: !permission.permissionsEnabled(). This makes the keybind permanently dead for users with permission: "allow".

Steps to Reproduce

  1. Set "permission": "allow" in ~/.config/opencode/opencode.json
  2. Open OpenCode desktop, navigate to any project
  3. Press Cmd+Shift+A — nothing happens
  4. Start a session, press Cmd+Shift+A — still nothing
  5. Switch to another project — keybind remains dead

Expected Behavior

  • Cmd+Shift+A should toggle auto-accept regardless of the permission config
  • On the "New session" screen, it should toggle at the directory level
  • The chevron icon should reflect the current state
  • When permission: "allow" is configured, auto-accept should be on by default

Related: #7928, #1813

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    webRelates to opencode on web / desktop
    on Mar 6, 2026
  2. github-actions commented on Mar 6, 2026

    @github-actions
    Contributor

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

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

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentuiwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions