Skip to content

DesignSync has no non-interactive authorization path — blocks headless/CI design-system sync #91063

Open

Description

@stivaugoin

/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

  1. Run Claude Code non-interactively (no TTY) in an environment authenticated to claude.ai.
  2. ToolSearch("select:DesignSync") → succeeds, the schema loads.
  3. DesignSync(list_projects) →

DesignSync needs design-system authorization, but /design-login requires 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

  1. Ben-Home commented on Sep 1, 2026

    @Ben-Home

    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:

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

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

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

  2. taltcher commented on Sep 4, 2026

    @taltcher

    Is there an update about this?

  3. RKJuve commented on Sep 22, 2026

    @RKJuve

    I could use this capability as well, we are wanting to run /design-sync in CI when changes to our design system merge.

  4. greglaspina commented on Sep 24, 2026

    @greglaspina

    Same - would love to see support for running /design-sync in CI.

  5. April-Ingage commented on Sep 24, 2026

    @April-Ingage

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

  6. ahuviy commented on Oct 14, 2026

    @ahuviy

    +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, and claude setup-token doesn't carry user:design:*.

    • Claude Code cloud session (the environment routines run in): the DesignSync tool loads, but list_files fails with:

      DesignSync needs design-system authorization, and /design-login cannot run in this non-interactive session. Ask the user to run /design-login once from an interactive Claude Code session on this machine — headless and SDK runs here then reuse that authorization. If this is claude.ai/code, ask them instead to use Claude Design's "Send to Claude Code Web" (which seeds the project into the workspace) or to provide the project files directly.

      So a routine with a GitHub pull_request.closed trigger 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-login interactively 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):

    1. user:design:* scopes on claude setup-token / CLAUDE_CODE_OAUTH_TOKEN.
    2. Cloud sessions and routines inherit the account's design authorization (or can be granted it once from the web UI).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions