Skip to content

docs(shell-docs): drop the orphaned langgraph endpoint snippet - #7122

Merged
BenTaylorDev merged 1 commit into
mainfrom
ben1/drop-orphaned-langgraph-endpoint-snippet
Sep 14, 2026
Merged

BenTaylorDev merged 1 commit into
mainfrom
ben1/drop-orphaned-langgraph-endpoint-snippet

Conversation

@BenTaylorDev

@BenTaylorDev BenTaylorDev commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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:

  1. An MDX import, @/snippets/<path> — resolved by inlineSnippets. No file in the repo imports this one.
  2. A stub-name entry in mdx-registry.tsx / docs-render.tsx — read back by mdx-registry-loader.tsx through a mapped relative path. This file has no entry; its two live siblings, self-hosting-copilot-runtime-create-endpoint.mdx and self-hosting-copilot-runtime-configure-copilotkit-provider.mdx, do.

Nothing enumerates the snippets directory — no glob, no readdirSync over 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 LangGraphAgent from the @copilotkit/runtime root, which is a deprecation stub whose constructor throws on any version >= 1.7x:

Error: LangGraphAgent import from @copilotkit/runtime is deprecated. Please import it from @copilotkit/runtime/langgraph instead

#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:

Lens Result
MDX imports of @/snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdx none
mdx-registry.tsx / docs-render.tsx stub maps absent
Directory enumeration of src/content/snippets no such mechanism exists
Repo-wide grep -F for the basename none

I 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

  • Documentation
    • Removed the self-hosting guide for configuring Copilot Runtime LangGraph endpoints.
    • The guide previously covered setup examples for Next.js, Node.js, Express, and NestJS.

`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]>
@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a69c4721-5d53-450a-a059-a45259871e79

📥 Commits

Reviewing files that changed from the base of the PR and between 2ea2b3d and ea7316e.

📒 Files selected for processing (1)
  • showcase/shell-docs/src/content/snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdx
💤 Files with no reviewable changes (1)
  • showcase/shell-docs/src/content/snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdx

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The 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.

Changes

Documentation removal

Layer / File(s) Summary
Remove LangGraph endpoint documentation
showcase/shell-docs/src/content/snippets/self-hosting-copilot-runtime-langgraph-endpoint.mdx
Deletes the five-framework setup guide and its MultiProviderContent, If, and quickStartProviders imports.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to ea731

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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the deletion of the orphaned LangGraph endpoint documentation snippet, which is the main change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ben1/drop-orphaned-langgraph-endpoint-snippet

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.

@BenTaylorDev
BenTaylorDev marked this pull request as ready for review September 14, 2026 16:43
@github-actions

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 42 services digest-pinned.

Run 2026-09-14 09:44:01 PDT — 0 finding(s).

@BenTaylorDev
BenTaylorDev merged commit 43547c2 into main Sep 14, 2026
31 checks passed
@BenTaylorDev
BenTaylorDev deleted the ben1/drop-orphaned-langgraph-endpoint-snippet branch September 14, 2026 17:05
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