Draft
Conversation
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
…nsistency Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for multiple accounts
Add support for multiple GitHub accounts
Dec 23, 2025
🚀 Netlify DeploymentDeploy URL: https://694a48d39cd2d1b2b243fe48--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a607a37cac130d5849ce9--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a6082b304bb17e1ec2c1b--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a6084bb74ee3333919118--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a6086648826350a20ad77--my-test-site3.netlify.app Branch: |
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.
Implements multiple account management, allowing users to sign in with multiple GitHub accounts and switch between them without logging out.
Changes
Account Management Service
services/accountService.ts: Centralized account operations (add, remove, switch, get active){ accounts: Account[], activeAccountId: string }in localStoragegh_token,gh_user) on first loadUI Components
components/AccountSwitcher.tsx: Dropdown in header showing all accountsfocus:opacity-100Cache Scoping
services/cacheService.ts: Added optionalaccountIdparameter togetCached/setCachevibe_github_cache_{accountId}_{resource}prevents data leakage between accountsaccountIdfor cache operationsApplication Flow
App.tsx: Account state management replaces direct localStorage accessviews/TokenGate.tsx: "Add Account" mode with cancel flowviews/Dashboard.tsx: Renders AccountSwitcher, reloads data on account changeviews/RepoDetail.tsx,views/IssueDetail.tsx: Account-scoped cachingExample
Screenshot
Account switcher appears in header once logged in, displaying avatar/username with dropdown for account operations.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.