Repository navigation
Description
/design-login is the only way to obtain design-system authorization, and it requires an interactive terminal. There is no equivalent for a session without a TTY, so DesignSync cannot be used from CI, a scheduled job, or an agent sandbox.
Repro
- Run Claude Code non-interactively (no TTY) in an environment authenticated to claude.ai.
ToolSearch("select:DesignSync")→ succeeds, the schema loads.DesignSync(list_projects)→
DesignSync needs design-system authorization, but
/design-loginrequires an interactive terminal and is not available in this environment.
Same result on the same machine's interactive terminal: everything works. The authorization itself is fine — it just cannot leave the terminal.
Not a duplicate of #69496 / #75024. Those describe an interactive grant that fails where it should succeed (the scope upgrade 400s, or /design-consent 403s). On my account the interactive grant works and I sync normally from a terminal. If both were fixed tomorrow, this would still be blocked, because the grant would still be terminal-only.
The read methods are blocked too, which I haven't seen reported. list_projects and get_file fail alongside the writes. That closes the obvious workaround: you cannot verify headlessly and upload from an interactive session, because the headless half can't read the project's _ds_sync.json sync anchor. Without the anchor the converter loses its incremental scope and re-captures the entire library, so the split pipeline costs more than the manual one.
Suggested shape. claude setup-token already mints a long-lived OAuth token for exactly this situation. If user:design:* could ride on that token, or be provisioned as an environment secret, the non-interactive path exists with no new mechanism. Failing that, granting the read methods without the interactive step would at least make a split pipeline viable.
What it unblocks. We sync a ~92-component React design system into a Claude Design project. The mechanical half is already automation-ready: one driver command chains build → diff → validate → capture and emits a machine-readable verdict whose schema is documented as a CI contract. It runs unattended end to end. This authorization is the only human gesture left, so the sync stays a ~75-minute manual session someone sits through weekly, rather than a scheduled job that runs ahead of our release.
Environment: Claude Code 2.1.251 — macOS interactive (works), Linux agent sandbox without a TTY (blocked).
Activity
Ben-Home commentedon Sep 1, 2026
This is the classic headless-OAuth gap, and the fact that schema loads but every tool call fails on authorization means the grant is bound to an interactive session context rather than a portable credential. Three patterns that solve this class without a redesign:
Device authorization grant (RFC 8628) for the non-TTY path. The user starts the flow, the CLI prints a code and URL, they approve from any browser, and the headless process polls the token endpoint. This is the same pattern several CLIs use for remote MCP auth, and it keeps DesignSync usable in CI without exposing account credentials.
Bootstrap-then-reuse: run /design-login once interactively, then copy the resulting credential from the local store into the CI environment. If DesignSync persists its token in the same ~/.claude/.credentials.json store as MCP OAuth, the entry is portable, and a documented file or env injection path closes the gap with minimal code.
Scope the read methods to accept a setup-token style grant (the same mechanism as the MCP OAuth setup-token flow), so headless reads work with a pre-issued token even before interactive consent exists.
The read-method blocker you note is the important part: any fix that only enables writes leaves the sync-anchor verification loop broken. A device flow covers both since it grants the same scope set. We use the same bootstrap pattern across the 36 OAuth connectors behind corpusiq.io and it holds up in scheduled jobs.
taltcher commentedon Sep 4, 2026
Is there an update about this?
RKJuve commentedon Sep 22, 2026
I could use this capability as well, we are wanting to run
/design-syncin CI when changes to our design system merge.greglaspina commentedon Sep 24, 2026
Same - would love to see support for running
/design-syncin CI.April-Ingage commentedon Sep 24, 2026
+1, this would be really helpful for my team. We need to keep Claude Design in sync with our component library, and a supported non-interactive auth path (e.g. design scopes on
claude setup-token) would let us run it in CI on every merge instead of relying on someone to remember to re-sync.Record why the design-system sync cannot run in CI (#90)
ahuviy commentedon Oct 14, 2026
+1, same use case, with one more data point: claude.ai/code cloud sessions hit this too. That rules out routines as a workaround.
Setup: A generated design system (React component library) gets regenerated by CI on every merge to our default branch. A script then publishes it into a Claude Design design-system project by running
claude -p --allowedTools DesignSync(list_files → finalize_plan → write_files). Everything except the publish step is unattended.What we tried:
GitHub Actions: blocked. There is no TTY for
/design-login, andclaude setup-tokendoesn't carryuser:design:*.Claude Code cloud session (the environment routines run in): the DesignSync tool loads, but
list_filesfails with:So a routine with a GitHub
pull_request.closedtrigger can't publish either, even though it runs on the same claude.ai account that owns the project.No viable workaround. The only route left is to run
/design-logininteractively on a long-lived machine and cron the headless publish there. That pins a team pipeline to one person's personal credential on one box, which we won't do. So today a person runs the publish by hand after every design-system change.Asks (either unblocks us):
user:design:*scopes onclaude setup-token/CLAUDE_CODE_OAUTH_TOKEN.