feat: multiple subscription support - #917
Open
rayliverified wants to merge 3 commits into
Open
Conversation
…T Plus, or Copilot accounts - Settings: simple '+ Add Connection' button (no provider picker dropdown) - Connection rows show OAuth identity (email · org) with expiration status inline - Per-connection OAuth token storage with legacy credential fallback migration - Per-connection refresh mutex (was single global mutex) - OAuth status in LIST_WITH_STATUS handler (expiresAt, timeRemaining, refreshError) - Rate-limit failover: auto-switch to another compatible OAuth connection on 429 - Unique slug generation for duplicate connection names (e.g. claude-max-2) - Connection identity labels in model picker (email · org subtitle) - 4 new i18n keys (addAnotherSubscription, oauthExpired, oauthExpiresIn, oauthRefreshFailed) - Dev launch script (electron-dev-local.sh) Co-Authored-By: Craft Agent <agents-noreply@craft.do>
- Add parseChatGptIdToken() to decode JWT id_token claims (email, org) - Stamp identity onto connection in chatgpt:completeOAuth handler - Fetch GitHub user info after Copilot device code flow for identity - Lazy migration in LIST_WITH_STATUS: backfill identity for existing ChatGPT connections that have stored idToken but no oauthAccountEmail Co-Authored-By: Craft Agent <agents-noreply@craft.do>
Co-Authored-By: Craft Agent <agents-noreply@craft.do>
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.
Add support for using multiple Claude Code or Codex subscriptions. This helps users avoid having to log out and log in to different accounts. Currently, Craft Agents has built in support for multiple providers, using different slugs. This PR builds on top of that and adds:
Summary
Add support for multiple Claude Max, ChatGPT Plus, or Copilot accounts.
Co-Authored-By: Craft Agent agents-noreply@craft.do