You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): hint re-login when subscription token refresh is rejected
When the anthropic-oauth token endpoint rejects the refresh grant with HTTP 4xx (revoked login, lapsed plan), append recovery guidance to the stored refresh error so provider refresh status tells the operator to re-authenticate on the host and recreate the provider. Transient network errors and 5xx responses are excluded.
Signed-off-by: Cedric Fitzgerald <soulcedric2@gmail.com>
constANTHROPIC_RELOGIN_HINT:&str = "; the subscription login is no longer valid — run `claude login` on the host, then delete and recreate the provider with `openshell provider create --from-claude-login`";
500
+
501
+
/// True when an `anthropic-oauth` refresh failed because the token endpoint
502
+
/// rejected the grant (revoked login, lapsed plan) rather than a transient
503
+
/// network or gateway error, so re-authenticating on the host is the fix.
0 commit comments