You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add GHE (GitHub Enterprise) support for cloud agent
- Add host field to GithubRepoId (defaults to github.com)
- Add rawHost to parseRemoteUrl for SSH alias resolution
- Add toGithubWebUrl helper for constructing host-aware URLs
- Use ICAPIClientService.dotcomAPIURL in GithubRepositoryService
instead of hardcoded https://api.github.com
- Update cloud session error messages and UI links to use repo host
- Support GHE URLs in _normalizeGitUri, remote agent icons, and
github repo search tool
- Add comprehensive tests for GHE URL parsing and host propagation
* fix: make PR fetch resilient in provideChatSessionItems
Wrap individual getPullRequestFromGlobalId calls in try-catch so
a single failure (e.g. PermissiveAuthRequiredError on GHE) doesn't
prevent all other sessions from loading. Log warnings for failures.
* fix: refresh cloud sessions when CAPI URL changes for GHE
Listen to IDomainService.onDidChangeDomains so that when the GHE
Copilot token arrives and updates the CAPI base URL, the sessions
provider clears caches and re-fetches against the correct endpoint.
Previously, the initial session fetch raced with token minting and
hit the default api.githubcopilot.com with a GHE token, getting 401.
Also cleaned up diagnostic retry logic in getAllSessions and kept
useful debug logging for session fetch diagnostics.
* fix: clear chatSessionItemsPromise on refresh to prevent stale results
refresh() was clearing cachedSessionItems but not chatSessionItemsPromise,
so when the CAPI URL changed and triggered a refresh, the old in-flight
promise (which hit the wrong URL) was still returned by subsequent
provideChatSessionItems calls, preventing the re-fetch.
* tidy
returnvscode.l10n.t('Cloud agent is unable to create pull requests in this repository. Please verify repository rules allow this operation.');
542
555
}
543
556
if(result.statusCode===401){
544
557
returnvscode.l10n.t('Cloud agent is not authorized to run on this repository. This may be because the Copilot coding agent is disabled for your organization, or your active GitHub account does not have push access to the target repository.');
545
558
}
546
559
// Default to 403 'disabled' message
547
-
returnvscode.l10n.t('Cloud agent is not enabled for this repository. You may need to enable it in [GitHub settings]({0}) or contact your organization administrator.','https://github.com/settings/copilot/coding_agent');
returnvscode.l10n.t('Cloud agent is not enabled for this repository. You may need to enable it in [GitHub settings]({0}) or contact your organization administrator.',settingsUrl);
thrownewError(vscode.l10n.t('Cloud agent is not authorized to run on this repository. This may be because the Copilot coding agent is disabled for your organization, or your active GitHub account does not have push access to the target repository.'));
2465
2494
case403:
2466
-
thrownewError(vscode.l10n.t('Cloud agent is not enabled for this repository. You may need to enable it in [GitHub settings]({0}) or contact your organization administrator.','https://github.com/settings/copilot/coding_agent'));
2495
+
thrownewError(vscode.l10n.t('Cloud agent is not enabled for this repository. You may need to enable it in [GitHub settings]({0}) or contact your organization administrator.',`https://${repoHost}/settings/copilot/coding_agent`));
2467
2496
case404:
2468
2497
thrownewError(vscode.l10n.t('The repository `{0}/{1}` was not found or you do not have access to it.',repoOwner,repoName));
0 commit comments