Skip to content

fix(ui): restore normal content scrollbars and prevent chrome selection - #107349

Merged
steipete merged 1 commit into
mainfrom
codex/dynamic-scrollbars-selection
Jul 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/dynamic-scrollbars-selection

Conversation

@steipete

@steipete steipete commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #107313

What Problem This Solves

Fixes an issue where Control UI users had an undersized scrollbar across the entire app instead of only in compact sidebars. Dragging across navigation, settings tiles, and other app chrome also selected text accidentally, while transcript and input text still need normal selection.

Why This Change Was Made

The default content scrollbar now uses a normal hit target, with compact sizing inherited only inside the regular and settings sidebars. App chrome is non-selectable by default, while editable controls and chat transcripts explicitly retain text selection.

User Impact

Main content and chat get a normal large scroll target. Sidebar actions keep their compact space, accidental chrome selection stops, and chat/input text remains selectable.

Evidence

  • Blacksmith Testbox through Crabbox tbx_01kxfxzy03vfcb199p6cnmr0xf (Actions run): focused browser suite passed, 5/5 tests.
  • Mocked-Gateway full Control UI E2E passed, 1/1: chat drag-selection, settings chrome non-selection, input selection, 6px sidebar scrollbar, and 12px content scrollbar. Screenshots and video captured locally and visually inspected.
  • pnpm check:changed passed its UI/core-test/docs lanes, including formatting, i18n, UI/core-test typechecks, and lint fan-out.
  • Source-blind behavior validation on Testbox tbx_01kxfz7m5vpysg7wemd3tgzwx6 (Actions run) passed all six clauses, including filtering, sidebar navigation, refresh retry, and measured 6px/12px contextual scrollbars.
  • Fresh local autoreview: zero findings; patch correct at 0.91 confidence.

AI-assisted with Codex; implementation and behavior proof reviewed before submission.

@steipete steipete self-assigned this Jul 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e910abafc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/styles/base.css
/* App chrome behaves like native controls: dragging across labels, tiles,
and navigation must not create accidental text selections. Text-entry
surfaces and document-like content opt back in below or in route CSS. */
user-select: none;

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.

P2 Badge Re-enable selection for document panes

When users view document-like panes outside chat, such as Usage session logs (ui/src/styles/usage.css:1773), Skill Workshop proposal markdown (ui/src/styles/skill-workshop.css:506), or Sessions transcript-search snippets (ui/src/styles/sessions.css:197), those surfaces do not opt back into user-select: text. Because user-select: none on body makes descendants effectively non-selectable unless overridden, this change prevents copying those history/proposal/result texts even though only app chrome was meant to be non-selectable.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the codex/dynamic-scrollbars-selection branch from 8e910ab to 45c33bf Compare July 14, 2026 09:51
@steipete
steipete force-pushed the codex/dynamic-scrollbars-selection branch from 45c33bf to 3b02777 Compare July 14, 2026 09:55

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3b02777a82

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/styles/base.css
/* App chrome behaves like native controls: dragging across labels, tiles,
and navigation must not create accidental text selections. Text-entry
surfaces and document-like content opt back in below or in route CSS. */
user-select: none;

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.

P2 Badge Restore selection on document content

When users try to copy document-like content outside chat, this global body { user-select: none; } still applies because the current patch only opts form controls and .chat-thread back into text selection. Fresh evidence from the current tree: ui/src/styles/usage.css:1773 session log bodies, ui/src/styles/sessions.css:197 transcript-search snippets, and ui/src/styles/skill-workshop.css:506 proposal markdown have no user-select: text, so those logs/results/proposals become non-selectable even though they are content users reasonably copy.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit e052d12 into main Jul 14, 2026
80 checks passed
@steipete
steipete deleted the codex/dynamic-scrollbars-selection branch July 14, 2026 10:06
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Make Control UI scrollbars contextual and app chrome non-selectable

1 participant