Skip to content

Auto-re-login on session expiry#12

Merged
cahaseler merged 1 commit intomainfrom
craig/session-invalid
Feb 12, 2026
Merged

Auto-re-login on session expiry#12
cahaseler merged 1 commit intomainfrom
craig/session-invalid

Conversation

@cahaseler
Copy link
Contributor

Summary

  • When the client gets session_invalid, it now auto-re-logins with stored credentials before retrying the original command
  • Previously: created new session but didn't re-authenticate → retry failed with not_authenticated
  • Now: creates new session → logs in with stored credentials → retries original command seamlessly

Test plan

  • bun test passes (7/7)
  • Test session expiry recovery with live server

🤖 Generated with Claude Code

Previously the client created a new session on session_invalid but didn't
re-authenticate, causing the retry to fail with not_authenticated. Now it
automatically calls login with stored credentials before retrying the
original command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cahaseler cahaseler merged commit e9d6591 into main Feb 12, 2026
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