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
This PR adds the keyboard workflow for moving through workspace tabs and manually flagging terminal work as unread: Command/Ctrl+Shift+Left/Right now cycles across every visible tab type in the active workspace, and Command+Shift+U on macOS or Ctrl+Shift+U on Windows marks the current terminal tab and workspace unread.
The unread-state fixes support that workflow rather than define it. Keyboard workspace navigation now preserves a manually marked terminal as unread, and returning to the unread terminal clears the workspace unread badge once no unread terminal tabs remain.
Terminal-focused bracket shortcuts remain scoped to terminal pane focus, so existing terminal pane navigation can keep working without taking over the global all-tab navigation shortcut.
Screenshots
No visual layout change. Behavior was verified in the running Electron dev app during development.
Testing
pnpm lint (Node 24)
pnpm typecheck (Node 24)
pnpm vitest run --config config/vitest.config.ts src/shared/keybindings.test.ts (Node 24)
pnpm test (Node 24; 20197 passed, 21 skipped)
pnpm build (Node 24; completed with the existing /usr/local/bin/orca-dev symlink permission warning and macOS CGWindowListCreateImage deprecation warning)
Added or updated high-quality tests that would catch regressions
AI Review Report
Reviewed keyboard routing, terminal and floating-terminal handling, tab activation, workspace activation, and unread clearing paths. The review explicitly checked macOS, Linux, and Windows shortcut behavior: the all-tab navigation shortcut uses shared Mod bindings, the mark-unread shortcut defaults on macOS and Windows, and Linux remains unbound for mark-unread to avoid the terminal Ctrl+Shift+U Unicode-input conflict.
The review also checked SSH, remote, and local compatibility. These changes only affect renderer/store event handling and do not assume local shell, path, process, credential, or provider behavior. Performance risk is low because unread checks scan only the active workspace's terminal tabs during explicit activation or shortcut actions. UI quality risk is limited to existing unread indicators; no layout, color, typography, or style tokens changed. Supported agent, integration, and git-provider compatibility were reviewed; no provider-specific review code, integration protocol, agent command, or terminal transport behavior was introduced.
Security Audit
No new IPC channels, command execution, dependency, network, filesystem, auth, or secret-handling surface was added. The security review focused on keyboard-event interception and stale unread state; consumed shortcuts are limited to registered app keybindings and terminal input is only stopped after a recognized workspace-navigation action.
Notes
Command/Ctrl+Shift+Left/Right now cycles across all visible tab types in a workspace.
Command+Shift+U on macOS and Ctrl+Shift+U on Windows mark the active terminal tab and workspace unread.
Linux remains unbound by default for mark-unread to avoid terminal/Unicode input conflicts; users can still bind it manually.
Command/Ctrl+Shift+Up/Down preserves manually marked unread state while navigating workspaces.
Synced locale catalog keys required by current main lint for terminal scroll-speed settings.
X/Twitter: not provided
ELI5
Keyboard shortcuts cycle all visible workspace tabs and mark the current terminal unread. Manual unread state is preserved when you navigate so “mark unread” stays meaningful.
This PR makes three independent sets of changes. First, the default tab-navigation shortcuts are migrated from bracket-based chords (Mod+Shift+[/]) to arrow-key chords (Mod+Shift+ArrowLeft/Right), and a new terminal.markUnread keybinding (Mod+Shift+U, macOS/Windows-only) is registered. Second, a terminal unread-marking feature is introduced: new helpers resolve the active terminal tab and mark it and its worktree as unread; worktree activation gains a preserveUnread option so keyboard-driven worktree cycling no longer clears unread state; and workspace-level unread clearing is made precise, triggering only when the last unread terminal tab in a worktree is dismissed. Third, localization strings for a terminal scroll-speed setting are added to all five supported locales (en, es, ja, ko, zh).
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
⚠️ Warning
Docstring coverage is 26.32% which is insufficient. The required threshold is 80.00%.
Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name
Status
Explanation
Title check
✅ Passed
The title accurately describes the main changes: adding workspace tab navigation (Command+Shift+Left/Right) and terminal unread shortcuts (Command+Shift+U).
Linked Issues check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Description check
✅ Passed
The PR description follows the required template and includes all major sections with relevant details.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
nmitch17
changed the title
fix: preserve terminal unread state across shortcuts
feat: add workspace tab navigation and terminal unread shortcuts
Jun 23, 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
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.
Summary
This PR adds the keyboard workflow for moving through workspace tabs and manually flagging terminal work as unread: Command/Ctrl+Shift+Left/Right now cycles across every visible tab type in the active workspace, and Command+Shift+U on macOS or Ctrl+Shift+U on Windows marks the current terminal tab and workspace unread.
The unread-state fixes support that workflow rather than define it. Keyboard workspace navigation now preserves a manually marked terminal as unread, and returning to the unread terminal clears the workspace unread badge once no unread terminal tabs remain.
Terminal-focused bracket shortcuts remain scoped to terminal pane focus, so existing terminal pane navigation can keep working without taking over the global all-tab navigation shortcut.
Screenshots
No visual layout change. Behavior was verified in the running Electron dev app during development.
Testing
pnpm lint(Node 24)pnpm typecheck(Node 24)pnpm vitest run --config config/vitest.config.ts src/shared/keybindings.test.ts(Node 24)pnpm test(Node 24; 20197 passed, 21 skipped)pnpm build(Node 24; completed with the existing/usr/local/bin/orca-devsymlink permission warning and macOSCGWindowListCreateImagedeprecation warning)AI Review Report
Reviewed keyboard routing, terminal and floating-terminal handling, tab activation, workspace activation, and unread clearing paths. The review explicitly checked macOS, Linux, and Windows shortcut behavior: the all-tab navigation shortcut uses shared
Modbindings, the mark-unread shortcut defaults on macOS and Windows, and Linux remains unbound for mark-unread to avoid the terminal Ctrl+Shift+U Unicode-input conflict.The review also checked SSH, remote, and local compatibility. These changes only affect renderer/store event handling and do not assume local shell, path, process, credential, or provider behavior. Performance risk is low because unread checks scan only the active workspace's terminal tabs during explicit activation or shortcut actions. UI quality risk is limited to existing unread indicators; no layout, color, typography, or style tokens changed. Supported agent, integration, and git-provider compatibility were reviewed; no provider-specific review code, integration protocol, agent command, or terminal transport behavior was introduced.
Security Audit
No new IPC channels, command execution, dependency, network, filesystem, auth, or secret-handling surface was added. The security review focused on keyboard-event interception and stale unread state; consumed shortcuts are limited to registered app keybindings and terminal input is only stopped after a recognized workspace-navigation action.
Notes
ELI5
Keyboard shortcuts cycle all visible workspace tabs and mark the current terminal unread. Manual unread state is preserved when you navigate so “mark unread” stays meaningful.