fix(ai-sandbox-railway): a project token is enough; require railway 3.17 #2190
Draft
codyde(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/2190/head·opened View on GitHub🎯 Changes#
railway 3.17 looks up the environment a project token is scoped to. With RAILWAY_TOKEN set to a project token, the Railway provider no longer needs environmentId or RAILWAY_ENVIRONMENT_ID. I maintain @tanstack/ai-sandbox-railway and work at Railway.
@tanstack/ai-sandbox-railway: raises therailwaydependency from^3.13.0to^3.17.0, so every install gets the lookup. The README and theenvironmentIdJSDoc no longer say it's required with either kind of token: a project token supplies it, and an account or workspace token (RAILWAY_API_TOKEN) still needs it.- Docs:
docs/sandbox/providers.mdandproviders-advanced.mdupdated to match. ts-react-chatexample: the Railway env check no longer asks forRAILWAY_ENVIRONMENT_IDwhenRAILWAY_TOKENis set. The README and.env.exampleare updated.- Lockfile: only
railwaychanges, from 3.13.0 to 3.17.0. 3.17 drops itstsxdependency, which removestsx@4.23.12.
🧪 Test plan#
pnpm run test:prpasses.examples/ts-react-chat: the updatedsandbox-triage.test.tscovers a project token alone, an account token with and withoutRAILWAY_ENVIRONMENT_ID, and no token.pnpm test:e2e tests/sandbox-railway-snapshot-cleanup.spec.ts tests/sandbox-railway-startup-cancellation.spec.tspasses againstrailway3.17.0.
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested code changes locally with
pnpm run test:pr, or these tests do not apply to this pull request. - I fully understand the code in this pull request, including any code generated with AI assistance.
- Docs: I updated
docs/for this change, or this change is not user-facing. - Changeset: I added a changeset (
pnpm changeset), or this PR does not change a published package.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
🤖 Generated with Claude Code
- 1
Important
Draft PR not reviewed#
Draft PRs are not automatically reviewed by default.
- Trigger a manual review
To automatically review draft PRs, update your CodeRabbit configuration:
reviews: auto_review: drafts: true- 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.
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Diff Package Supply Chain
SecurityVulnerability Quality Maintenance License npm/railway@3.13.0 ⏵ 3.17.0 +10
+1
Sign in to join this conversation.
🦋 Changeset detected#
Latest commit: b3aa21bf0edc8790b92abe045e46b0377a58a61e
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR