Repository navigation
docs(shell-docs): drop the orphaned langgraph endpoint snippet - #7122
Conversation
`snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdx` reaches no reader. It is referenced by neither of the two mechanisms shell-docs uses: no MDX file imports `@/snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdx`, and it appears in neither `mdx-registry.tsx` nor `docs-render.tsx`. Its importer was the retired docs app, deleted in 33a7948. It is also stale. Four of its five tabs still show `LangGraphAgent` imported from the `@copilotkit/runtime` root, whose constructor throws on any version >= 1.7x; #6617 converted only the App Router tab. The live LangGraph quickstart already documents the correct `@copilotkit/runtime/langgraph` import, so nothing is lost by removing the file rather than patching content that ships to nobody. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe pull request deletes the self-hosting Copilot Runtime LangGraph endpoint MDX snippet. The snippet covered setup for Next.js, Node.js, Express, HTTP, and NestJS. ChangesDocumentation removal
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to The obsolete snippet is removed without leaving a documented access path pointing to it, so no current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Production Digest-Pinning AuditAll 42 services digest-pinned. Run 2026-09-14 09:44:01 PDT — 0 finding(s). |
Follow-up to #7120, which fixed the same defect in the two canvas examples.
What this deletes
showcase/shell-docs/src/content/snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdx.It is dead content, and it is stale content.
Dead. shell-docs reaches a snippet by exactly two routes, and the file is on neither:
@/snippets/<path>— resolved byinlineSnippets. No file in the repo imports this one.mdx-registry.tsx/docs-render.tsx— read back bymdx-registry-loader.tsxthrough a mapped relative path. This file has no entry; its two live siblings,self-hosting-copilot-runtime-create-endpoint.mdxandself-hosting-copilot-runtime-configure-copilotkit-provider.mdx, do.Nothing enumerates the snippets directory — no glob, no
readdirSyncover it — so an unreferenced file there is reachable by no code path. A raw repo-wide grep for the basename also returns nothing.Its importer was the retired docs app, removed in 33a7948 (2026-06-18). The snippet was left behind.
Stale. Four of its five tabs (Pages Router, Express, Node HTTP, NestJS) still import
LangGraphAgentfrom the@copilotkit/runtimeroot, which is a deprecation stub whose constructor throws on any version >= 1.7x:#6617 converted only the App Router tab. So the file is simultaneously invisible to readers and wrong.
Why delete rather than patch
The live LangGraph quickstart already documents the endpoint with the correct import (
showcase/shell-docs/src/content/docs/integrations/langgraph/quickstart.mdx:371). Patching four tabs of a file that ships to nobody adds a maintenance surface without adding a reader.Testing
Deletion only — no code changes. Verified by four independent lenses, each of which came back empty for this file:
@/snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdxmdx-registry.tsx/docs-render.tsxstub mapssrc/content/snippetsgrep -Ffor the basenameI did not build shell-docs locally; the branch's shell-docs CI jobs are the check that matters for a content deletion, and a reference that all four lenses missed would surface there.
Note, not addressed here
While scoping this I ran two different orphan sweeps over all 98 snippets and they disagreed sharply (19 vs 42 candidates) — path-matching over-reports because it misses registry entries, basename-matching under-reports because distinct files share a basename. A real answer needs a resolver that follows both mechanisms. That is worth doing, and it is not this PR.
🤖 Generated with Claude Code
Summary by CodeRabbit