Skip to content

Contain chat scroll so it never chains to the page (deck slide-scroll leak)#1501

Merged
michaelassraf merged 1 commit into
mainfrom
fix/chat-overscroll-contain
Jul 19, 2026
Merged

Contain chat scroll so it never chains to the page (deck slide-scroll leak)#1501
michaelassraf merged 1 commit into
mainfrom
fix/chat-overscroll-contain

Conversation

@michaelassraf

Copy link
Copy Markdown
Contributor

What

Adds overscroll-contain (overscroll-behavior: contain) to every scroll surface inside the chat panel: message list + skeleton, guide/mingo empty-state regions, dialog history, composer textarea, sidebar, ticket list, context/slash popovers, inline tool-call/approval blocks, and the attachment strip.

Why

On the company-hub deck (native body scroll + position: sticky slide panels), scrolling inside the open chat chained to the page at the scroll boundaries and advanced the deck slides. usePreventScroll doesn't fully lock the deck's scroll model, and the demo embed uses shell="none" (no body lock at all). overscroll-behavior: contain stops the wheel/touch scroll from propagating to ancestor scrollers the moment the chat's own scroller hits its boundary — the spec-standard fix, independent of the host page's scroll model.

Proof

overscroll-contain resolves to overscroll-behavior: contain in the served CSS (verified live). 15 files, +20/−16.

Follow-up to #1500 (already merged).

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@michaelassraf, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3e7e4218-6a9c-46be-84ae-6b29e7ea338a

📥 Commits

Reviewing files that changed from the base of the PR and between 68c53d1 and cbd1f08.

📒 Files selected for processing (15)
  • openframe-frontend-core/src/components/chat/approval-request-message.tsx
  • openframe-frontend-core/src/components/chat/chat-context-picker.tsx
  • openframe-frontend-core/src/components/chat/chat-input.tsx
  • openframe-frontend-core/src/components/chat/chat-message-list.tsx
  • openframe-frontend-core/src/components/chat/chat-message-skeleton.tsx
  • openframe-frontend-core/src/components/chat/chat-sidebar-skeleton.tsx
  • openframe-frontend-core/src/components/chat/chat-sidebar.tsx
  • openframe-frontend-core/src/components/chat/chat-ticket-list.tsx
  • openframe-frontend-core/src/components/chat/context-items-list.tsx
  • openframe-frontend-core/src/components/chat/embeddable-chat.tsx
  • openframe-frontend-core/src/components/chat/guide-welcome.tsx
  • openframe-frontend-core/src/components/chat/mingo-chat-history.tsx
  • openframe-frontend-core/src/components/chat/mingo-welcome.tsx
  • openframe-frontend-core/src/components/chat/slash-command-suggestions.tsx
  • openframe-frontend-core/src/components/chat/tool-call-blocks.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/chat-overscroll-contain

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

… so scrolling the chat never chains to the page behind it (e.g. company-hub deck slides) [preview:none]

Adds Tailwind overscroll-contain (= overscroll-behavior: contain) to every scroll surface in the chat panel — message list + skeleton, guide/mingo empty-state regions, dialog history, composer textarea, sidebar, ticket list, context/slash popovers, inline tool-call/approval blocks, attachment strip. Reaching a scroll boundary inside the chat no longer propagates the wheel/touch scroll to the underlying page; the deck (native body scroll + sticky slide panels) previously advanced slides while scrolling the chat.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@michaelassraf
michaelassraf force-pushed the fix/chat-overscroll-contain branch from 6fae324 to cbd1f08 Compare July 19, 2026 12:15
@michaelassraf
michaelassraf merged commit 0efca57 into main Jul 19, 2026
7 checks passed
@michaelassraf
michaelassraf deleted the fix/chat-overscroll-contain branch July 19, 2026 15:49
michaelassraf added a commit that referenced this pull request Jul 19, 2026
…view:none]

#1501 hardcoded overscroll-contain on the ChatMessageList scroller (deck
slide-scroll fix); #1502 already made it the conditional overscrollContain prop
(default true = same behavior, opt-out false for passive demos). Kept the prop
(strict superset of #1501). #1501's other overscroll-contain additions
(SourceChips, guide/mingo welcome scrollers, etc.) auto-merged and are preserved.
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.

1 participant