Skip to content

fix(railway): bump distilled to drop admin-only platformFeatureFlags - #1479

Merged
BlankParticle merged 1 commit into
mainfrom
fix/railway-cli-token-workspace-auth
Sep 4, 2026
Merged

fix(railway): bump distilled to drop admin-only platformFeatureFlags#1479
BlankParticle merged 1 commit into
mainfrom
fix/railway-cli-token-workspace-auth

Conversation

@BlankParticle

Copy link
Copy Markdown
Member

Railway CLI login-session tokens (railway login, the browserless flow that shows up under Sessions in the dashboard) cannot read the admin-only me.platformFeatureFlags field. Railway returns authorization failures as HTTP 200 with an errors[] array, so denying one field rejects the entire query with a blanket Not Authorized. The generated me query selected that field, so workspace resolution failed for every oauth-method Railway profile:

RailwayForbidden: Not Authorized
  at Railway/Environment.ts  (resolveWorkspace → railway.me)
  at Railway/Project.ts      (read)

The token itself is a full account token — it can read the workspace, list projects, and deploy. Only the one admin field was unreadable.

This bumps the distilled submodule from cb11c5bf1 to the alchemy-pointer branch, whose only change drops platformFeatureFlags from the generated Railway selections. After the bump, a live CLI-login token resolves its workspace again.

Why alchemy-pointer and not distilled main

The fix also lands on distilled main via alchemy-run/distilled#543. This PR deliberately points at the alchemy-pointer branch instead, which is the current base (cb11c5bf1) plus only the Railway fix. Advancing straight to distilled main would also pull in #480 (regenerate every SDK from the spec mirrors), which rewrites the Fly Machines SDK and breaks the fly-bucket / fly-postgres examples' types. Keeping this bump on alchemy-pointer ships the Railway fix now without that fallout.

When distilled #543 merges and the submodule later advances to main, Railway will already be fixed there, leaving only the Fly examples to address.

@alchemy-version-bot

alchemy-version-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Install the packages built from this commit:

Alchemy

alchemy

bun add https://pkg.ing/alchemy/693983a

@alchemy.run/better-auth

bun add https://pkg.ing/@alchemy.run/better-auth/693983a

@alchemy.run/cloudflare-runtime

bun add https://pkg.ing/@alchemy.run/cloudflare-runtime/693983a

@alchemy.run/frontend-frameworks

bun add https://pkg.ing/@alchemy.run/frontend-frameworks/693983a

@alchemy.run/node-utils

bun add https://pkg.ing/@alchemy.run/node-utils/693983a

@alchemy.run/pr-package

bun add https://pkg.ing/@alchemy.run/pr-package/693983a

@alchemy.run/floci

bun add https://pkg.ing/@alchemy.run/floci/693983a

Distilled

@distilled.cloud/core

bun add https://pkg.ing/@distilled.cloud/core/894211f

@distilled.cloud/aws

bun add https://pkg.ing/@distilled.cloud/aws/894211f

@distilled.cloud/axiom

bun add https://pkg.ing/@distilled.cloud/axiom/894211f

@distilled.cloud/cloudflare

bun add https://pkg.ing/@distilled.cloud/cloudflare/894211f

@distilled.cloud/hetzner

bun add https://pkg.ing/@distilled.cloud/hetzner/894211f

@distilled.cloud/neon

bun add https://pkg.ing/@distilled.cloud/neon/894211f

@distilled.cloud/planetscale

bun add https://pkg.ing/@distilled.cloud/planetscale/894211f

Railway CLI login-session tokens (`railway login`) cannot read the admin-only `me.platformFeatureFlags` field; Railway rejects the whole GraphQL query with a blanket `Not Authorized`, which broke workspace resolution for every oauth-method Railway profile. Bumps the distilled submodule to the `alchemy-pointer` branch, which drops the field from the generated selections.
@BlankParticle
BlankParticle force-pushed the fix/railway-cli-token-workspace-auth branch from 0ce8adf to 693983a Compare September 4, 2026 09:41
@BlankParticle
BlankParticle merged commit eadf6d9 into main Sep 4, 2026
7 checks passed
@BlankParticle
BlankParticle deleted the fix/railway-cli-token-workspace-auth branch September 4, 2026 10:18
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