Skip to content

fix(shadcn): respect message-scroller default scrollPreviousItemPeek#1396

Merged
thomasyuill-livekit merged 1 commit into
mainfrom
ty/agent-chat-transcript-autoscroll
Jul 23, 2026
Merged

fix(shadcn): respect message-scroller default scrollPreviousItemPeek#1396
thomasyuill-livekit merged 1 commit into
mainfrom
ty/agent-chat-transcript-autoscroll

Conversation

@thomasyuill-livekit

Copy link
Copy Markdown
Contributor

Issue

No linked Linear ticket.

Overview

  • AgentChatTranscript hardcoded scrollPreviousItemPeek to 20px, silently overriding message-scroller's own default of 64px.
  • Removed the override so the primitive's default applies unless a caller explicitly passes a value.

Testing

  • pnpm vitest run tests/agent-chat-transcript.test.tsx — 6/6 passing.
  • Manually verified in Storybook (AgentChatTranscript stories) that scroll-anchor peek spacing looks correct using the upstream default.
  • Vercel preview link for Storybook will appear on this PR once deployed — check it there to see the transcript scroll behavior live.

AgentChatTranscript was overriding scrollPreviousItemPeek to 20px, shadowing
the primitive's own default of 64px. Removing the override lets callers
rely on the upstream default unless they explicitly opt into a custom value.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7baf65c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
components-js-storybook-5kld Ready Ready Preview, Comment Jul 23, 2026 5:40pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
LiveKitRoom only 7.89 KB (0%)
LiveKitRoom with VideoConference 32.52 KB (0%)
All exports 44.13 KB (0%)

@thomasyuill-livekit
thomasyuill-livekit merged commit 7d27e55 into main Jul 23, 2026
5 checks passed
@thomasyuill-livekit
thomasyuill-livekit deleted the ty/agent-chat-transcript-autoscroll branch July 23, 2026 20:36
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.

2 participants