Skip to content

chore: vendor the @shadcn/react message-scroller source - #29473

Merged
DanielleMaywood merged 2 commits into
mainfrom
vendor/message-scroller
Sep 22, 2026
Merged

DanielleMaywood merged 2 commits into
mainfrom
vendor/message-scroller

Conversation

@DanielleMaywood

@DanielleMaywood DanielleMaywood commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

The agent chat uses the @shadcn/react MessageScroller, and #29354 has to change it to fix scroll jumps. The package ships only minified code, so a patch to it would be hard to review. Version 0.3.1 has the same defect, so an upgrade does not help.

This PR copies the readable upstream source (@shadcn/[email protected], commit b1c580c63, MIT) into site/src/vendor/ and removes the npm dependency. It does not change behavior. Each file header names the upstream tree, and each local edit must have a LOCAL CHANGE comment.

Note

Generated with Coder Agents

Replaces the @shadcn/[email protected] npm dependency with a vendored copy of
its readable TypeScript source under site/src/vendor/message-scroller,
plus site/src/vendor/use-render, the single internal utility the
scroller imports. The published package ships only a minified dist, so
vendoring keeps the runtime code auditable and reviewable in-tree.

The copy is pristine upstream source from tag @shadcn/[email protected]
(commit b1c580c63, MIT): no behavior changes. Each file header pins the
exact upstream tree for syncing, and local deviations will be marked as
LOCAL CHANGE hunks. Imports switch from @shadcn/react/message-scroller
to #/vendor/message-scroller (8 sites, all under AgentsPage).

Formatting is normalized to the site's Biome configuration (tabs,
semicolons, import order) and oxlint ignores src/vendor/** because
upstream code must not drift from upstream patterns to satisfy in-repo
lint rules. The React Compiler filter does not include the vendor
directory, matching the prebuilt package it replaces.
@DanielleMaywood DanielleMaywood changed the title chore(site): vendor the @shadcn/react message-scroller source chore: vendor the @shadcn/react message-scroller source Sep 17, 2026
@DanielleMaywood
DanielleMaywood marked this pull request as ready for review September 17, 2026 11:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-17T11:35:59.548109Z 259af31 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: 259af312c4

ℹ️ 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 site/.oxlintrc.jsonc Resolved
… license

Review follow-up on the vendoring PR:

- Revert the vendored files to verbatim upstream formatting. Biome and
  oxlint both exclude src/vendor now, so upstream style is preserved
  exactly and a sync is a plain diff against the pinned upstream tree.
  The biome-ignore comment and the optional-chain rewrite from the first
  pass are gone with the exclusion.
- Add the upstream LICENSE (MIT, Copyright (c) 2023 shadcn) beside the
  vendored files. The MIT notice must accompany substantial portions of
  the software; the file headers referenced the license but the notice
  itself was absent.
- Exclude site/src/vendor from scripts/check_emdash.sh: upstream
  comments contain em-dashes and must stay verbatim.
@DanielleMaywood
DanielleMaywood merged commit 06d421f into main Sep 22, 2026
28 checks passed
@DanielleMaywood
DanielleMaywood deleted the vendor/message-scroller branch September 22, 2026 09:20
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants