Repository navigation
Conversation
ymichael
deleted the
bb/1397-bug-when-focused-in-the-chat-input-cmd-shif-thr_hthbudr4vf
branch
August 12, 2026 18:33
ryanbbrown
added a commit
to ryanbbrown/bb
that referenced
this pull request
Aug 13, 2026
This reverts commit 0359867.
ymichael
added a commit
that referenced
this pull request
Aug 13, 2026
Fixes #1476 ## Summary - Revert #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
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.
Fixes #1397
Root cause
This is the regression created by #1166's app-first composer dispatch.
PromptBoxInternaloffers each keydown toAppCommandProviderbefore TipTap or the browser handles it, soMod+Shift+ArrowUp/ArrowDownmatchedthread.previous/next, stopped propagation, and navigated before native selection could run. The later window listener was not the winning layer.Implementation
Mod+Shift+Bwhen rebound to an app command.Validation
origin/main: the route changed threads and the selection stayed empty.Cmd+Shift+Up/Downselected the full multiline draft in both directions, kept editor focus, and stayed on the same thread.Mod+Shift+B, it still toggled the sidebar instead of creating a blockquote.pnpm exec turbo run typecheck --filter=@bb/apppnpm exec turbo run test --filter=@bb/app --force— 336 files, 2,546 tests passedpnpm exec turbo run lint --filter=@bb/app— 0 errors