* Handle Claude sign-in failures without timed retries
* Judge a Claude login by the credential it has now
A refusal is kept for the credential it was made on (savedLogin.Refused)
and holds only while the account still has that credential. One check,
claudeSignedOut, decides whether a saved Claude login can be used, after
syncClaudeDir has read what Claude Code keeps in the account's directory:
a credential it refreshed to there is taken, and one it emptied (as
Claude Code 2.1.x does after Anthropic answers invalid_grant) is refused.
Token is the only gate: a saved account's directory, or the credential
Claude Code itself holds for its own account. Lapsed accounts stay
candidates, so the trace shows each one passed over and the agent is told
to sign in again when none is left.
This fixes four paths of the first version: a moment the own sign-in
could not be read left it lapsed after it came back unchanged; a
credential refreshed in the account's directory after a refusal was
ignored; a switch could restore a copy Claude Code had emptied; and with
every account refused the agent got "none of ... is ready" (404).
* Limit sign-in lapses to Claude accounts
Address the review of #716:
- A refused sign-in is failAuth only for a Claude account (failureOf);
another vendor with the same words rests as before.
- The account list's sign-in-required row is Claude's only, and the
account Claude Code is signed in to offers no Remove.
- Add the missing zh string for "its sign-in is gone; sign in again".
- readOutput checks the error before reading Claude Code's sign-in, and
the owner is parsed in one place (ownerAccount).
TestSignInWordsFromAnotherVendorRest and the new browser case in
claude-auth-status.test.cjs fail on the previous commit and pass.