You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(shell-docs): drop lucideIconsPlugin, which can't resolve our icon names - #8410
Fixes#8409. liveSource and referenceSource used Fumadocs' stock lucideIconsPlugin(). That plugin looks each icon up by its bare Lucide name, but every icon in src/content has a prefix (lucide/Play, custom/a2a). So it warned Unknown icon detected for each one and set the icon to undefined. That's 240 lines in next build and 480 more from next start while the pages are served.
Nothing reads those tree icons. strip() in live-nav.ts drops them from the sidebar, the cookbook draws its logos from folderSource() (which never had the plugin) through RECIPE_ICONS, and breadcrumbs() in llms/live-search.ts ignores them. So this PR removes the plugin from both loaders, with a comment on why. It's one file, and lucide-react stays because other components use it.
A resolver that understands the prefixes would also silence the warnings. I left that out because nothing would render those icons today.
Verified on main7b88608, before and after, in the same worktree (Node 24.14.1, fumadocs-core 16.17.8, next 16.4.2). I ran the steps from test_unit-shell-docs.yml:
before
after
next build 2>&1 | grep -c "Unknown icon detected"
240
0
same in next start log while serving every page
480
0
other build warnings (CSS optimizer, >1000 routes)
I also fetched all 464 page URLs from check-live-pages (plus /, /llms.txt, /llms-full.txt, /cookbook) from both builds and compared them. The server-rendered HTML is identical on every page once chunk filenames and the build ID are masked, including the cookbook logos. The RSC payload is the same length on every page and differs only in row order and reference IDs.
Not verified: I didn't screenshot the pages, since the rendered HTML is identical.
The commit-msg commitlint hook couldn't run in my worktree because it has no root node_modules. I ran commitlint by hand on the message with the same commitlint.config.js (it passed), then committed with only that hook skipped. All pre-commit hooks ran and passed.
If the PR changes or adds functionality, I have updated the relevant documentation (no functional change)
If the PR contains a breaking change, the title has ! (for example feat(react-core)!: ...) and the description has a BREAKING CHANGE: line with migration steps. See VERSIONING.md (not breaking)
"Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone)
Summary by CodeRabbit
Refactor
The live sidebar no longer uses the icon plugin. Navigation titles continue to be supported. This may change which icons are available in the live sidebar.
… names
Every icon in src/content is a prefixed name (lucide/Play, custom/a2a), so
the stock plugin warned "Unknown icon detected" about 240 times per build and
again on next start, then dropped the icon. Nothing reads these tree icons:
the sidebar strips them and the cookbook maps its own through folderSource.
ClosesCopilotKit#8409
No actionable comments were generated in the recent review.
Walkthrough
The live and reference content sources no longer register lucideIconsPlugin. liveSource retains navTitlePlugin, and comments describe icon naming and sidebar handling.
liveSource and referenceSource no longer register lucideIconsPlugin. liveSource retains navTitlePlugin. Comments describe icon naming and sidebar handling.
This removes the icon plugin that produced build and start warnings. Rendered output is reported unchanged, and the change is easy to revert. Merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the change: removing lucideIconsPlugin from shell-docs, which the author says cannot resolve the prefixed icon names. The raw summary confirms liveSource and referenceSource no longer …
Linked Issues check
Issue #8409 asks for a clean shell-docs build log, with no "Unknown icon detected" warnings from lucideIconsPlugin, and no change in output. The diff for showcase/shell-docs/src/lib/live-source.ts rem…
Out of Scope Changes check
The whole-PR diff against merge base 7b88608 touches only showcase/shell-docs/src/lib/live-source.ts (+4/-3). Every change is the plugin removal or the explanatory comment that describes it. No unr…
Full details: Title check
Explanation
The title names the change: removing lucideIconsPlugin from shell-docs, which the author says cannot resolve the prefixed icon names. The raw summary confirms liveSource and referenceSource no longer register the plugin, so the title matches the changeset. It uses the conventional fix(scope) prefix and fits within 75 characters.
Full details: Linked Issues check
Explanation
Issue #8409 asks for a clean shell-docs build log, with no "Unknown icon detected" warnings from lucideIconsPlugin, and no change in output. The diff for showcase/shell-docs/src/lib/live-source.ts removes the lucideIconsPlugin import and its use from both liveSource and referenceSource. navTitlePlugin stays on liveSource. This removes the source of the warnings, which the issue names as the expected fix. The PR description reports, without rerun here, that the warning count drops from 240 to 0 at build and from 480 to 0 under next start, and that server-rendered HTML is unchanged on the fetched pages. The issue's claim that no reader uses these tree icons (strip() in live-nav.ts, folderSource() for cookbook logos, breadcrumbs() in live-search.ts) is consistent with the issue text. I did not re-inspect those readers. The issue's optional prefix-aware plugin is not required.
Full details: Out of Scope Changes check
Explanation
The whole-PR diff against merge base 7b88608 touches only showcase/shell-docs/src/lib/live-source.ts (+4/-3). Every change is the plugin removal or the explanatory comment that describes it. No unrelated code, dependencies, or tests are changed. lucide-react is not removed, as the PR description states.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Reviewing files that changed from the base of the PR and between 7b88608 and 78eef43.
Files selected for processing: 1
showcase/shell-docs/src/lib/live-source.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #8409.
liveSourceandreferenceSourceused Fumadocs' stocklucideIconsPlugin(). That plugin looks each icon up by its bare Lucide name, but every icon insrc/contenthas a prefix (lucide/Play,custom/a2a). So it warnedUnknown icon detectedfor each one and set the icon toundefined. That's 240 lines innext buildand 480 more fromnext startwhile the pages are served.Nothing reads those tree icons.
strip()inlive-nav.tsdrops them from the sidebar, the cookbook draws its logos fromfolderSource()(which never had the plugin) throughRECIPE_ICONS, andbreadcrumbs()inllms/live-search.tsignores them. So this PR removes the plugin from both loaders, with a comment on why. It's one file, andlucide-reactstays because other components use it.A resolver that understands the prefixes would also silence the warnings. I left that out because nothing would render those icons today.
Verified on
main7b88608, before and after, in the same worktree (Node 24.14.1, fumadocs-core 16.17.8, next 16.4.2). I ran the steps fromtest_unit-shell-docs.yml:next build 2>&1 | grep -c "Unknown icon detected"next startlog while serving every pagetypecheck,lint,check-live-mdxcheck-redirects/check-live-pages/check-page-inventoryI also fetched all 464 page URLs from
check-live-pages(plus/,/llms.txt,/llms-full.txt,/cookbook) from both builds and compared them. The server-rendered HTML is identical on every page once chunk filenames and the build ID are masked, including the cookbook logos. The RSC payload is the same length on every page and differs only in row order and reference IDs.Not verified: I didn't screenshot the pages, since the rendered HTML is identical.
The commit-msg
commitlinthook couldn't run in my worktree because it has no rootnode_modules. I ran commitlint by hand on the message with the samecommitlint.config.js(it passed), then committed with only that hook skipped. All pre-commit hooks ran and passed.Related PRs and Issues
Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.md (not breaking)Summary by CodeRabbit