Repository navigation
Add agent-driven GitHub Copilot sign-in for E2E credential parity - #18342
Conversation
…_COPILOT_ to COPILOT_
…d gate step logging behind PW_DEBUG_AUTH_STEPS
…ariables, prototypes/, and AI credential gating
…sqlite3 dependency, and shorten the Copilot authorize wait
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
ReviewThree low-severity findings on the branch:
AssessmentAll three verified against the code and taken (all genuinely low severity):
Actions TakenCommit 0c4cd8d:
Verified: typecheck clean, and a desktop auth run (Posit AI + Copilot ghost-text) passed after the changes. |
…ations, and comment fixes
ReviewThree review agents examined the PR diff (correctness, error-handling/silent-failures, comment accuracy). Deduplicated findings:
AssessmentAll verified against the code; none critical. Taken in full, except the half of finding 6 that would check GitHub's 2FA-rejection banner -- that requires guessing GitHub's failure markup and can't be verified without deliberately failing 2FA, so it was skipped as flake risk; the base32 validation removes the main typo vector. The error-handling design (skip cleanly on missing credentials, fail loud on deliberately-set-but-broken credentials) was judged sound; the findings were gaps in it, not a broken design. Actions TakenCommit 29dd8e7:
Verified: typecheck clean, and a desktop auth run (Posit AI + Copilot ghost-text) passed after the changes. |
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
ReviewCI hit a native-module crash: AssessmentThe worker crashed loading the addon (confirmed via a macOS crash report); it's Actions TakenCommit 6052d65: moved the Copilot store read into a short-lived child |
Brings GitHub Copilot credential handling to parity with Posit AI in the
Playwright E2E suite. Previously Copilot credentials could only be provided by
copying an already-signed-in store from the host, so a machine that had never
signed in to Copilot couldn't provision it. This adds a live device-flow
sign-in, driven by the copilot-language-server over stdio plus a trusted-click
browser authorize step, so the setup can authenticate from scratch the same way
auth.setup.ts already does for Posit AI.
Included:
auto-detect: COPILOT_USER/COPILOT_PASSWORD trigger a live sign-in, else the
host store is copied, else the provider is skipped. Fails loud on bad GitHub
credentials and on a NotAuthorized status.
better-sqlite3 rather than the sqlite3 CLI, which is absent from PATH on
Windows; the check fails closed so an empty pre-sign-in store no longer reads
as authenticated.
PW_DEBUG_AUTH_STEPS (step narration), with account identifiers kept out of
logs.
PW_DEBUG_AUTH_STEPS, through a shared [authorize-] logger;
previously only the GitHub flow narrated steps and Posit AI logged only on
failure under a different prefix.
sandbox credentials will not reach the rsession, which reads the logged-in
user's real home directory. This surfaces (does not fix) a pre-existing
server-mode HOME gap that affects Posit AI too.
single sign-in browser launcher, and documents the new environment variables
and credential gating.
Addresses #18306.
Addresses #18334.