GHES: Replace opaque Copilot errors with actionable messages#20976
Draft
GHES: Replace opaque Copilot errors with actionable messages#20976
Conversation
- Create detect_ghes_copilot_errors.sh script to detect common GHES errors - Add actionable error message templates for each GHES error type - Integrate GHES error detection into Copilot engine workflow generation - Add error outputs to agent job and pass to conclusion job - Update failure message templates to include GHES error context - Support detection of: token exchange 403, model loading 400, firewall blocks, gh CLI misconfiguration Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
- Add comprehensive tests for GHES error detection in workflow compilation - Update golden test files to include new GHES error outputs - Verify tests pass for Copilot engine workflows Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Claude created this pull request from a session on behalf of
lpcox
March 14, 2026 18:57
View session
Collaborator
|
@claude[agent] fix the pr title and summary |
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Contributor
Author
Updated PR title to "GHES: Replace opaque Copilot errors with actionable messages" and added comprehensive description with implementation details, testing information, and example error messages. (8a960c1) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
This PR adds comprehensive GHES-specific error detection for the Copilot engine, replacing opaque error messages with clear, actionable guidance for common GHES deployment issues. ChangesDetection Script
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive GHES-specific error detection for the Copilot engine, replacing opaque error messages with clear, actionable guidance for common GHES deployment issues.
Changes
Detection Script
detect_ghes_copilot_errors.shto detect 4 common GHES error patterns:Error Message Templates
ghes_token_exchange_error.md- Licensing and GitHub Connect resolution stepsghes_model_loading_error.md- API proxy troubleshootingghes_firewall_block_error.md- Firewall configuration guidanceghes_gh_cli_error.md- gh CLI configuration fixesCompiler Integration
ghes_token_exchange_403,ghes_model_loading_400,ghes_firewall_block,ghes_gh_cli_misconfigured)Tests
ghes_copilot_errors_test.go:Testing
All tests pass:
Example Error Messages
When a GHES-specific error is detected, users will see actionable guidance like:
Token Exchange 403:
Model Loading 400:
Firewall Block:
gh CLI Misconfiguration: