fix(tui): restore navigation keybind defaults - #42066
Merged
Merged
Conversation
kitlangton
enabled auto-merge (squash)
August 12, 2026 15:50
kitlangton
disabled auto-merge
August 12, 2026 15:54
kitlangton
enabled auto-merge (squash)
August 12, 2026 15:54
kitlangton
disabled auto-merge
August 12, 2026 15:55
kitlangton
enabled auto-merge (squash)
August 12, 2026 15:56
kitlangton
disabled auto-merge
August 12, 2026 15:57
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
Restore the V2 TUI keybind defaults that were unintentionally overwritten or omitted by the command-ID migration in #41882:
Option+Up/Option+Downswitch to the previous / next open tab.Option+Shift+Up/Option+Shift+Downswitch to the previous / next unread tab.Ctrl+0and<leader>0select the tenth tab.Ctrl+Oopens the recent sessions and projects menu.Ctrl+Shift+Treopens the last closed tab.<leader>Iopens image attachments.Before / After
Before
The command-ID migration replaced the current tab defaults with stale message-navigation and leader-arrow defaults. It also omitted definitions for commands that remained implemented and registered, so their defaults and migrated user overrides disappeared. Home and End were also rebound to prompt-buffer movement despite #40123 intentionally reserving them for message navigation.
After
The centralized command-ID definitions preserve the effective defaults from immediately before #41882 while retaining the new canonical command IDs.
How
packages/tui/src/config/keybind.tsusing canonical command IDs.Scope
This restores confirmed behavioral parity regressions only. It does not remove unrelated dead command definitions introduced by #41882; those can be audited separately without delaying this fix.
Testing
bun run test test/config-v2.test.tsx test/config.test.tsx test/keymap.test.tsxfrompackages/tui: 31 passed, 0 failed.bunx prettier --check packages/tui/src/config/keybind.ts packages/tui/test/config-v2.test.tsx: passed.git diff --check: passed.bun typecheckfrompackages/tui: blocked by unrelated generated-schema skew in the dependency-linked clean worktree (location-switched, AI transport, and system-message schema errors); no errors referenced the changed files.