Repository navigation
fix(channels): leave Option+Up/Down to text fields outside the composer - #2765
Conversation
Previous and next conversation (Option+Up/Down, with Shift for unread only) ran from any text field, so Option+Up/Down in the Canvas editor or a channel details field switched channels instead of moving the caret. Stepping now also checks inFieldOutsideComposer(), the check Escape's mark-read already uses, so it still runs from the message composer and terminals still keep the key. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Cheng Peng <cheng@block.xyz> Co-authored-by: Cursor <cursoragent@cursor.com>
The test checks that stepping stays available in the message composer
and is unavailable in other text fields. It never presses a key, and on
macOS the composer handles plain Option+Up/Down itself, so the old name
("steps from the message composer") promised more than the test checks.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cheng Peng <cheng@block.xyz>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 No must-fix design issues found in source at This is a contained fix for caret movement and selection in Canvas and other text fields, within the launch bug-fix policy. All four stepping shortcuts reuse the existing field guard; composer eligibility and terminal/modal handling remain intact. The regression checks field versus composer focus. Source review only; tests inspected, not rerun. Native caret/selection and composer behavior are author-reported. No screenshots supplied; themes, widths, enlarged text, state visuals and live keyboard/focus were not independently exercised. |
|
🤖 Could you add a screenshot or short video of the change to the PR? Design uses these for faster reviews. |
Added under Screenshots in the description. They come from the debug build I tested. |
* origin/main: (37 commits) feat(activity): show an unread count on the sidebar Activity row (#3641) feat(solo): reorder workspaces like channel sections (#3524) update feedback community invite link (#3652) Keep the AppImage's bundle paths out of host processes (#3653) Keep custom status emoji inline in the profile preview and mark agents in the full profile (#3534) feat(solo): rename workspaces in settings (#3531) Compact superseded thread summaries before memory admission (#3583) Skip retained thread events before replay reconciliation (#3584) feat(messages): replace the forward-like thread icon (#2166) fix(mentions): draw people outside the channel as people in the mention picker (#3640) fix(tests): prevent onboarding tests from crashing on macOS (#2883) fix(threads): don't count your own nested reply as a new message (#2767) fix(notifications): let only confirmed mutes cancel message alerts (#2766) fix(channels): leave Option+Up/Down to text fields outside the composer (#2765) fix(settings): show full section names in the Settings sidebar (#2759) fix(messages): drop stable row activity for rows that left the timeline (#2738) feat(agents): remove workflow restriction flag, explain ignored mentions, warn on owner-only agent mentions (#3141) Let Solo chats reference anyone from the directory (#1585) chore(goose): bump bundled goose-acp to v1.59.2 (#3636) fix: match verified names throughout author search (#3506) ... # Conflicts: # src/features/messages/ForwardMessage.tsx
Brings #2632's current head, including its main merge, under #2479. No conflicts; Pi A's routing is unchanged. * commit 'bb26ce88a': (81 commits) Default the gateway launcher client to buzz fix(tests): prevent onboarding tests from crashing on macOS (#2883) fix(threads): don't count your own nested reply as a new message (#2767) fix(notifications): let only confirmed mutes cancel message alerts (#2766) fix(channels): leave Option+Up/Down to text fields outside the composer (#2765) fix(settings): show full section names in the Settings sidebar (#2759) fix(messages): drop stable row activity for rows that left the timeline (#2738) feat(agents): remove workflow restriction flag, explain ignored mentions, warn on owner-only agent mentions (#3141) Let Solo chats reference anyone from the directory (#1585) chore(goose): bump bundled goose-acp to v1.59.2 (#3636) fix: match verified names throughout author search (#3506) fix(profiles): report open-view room from profile limit (#3625) Keep a fullscreen Buzz Browser page visible (#3234) fix(federated-identity): tolerate a clock up to 120 s off (#3508) perf: stop repeating name lookup and members dialog work per render (#3570) perf(threads): overlap the reads that open a thread (#3582) perf: keep the sidebar from rendering on thread open and close (#3599) fix(messages): hide Quote while interactive overlays are open (#3591) fix(dialog): use one 12px heading-to-body gap (#3537) fix(builderlab): forward signInLink to community sign-in sessions (#3627) ... Co-authored-by: coder3 <248973805a0e284e54ffdfa66d1b2cc85befba57e7d640e984b61229ed6e5dc2@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Philip Azar <pazar@squareup.com>
Why
In the Canvas editor (Channel actions > View canvas > Edit), Option+Up/Down opened the previous or next channel instead of moving the caret. Option+Shift+Up/Down jumped to an unread channel instead of extending the selection.
The four stepping shortcuts run from any text field, so they work while you type a message. The dispatcher then cancels the field's own caret move. Mark conversation as read already avoids this with
inFieldOutsideComposer(), but stepping never got that check.What
The stepping shortcuts now leave the key to text fields outside the message composer.
How
wheninsrc/bundled/channels/index.tsxnow also requires!inFieldOutsideComposer(). Terminals keep their own check.data-composer-surface, so stepping from a composer is unchanged.docs/channels.mdnow names these text fields where it lists when stepping leaves the key alone.Risk
Only the four stepping shortcuts change, and only in text fields outside the composer. Dialog fields, such as Settings, were never affected.
mainat8dca3d8be, and the channels, shortcuts andEditableInputtests pass.index.tsx,index.test.tsxanddocs/channels.mdin other places. They merge cleanly with this branch.Testing
Screenshots
Debug build of this PR: in the Canvas editor, Option+Shift+Up selects the line "bravo" instead of switching channels.
In-app check
Verified in the macOS app by Cheng.
Build: this PR at
2e4535ecb, merged locally with my other open PRs ontomainatc037057a1, run as a debug app bundle withBUZZ_DEV_VIEWER= just desktop-bundle.Open a channel in the middle of the sidebar, with unread channels below it.
main.main.On
main, step 2 opens the previous channel. If steps 4 and 5 move the caret instead, the desktop sent the arrow as a control character.maindoes the same.buzz-review-completed