Skip to content

feat: add workspace tab navigation and terminal unread shortcuts - #6135

Open
nmitch17 wants to merge 3 commits into
stablyai:mainfrom
nmitch17:fix/workspace-terminal-unread-shortcuts
Open

nmitch17 wants to merge 3 commits into
stablyai:mainfrom
nmitch17:fix/workspace-terminal-unread-shortcuts

Conversation

@nmitch17

@nmitch17 nmitch17 commented Jun 23, 2026 •

Copy link
Copy Markdown

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-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

Compound Engineering
GPT-5.5_xhigh

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.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nmitch17 nmitch17 changed the title fix: preserve terminal unread state across shortcuts feat: add workspace tab navigation and terminal unread shortcuts Jun 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants