Skip to content

fix(runtime-accounts): guided Claude login via claude auth login (v0.462.1) - #874

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/login-auth-cmd
Oct 13, 2026
Merged

vikasprogrammer merged 1 commit into
mainfrom
feat/login-auth-cmd

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

Settings → Runtime accounts → add account hung forever on "the authorization link appears here in a moment…" (instapods).

Cause: the target dir was left over from a removed account. On macOS the login is in the Keychain, so there's no .credentials.json and the orphan guard let the dir be reused. It was already onboarded, so bare claude skipped theme/login-method and parked on the folder-trust dialog — no URL ever printed.

Fix

  • Run claude auth login --claudeai (new loginArgs on the runtime spec): prints the URL + paste prompt immediately regardless of dir state.
  • Wrapped in a sh retry loop (clears pane history, re-prints "Press Enter to retry") since auth login exits on a bad code — preserves the fresh-link recovery.
  • Orphan guard triggers on any non-empty dir, so a leftover is archived aside, never reused (and cancel can no longer delete its run history).
  • Re-arm waits for the retry prompt; a rejected URL is never re-offered; rejections only counted after a submitted code; newest URL wins.

Verified: runtime-login-test 60/60, test:governance green, and an end-to-end run against real tmux + claude 2.1.296 (URL → bogus code → rejected → fresh URL with new state).

🤖 Generated with Claude Code

… no more hang on the trust dialog (v0.462.1)

A leftover credential dir (macOS: login in the Keychain, so no .credentials.json)
passed the orphan guard and was reused already-onboarded; bare `claude` then
skipped to the folder-trust dialog and never printed an authorize URL. Run the
dedicated login command in a retry loop, archive any non-empty leftover dir,
wait for the retry prompt before re-arming, and never re-offer a rejected URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vikasprogrammer
vikasprogrammer merged commit 6b4ea73 into main Oct 13, 2026
1 check passed
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