You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Auto-accept keybind (Cmd+Shift+A) dead on New Session screen and when switching projects #16258
The Cmd+Shift+A keybind for toggling auto-accept permissions has two bugs:
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.
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
Set "permission": "allow" in ~/.config/opencode/opencode.json
Open OpenCode desktop, navigate to any project
Press Cmd+Shift+A — nothing happens
Start a session, press Cmd+Shift+A — still nothing
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
Activity
github-actions commentedon Mar 6, 2026
For keybind-related issues, please also check our pinned keybinds documentation: #4997