Repository navigation
chore(showcase/starters): regenerate to pick up #4101 fixes for langgraph + entrypoint - #4102
Merged
Merged
Conversation
…ntrypoint fixes PR #4101 updated both the resolution-aware import rewriter and the entrypoint `$!` -> agent PID fix, but the regeneration in the merged commit didn't include all affected files. `origin/main` at 2087950 still contained: - langgraph-fastapi + langgraph-python: `src/agents/tools/*.py` importing `from src.agents.types`, `from src.agents.get_weather`, etc. — the old flat-rewrite output, which crashes with `ModuleNotFoundError: No module named 'src.agents.types'` at agent import time. langgraph-fastapi on Railway was failing its health probe with `agent: down` for this reason. - All 15 generated entrypoint.sh files still had the old `2>&1 | sed 's/^/[agent] /' &` pattern, meaning `$!` pointed at `sed` instead of the agent subprocess. Every `kill -0 $AGENT_PID` / `wait -n` check was monitoring the wrong process, and Python crash output was also line-buffered inside the pipe so tracebacks never hit the container log. Re-running `pnpm -C showcase/scripts generate-starters` with #4101's resolution-aware rewriter produces the correct `src.agents.tools.*` imports for both langgraph starters and the intended `&> >(awk '{print "[agent] " $0; fflush()}')` process-substitution form for every entrypoint.sh. No generator changes — purely regenerated output catching up to the script that's already on main.
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
April 19, 2026 20:00
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
ataibarkai
added a commit
that referenced
this pull request
Apr 19, 2026
…n merge Re-ran generate-registry + validate-pins after merging main (which brought in PR #4098 langroid + #4100/#4101/#4102 starter regens) and the non-root + PID-capture column sweep. FAIL count unchanged at 110; hash drifts because the FAIL set is the same strands entries but ordering normalized. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
… for langgraph + entrypoint (CopilotKit#4102) ## Summary PR CopilotKit#4101 updated the resolution-aware import rewriter and the entrypoint `$!` -> agent PID fix, but the regeneration in that merge didn't include all affected files. After merge, `origin/main` at `2087950ee` still had stale output — and `showcase-starter-langgraph-fastapi-production` has been returning `503 {"agent":"down"}` on `/api/health` as a result. Root cause: - `showcase/starters/langgraph-fastapi/src/agents/tools/*.py` still imported `from src.agents.types` / `src.agents.get_weather` / etc. (old flat-rewrite output). `src/agents/src/agent.py` imports `src.agents.tools`, which loads `tools/__init__.py`, which fails with `ModuleNotFoundError: No module named 'src.agents.types'`. The agent subprocess crashes during langgraph_cli's graph import step; `/api/health` flips to 503. - langgraph-python has the same broken imports in its tools/ barrel. - All 15 generated `entrypoint.sh` files still used `2>&1 | sed 's/^/[agent] /' &`, so `$!` (used for `kill -0 $AGENT_PID` and `wait -n`) tracked `sed`, not the agent. Stack traces also got line-buffered inside the pipe and never reached the container log. Fix: rerun `pnpm -C showcase/scripts generate-starters` (the script already on main from CopilotKit#4101). Pure regeneration — no source changes. Verified locally: - `tools/__init__.py` now emits `from src.agents.tools.types import ...` (resolution-aware rewrite finds `<agentDest>/tools/types.py` one parent away). - `entrypoint.sh` now emits `&> >(awk '{print "[agent] " $0; fflush()}')`. Once merged, the Railway drift rebuild will pick up the new image for langgraph-fastapi and `/api/health` should return green within one redeploy cycle. ## Test plan - [ ] CI green - [ ] After merge + drift rebuild, `curl https://showcase-starter-langgraph-fastapi-production-c7d2.up.railway.app/api/health` returns `200 {"agent":"up"}` - [ ] langgraph-python health stays green (same tools/ fix applied, same container architecture)
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
PR #4101 updated the resolution-aware import rewriter and the entrypoint
$!-> agent PID fix, but the regeneration in that merge didn't include all affected files. After merge,origin/mainat2087950eestill had stale output — andshowcase-starter-langgraph-fastapi-productionhas been returning503 {"agent":"down"}on/api/healthas a result.Root cause:
showcase/starters/langgraph-fastapi/src/agents/tools/*.pystill importedfrom src.agents.types/src.agents.get_weather/ etc. (old flat-rewrite output).src/agents/src/agent.pyimportssrc.agents.tools, which loadstools/__init__.py, which fails withModuleNotFoundError: No module named 'src.agents.types'. The agent subprocess crashes during langgraph_cli's graph import step;/api/healthflips to 503.entrypoint.shfiles still used2>&1 | sed 's/^/[agent] /' &, so$!(used forkill -0 $AGENT_PIDandwait -n) trackedsed, not the agent. Stack traces also got line-buffered inside the pipe and never reached the container log.Fix: rerun
pnpm -C showcase/scripts generate-starters(the script already on main from #4101). Pure regeneration — no source changes.Verified locally:
tools/__init__.pynow emitsfrom src.agents.tools.types import ...(resolution-aware rewrite finds<agentDest>/tools/types.pyone parent away).entrypoint.shnow emits&> >(awk '{print "[agent] " $0; fflush()}').Once merged, the Railway drift rebuild will pick up the new image for langgraph-fastapi and
/api/healthshould return green within one redeploy cycle.Test plan
curl https://showcase-starter-langgraph-fastapi-production-c7d2.up.railway.app/api/healthreturns200 {"agent":"up"}