Closed
Harden APP discussion bot Copilot parse path against token/model failures#44
Conversation
Co-authored-by: LionSR <14889516+LionSR@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
LionSR
August 14, 2026 07:25
View session
LionSR
pushed a commit
that referenced
this pull request
Aug 14, 2026
Confirmed via a raw, unmasked Copilot CLI invocation (run 31781411798):
Error: Authentication token found but could not be validated.
Failed to fetch PAT user login (401): GitHub returned: Bad credentials
COPILOT_PAT is expired/revoked -- auth fails before any model or prompt
is considered. That's why swapping gpt-5.5 for gpt-4.1 changed nothing,
and why PR #44's "only run if COPILOT_PAT is set" approach wouldn't have
helped either: the secret is set, it's just no longer a valid token.
This requires regenerating the PAT and updating the repo secret; no
workflow or script change can fix it. Debug step served its purpose,
removing it.
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.
The APP discussion bot intermittently failed in
actions/ai-inference@v3after invoking Copilot CLI (copilot -p ...), with the parse step exiting non-zero. This change reduces hard failures in the inference path while preserving the existing fallback behavior.Inference-step gating on credential availability
COPILOT_PATis configured.Model compatibility adjustment
gpt-5.5togpt-5in the parse step to align with more reliable Copilot CLI execution.Behavioral impact