feat(eve): recover remote TUI authentication#111
Draft
ruiconti wants to merge 1 commit into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jun 19, 2026
Signed-off-by: Rui Conti <ruiconti@gmail.com>
756de4c to
9591473
Compare
c198905 to
e8afd4e
Compare
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.
Description
Remote eve dev sessions need to recover when a verified Vercel deployment rejects missing, stale, or untrusted local OIDC credentials. This PR adds that recovery path on top of the credential boundary in #109 and the project-selection boundary in #110.
At startup, the TUI attempts a project-scoped token refresh when a refresh token is available, probes the deployment, and exposes
/vc:authonly for recognized Vercel or Eve authentication failures.Core invariant
The selected project is a candidate. The deployment resolved from the target URL is authoritative for:
A selection that does not match the target deployment fails before project, policy, or environment mutation.
What
/vc:authflow with team and project selection./vc:authwhile ordinary setup flows still cancel./vc:*namespace.Review map
remote-connection.tsowns startup probing and replacement of active credentials.remote-auth.tsowns the interactive state machine and mutation ordering.vercel-trusted-sources-policy.tsowns the pure environment-policy decision.vercel-trusted-sources.tsowns the Vercel API boundary.setup-commands.tsand the TUI renderer/status files own the visible flow.Diff shape
The incremental PR is 5,257 changed lines:
The three large product seams above are paired with direct unit tests. This supersedes the closed monolithic #98.
Stack
Verification
Passed on the stack rebased onto current
origin/main:The non-server TUI smoke scripts passed, including auth states, log modes, model setup, slash commands, status line, and transport errors. Server-backed smoke scripts could not start because an unrelated process already owned the harness fixed port 3000.
PR Checklist