microsoft/vscode · error · Error
Repository information is not available. Open a GitHub repos
Error message
Repository information is not available. Open a GitHub repository to continue with cloud agent.
What it means
Error "Repository information is not available. 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:31
export interface GitRepoInfo {
repository: Repository;
remoteName: string;
baseRef: string;
}
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 {View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/chatSessions/vscode-node/copilotCloudGitOperationsManager.ts:31 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/2fc32c0ac81a0fba.
Report an issue: GitHub.