Repository navigation
Labels
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportuiApp shell, sidebar, composer, rendering
Description
Problem
In the desktop app, pressing Cmd-A while focus is outside an editable field selects text throughout the interface, including sidebar items, buttons, dialog labels, and other app chrome. Clicking and dragging can likewise create selections across the sidebar, the area below the composer, and other non-content surfaces.
This makes the interface behave like a document rather than a desktop application and can obscure which text is actually intended to be copied.
Reproduction
- Open the desktop app.
- Click the sidebar, an empty area of the app shell, or the area below the composer.
- Press Cmd-A.
- Observe interface labels and controls becoming selected.
- Alternatively, drag across the sidebar or another non-content surface and observe the same selection behavior.
Expected behavior
- App chrome, controls, navigation labels, and empty layout surfaces do not participate in native text selection.
- Inputs, textareas, and contenteditable editors retain their normal native selection behavior.
- User-authored and diagnostic content remains selectable, including messages, Markdown, file previews, diffs, terminal and tool output, logs, plugin panels, and displayed commands.
- Cmd-A after pointer or keyboard interaction with a declared reading surface selects that surface rather than unrelated panes.
- Commands intended for copying, such as the
install.shcommand in the Add Machine dialog, remain selectable. - Portaled reading surfaces can declare the same Select All boundary without making generic portal infrastructure selectable.
Acceptance criteria
- Cmd-A from the app shell does not select sidebar or interface text.
- Dragging across app chrome does not create a text selection.
- Cmd-A in an input or editor selects that control's content normally.
- Drag-selectable text and Cmd-A scopes are separate opt-ins:
.select-textdoes not implicitly create a keyboard scope. - Cmd-A in a declared content scope selects the nearest active scope, excludes unrelated panes and nested controls, and does not cross an inline editor draft.
- Each supported open-shadow reading surface maps Select All to one browser-representable selection root; interaction with light-DOM padding around a shadow-only viewer still selects its visible shadow content.
- Select All routing is centralized. Editable targets retain native handling, non-editing controls retain their nearest declared reading scope, and active-scope tracking does not mutate DOM attributes or styles.
- The desktop Edit menu routes Select All through the same renderer policy for application windows while retaining native Select All in browser and DevTools web contents.
Related pull request: #1428
Written by Codex
AGENT GENERATED: by GPT-5 Codex
Metadata
Metadata
Assignees
Labels
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportuiApp shell, sidebar, composer, rendering
Activity
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1440.html
The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at
16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).ariofrio commentedon Aug 19, 2026
Implemented the failures documented in the reproduction/root-cause report and rebased #1428 onto current
upstream/main.Repository-native regression coverage now verifies:
Mutation checks confirmed the focused hook tests fail when pointer activation or keyboard-focus activation is disabled, then pass with production behavior restored.
Manual Electron dev-app QA confirmed the browser-engine behavior that jsdom cannot model faithfully: app chrome and empty layout surfaces do not create selections; gutter-start and multi-message drags work; Select All stays within the interacted conversation; the real composer retains native Select All; and the Add Machine
install.shcommand remains selectable.The implementation does not register a global JavaScript Cmd-A handler. Pointer/focus listeners activate one region, and the keyboard listener exists only on that active region element until it deactivates.
Validation on head
84a9efde1: 368 test files / 2,909 tests passed (3 skipped), typecheck passed, lint passed with 0 errors, and the production build passed. The focused tracking suite has 6 passing tests.Written by Codex
Keep app chrome out of text selection (get-bb#2171)