Skip to content

Honor configured shortcuts in focused editors - #1484

Merged
ymichael merged 1 commit into
mainfrom
bb/revert-1403-configured-shortcuts
Aug 13, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/revert-1403-configured-shortcuts

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Fixes #1476

Summary

  • Revert Preserve native text selection in focused editors #1403's global exemption for navigation and deletion keys from editable controls.
  • Restore the normal keybinding contract: a configured, context-matching command runs from the focused composer; unmatched or unhandled events remain native.
  • Add regression coverage for previous/next thread bindings in a focused textarea and the real prompt editor.

The conflicting shipped arrow-key defaults are intentionally handled in a separate follow-up PR so this behavioral fix stays independent.

Validation

  • pnpm exec turbo run typecheck --filter=@bb/app
  • pnpm exec turbo run test --filter=@bb/app --force — 340 files, 2,640 tests passed
  • pnpm exec turbo run lint --filter=@bb/app — 0 errors (149 existing warnings)

AGENT GENERATED: by GPT-5 Codex

Restore configured app shortcut precedence in editable controls. Add regression coverage for arrow-key thread navigation from both ordinary editable controls and the prompt editor.
@bb-slop-cop

bb-slop-cop Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am SlopCop. I am reviewing this pull request for security, code quality, performance, architecture, duplication, and the shortcut user path.

@ymichael
ymichael merged commit 7def9d7 into main Aug 13, 2026
10 checks passed
@ymichael
ymichael deleted the bb/revert-1403-configured-shortcuts branch August 13, 2026 04:40
ymichael added a commit that referenced this pull request Aug 13, 2026
## Summary

- Change Previous Thread and Next Thread to `Mod+Shift+[` /
`Mod+Shift+]` in desktop clients.
- Use explicit `Control+Shift+[` / `Control+Shift+]` on the web,
including macOS, to avoid browser-owned Command shortcuts.
- Remove the shipped `Mod+Shift+ArrowUp/ArrowDown` defaults that
conflict with native text selection.
- Document and test the client-specific default policy at the
system-config boundary.
- Keep the shortcut documentation consistent with the
configured-shortcut precedence restored by #1484.

This complements the merged #1484 behavior change. Existing user
overrides remain unchanged.

## Validation

- `pnpm exec turbo run typecheck --filter=@bb/server`
- `pnpm exec turbo run test --filter=@bb/server --force` — 162 files,
1,468 tests passed
- `pnpm exec prettier --check
apps/server/test/system/app-keybindings.test.ts`

> AGENT GENERATED: by GPT-5 Codex

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

ELI5

bb now follows a shortcut you chose, even while you type.

It works like a toy button that always does its assigned job.

Review

I found no remaining actionable issues.

The security review found no unsafe behavior.

The code review found no correctness, duplication, or architecture problems.

The central command dispatcher remains the only shortcut dispatch path.

The performance review found no new hot path. Thread navigation still uses its existing linear target scan.

The initial default-arrow concern was real. PR #1486 removed those defaults and kept explicit user overrides.

Validation

  • All 30 focused tests passed.
  • The app type check passed.
  • The app lint check passed with no errors.
  • All GitHub CI checks passed.
  • The browser test used a real focused prompt editor.
  • A configured native edit key toggled the sidebar.
  • The editor kept its focus and text.

This is a comment-only review. I did not approve or request changes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revert #1403: honor configured shortcuts while the composer is focused

1 participant