Suggest checking account preferences when repo access fails#8413
Suggest checking account preferences when repo access fails#8413Copilot wants to merge 5 commits into
Conversation
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
phillipschandler19-web
left a comment
There was a problem hiding this comment.
.agents/skills/cli-logging-ux/SKILL.mdCLAUDE.md
Workspace root CLAUDE.md in the root of your workspace
.claude folder .claude/CLAUDE.md in your workspace
User home ~/.claude/CLAUDE.md for personal instructions across all projects
Local variant CLAUDE.local.md for local-only instructions (not committed to version control) rather than personal preferences.
Run /init to generate a starting CLAUDE.md automatically. Claude analyzes your codebase and creates a file with build commands, test instructions, and project conventions it discovers. If a CLAUDE.md already exists, /init suggests improvements rather than overwriting it. Refine from there with instructions Claude wouldn’t discover on its own.
Set CLAUDE_CODE_NEW_INIT=1 to enable an interactive multi-phase flow. /init asks which artifacts to set up: CLAUDE.md files, skills, and hooks. It then explores your codebase with a subagent, fills in gaps via follow-up questions, and presents a reviewable proposal before writing any files.copilot/detect-multiple-git-accounts
phillipschandler19-web
left a comment
There was a problem hiding this comment.
copilot/detect-multiple-git-accounts.agents/skills/cli-logging-ux/SKILL.md rather than personal preferences.
Run /init to generate a starting CLAUDE.md automatically. Claude analyzes your codebase and creates a file with build commands, test instructions, and project conventions it discovers. If a CLAUDE.md already exists, /init suggests improvements rather than overwriting it. Refine from there with instructions Claude wouldn’t discover on its own.
Set CLAUDE_CODE_NEW_INIT=1 to enable an interactive multi-phase flow. /init asks which artifacts to set up: CLAUDE.md files, skills, and hooks. It then explores your codebase with a subagent, fills in gaps via follow-up questions, and presents a reviewable proposal before writing any files.CLAUDE.local.md
SECURITY.md
Users with multiple GitHub accounts (personal/work) often encounter cryptic 404 errors when the extension uses the wrong account for a repository. The "Manage Account Preferences" feature exists but is difficult to discover.
This PR surfaces account preferences when access errors indicate the user may be authenticated with the wrong account.
Changes
src/github/credentials.tsshowWrongAccountModal()- displays modal explaining the user may have multiple accounts, with button to open VS Code's account preferences commandisAuthenticatedForAccountPreferences()- gating check before showing the modalsrc/github/folderRepositoryManager.tsgetPullRequestsForCategory()now trigger the wrong account modal instead of generic warningsrc/view/treeNodes/categoryNode.tsExample Flow
When fetching PRs fails with 404:
Clicking the button invokes
_account.manageAccountPreferencesfor this extension.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.