fix(app): enable auto-accept keybind regardless of permission config by luisfelipesena · Pull Request #16259 · anomalyco/opencode
added 3 commits
March 5, 2026 22:21The Cmd+Shift+A keybind for toggling auto-accept permissions was permanently disabled when no permission prompt rules were configured. The permissionsEnabled() check prevented the command from entering the keymap, making the keybind dead for most users. Remove the permissionsEnabled() gate from the disabled condition so the keybind works whenever a session is active.
The @opentui/solid package moved its bun plugin export from `scripts/solid-plugin` to `bun-plugin`. Also add a fallback for `parser.worker.js` to check the root node_modules when the package is hoisted in the monorepo.
The Cmd+Shift+A keybind was dead when no session was active or when switching projects. Three changes: 1. Keybind now works on the "New session" screen by toggling auto-accept at the directory level (key: base64(dir)/*). 2. When config has `permission: "allow"`, auto-accept is enabled by default for that directory on first visit. 3. The chevron icon correctly reflects the active state on both "New session" and active session screens. Removes the ephemeral `pendingAutoAccept` local state in favor of the persisted directory-level auto-accept store.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters