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
fix: only strip classic PATs (ghp_) from Copilot ACP child env
Root cause: Copilot CLI uses its own credential store and doesn't need
env tokens. But when GITHUB_TOKEN contains a classic PAT (ghp_), Copilot
tries to use it, fails ('Authentication required'), and does NOT fall
back to its credential store.
Fix: only delete GITHUB_TOKEN/GH_TOKEN when they contain classic PATs
(ghp_ prefix). Keep OAuth tokens (gho_) and fine-grained PATs
(github_pat_) intact since Copilot supports those.
Also tighten classifyAcpError auth detection regex — the old /login/i
pattern could false-match informational messages.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
`ACP auth_failed: ${msg}. Fix: for Copilot run \`gh auth login\` (uses gh CLI auth, not env vars). For Claude run \`claude login\` or set ANTHROPIC_API_KEY.`
157
+
`ACP auth_failed: ${msg}. Fix: check that .env GITHUB_TOKEN is not a classic PAT (ghp_) — Copilot doesn't support those. For Claude run \`claude login\` or set ANTHROPIC_API_KEY.`
0 commit comments