Skip to content

GitHub Copilot app silently overrides selected Enterprise Managed User account for personal repositories, causing incorrect “credits exhausted” errors #3517

Description

@si-jin-chen

Bug report
Environment

GitHub Copilot app 1.1.14 — latest available version
macOS, Apple Silicon
Multiple GitHub accounts:
chenamy_microsoft: Enterprise Managed User with Copilot Enterprise credits
si-jin-chen: personal account that owns the repository but has no remaining Copilot credits
Problem

The project is a personal repository owned by si-jin-chen. In project settings, I explicitly select chenamy_microsoft under GitHub Account, described as:

Account this project bills to and uses for API calls and agent tools.

The UI appears to retain that selection, showing the shared display name “Amy Chen.” However, the app silently changes the project’s persisted account back to si-jin-chen. Copilot then checks the personal account’s quota and incorrectly tells me that I have exhausted my credits, even though chenamy_microsoft still has available Copilot Enterprise credits.

Because chenamy_microsoft is an Enterprise Managed User, it cannot be added as a collaborator to the personal repository. Requiring one account to provide both Copilot billing and repository access therefore cannot work for this valid multi-account configuration.

Relevant log sequence

After selecting chenamy_microsoft, the app logs:

set_project_github_account
Sessions are restarted to re-resolve the project-linked account.
Shortly afterward: Repaired project GitHub account link ... login=si-jin-chen
Subsequent get_account_quota calls use the reassigned project account.
The persisted project mapping confirms that it has reverted to si-jin-chen.

Git operations in the app also intermittently fail with:

remote: Repository not found
fatal: could not read Username for 'https://github.com': terminal prompts disabled
The same repository works in VS Code because VS Code can use chenamy_microsoft for Copilot entitlement while independently using si-jin-chen for Git authentication.

Steps to reproduce

Sign into the Copilot app with an Enterprise Managed User that has Copilot quota.
Add a second personal GitHub account.
Open a repository owned by the personal account.
In project settings, select the Enterprise Managed User as the account used for billing and agent calls.
Reload or continue using the project.
Observe that the app silently reassigns the project to the repository-owning personal account.
If that personal account has no quota, the app reports that all credits have been used.
Expected behavior

The app should support separate identities for:

Copilot billing/model usage
Repository API access
Git fetch/push authentication
At minimum, it should honor the explicitly selected billing account and never silently replace it. If this configuration is unsupported, the app should show a clear error explaining the restriction.

Account selectors should also display unique usernames such as @chenamy_microsoft and @si-jin-chen, rather than only the duplicate display name “Amy Chen.”

Actual behavior

The app silently reassigns the project account based on repository ownership, checks quota against the wrong account, presents a misleading credits-exhausted message, and leaves the UI appearing as though the intended account is selected.

Impact

This blocks Copilot app usage for repositories owned by a personal account when the user’s Copilot entitlement comes from an Enterprise Managed User. There is no collaborator-based workaround because managed users cannot collaborate with repositories outside their enterprise.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions