microsoft/vscode · error · Error
No active repository found. Open a GitHub repository to cont
Error message
No active repository found. Open a GitHub repository to continue with cloud agent.
What it means
Error "No active repository found. Open a GitHub repository to continue with cloud agent." thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/chatSessions/vscode-node/copilotCloudGitOperationsManager.ts:36
export class CopilotCloudGitOperationsManager {
constructor(
private readonly logService: ILogService,
private readonly gitService: IGitService,
private readonly gitExtensionService: IGitExtensionService
) { }
async repoInfo(): Promise<GitRepoInfo> {
// TODO: support selecting remote
// await this.promptAndUpdatePreferredGitHubRemote(true);
const repoIds = await getRepoId(this.gitService);
if (!repoIds || repoIds.length === 0) {
throw new Error(vscode.l10n.t('Repository information is not available. Open a GitHub repository to continue with cloud agent.'));
}
const repoId = repoIds[0];
const currentRepository = this.gitService.activeRepository.get();
if (!currentRepository) {
throw new Error(vscode.l10n.t('No active repository found. Open a GitHub repository to continue with cloud agent.'));
}
const git = this.gitExtensionService.getExtensionApi();
const repo = git?.getRepository(currentRepository?.rootUri);
// Checks if user has permission to access the repository
if (!repo) {
throw new Error(
vscode.l10n.t(
'Unable to access {0}. Please check your permissions and try again.',
`\`${repoId.org}/${repoId.repo}\``
)
);
}
return {
repository: repo,
remoteName: repo.state.HEAD?.upstream?.remote ?? currentRepository.upstreamRemote ?? repo.state.remotes?.[0]?.name ?? 'origin',
baseRef: currentRepository.headBranchName ?? 'main'
};
}View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/chatSessions/vscode-node/copilotCloudGitOperationsManager.ts:36 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/e92001f45aecae50.
Report an issue: GitHub.