Repository navigation
feat(tui): always show permission mode and cycle it with shift+tab - #131
Merged
Merged
Conversation
The prompt footer badge next to the agent name now always renders in prompt mode: gray "manual" in normal mode, red "auto" (theme.error) when permissions are auto-approved (--auto). New permission_mode_cycle keybind (default shift+tab) toggles the mode via the existing permission.mode command; agent_cycle_reverse is now unbound by default (tab still cycles agents forward). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 29, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
manual(theme.textMuted) in normal mode, redauto(theme.error) when permissions are auto-approved (--auto). Previously only a grayautoappeared, and nothing in normal mode.shift+tab modeshint left oftab agents.permission_mode_cyclekeybind, defaultshift+tab, mapped to the existingpermission.modepalette command so the mode can be toggled without opening the palette.agent_cycle_reverse("Previous agent") default moves fromshift+tabtononeto free the key;tabstill cycles agents forward and previous-agent stays rebindable via keybinds config.Why
Make the permission mode always visible — with auto in red as a danger signal — and quick to toggle.
Verification
bun typecheckinpackages/tui.manual,--autostart shows redauto, andshift+tab(BTab) toggles the mode without cycling the agent; the palette lists the command with itsshift+tabshortcut.bun testinpackages/tui: only the pre-existing flakyapp-lifecycle.test.tsxepilogue test fails; it fails identically on a clean tree.DIVERGENCES.mdrow andCHANGELOG.mdUnreleased entry included.🤖 Generated with Claude Code