Skip to content

Copilot Github auth doesn't complete #654

Closed

Description

@FireBelow

On a new WSL Ubuntu 24 install, I ran through the quickstart install config and selected CoPilot -> Github auth for my model. I got a device registration code and URL but after completing that step nothing happens. It seems like the return signal to the installer never happens after the auth.

Image

Activity

  1. clawsweeper commented on Jun 2, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 13, 2026, 7:14 PM ET / 23:14 UTC.

    Summary
    Keep open: Windows-side wizard recovery and protocol handling have improved, but the reporter still demonstrated that standalone GitHub Copilot device authorization can finish in the browser without resuming the CLI. A collaborator recently reopened this issue and continues to track it as unresolved provider-onboarding work.

    Reproducibility: no. not yet with high confidence on current main. The reporter supplied a concrete command and corroborating timeout transcript, but the demonstrated version predates the latest release and no current-LKG run is available.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Next step
    Maintainer/provider triage should first reproduce the success and expiry paths on the currently pinned gateway, determine the canonical relationship with the timeout report, and route the polling fix to the owning upstream package.

    Maintainer decision needed

    • Question: Should this issue remain the primary tracker for successful browser authorization not resuming, or should that behavior be consolidated into GitHub Copilot auth timed out #724 after a current-LKG reproduction?
    • Rationale: Both reports point to the same device-code state machine, but recent collaborator tracking preserves them separately and current-version evidence is insufficient to select one canonical issue automatically.
    • Likely owner: samanthamsong — They own the active provider-onboarding tracking context and most recently reopened both reports.
    • Options:
      • Reproduce then consolidate (recommended): Test both completion and expiry against the currently pinned gateway, then keep the issue whose transcript best captures the confirmed root cause.
      • Keep separate outcomes: Retain this issue for successful authorization not resuming and the related issue for expiry incorrectly allowing configuration to continue.
    Review details

    Best possible solution:

    Fix the gateway's GitHub Copilot device-code polling so successful authorization immediately produces a terminal result, then update the Windows gateway pin and add real wizard and standalone reauthentication coverage for success, expiry, denial, and cancellation.

    Do we have a high-confidence way to reproduce the issue?

    No, not yet with high confidence on current main. The reporter supplied a concrete command and corroborating timeout transcript, but the demonstrated version predates the latest release and no current-LKG run is available.

    Is this the best way to solve the issue?

    Yes in direction, but the fix belongs first in the gateway provider polling state machine rather than another Windows-only recovery workaround; this repository should integrate and prove that upstream correction.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The supplied evidence reproduces the failure on OpenClaw 2026.6.1, but no current-main or v0.6.12 run establishes whether the provider polling behavior has since changed.
    • The exact division between this report and GitHub Copilot auth timed out #724 remains unsettled; they appear to share a device-code completion root cause but document different observable outcomes.

    Codex review notes: model internal, reasoning high; reviewed against 77c42440376e.

    Label changes

    Label changes:

    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.
    • remove issue-rating: 🦐 gold shrimp: Current issue advisory state no longer selects this label.
    • remove clawsweeper:needs-info: Current issue advisory state no longer selects this label.

    Label justifications:

    • P2: The defect blocks GitHub Copilot reauthentication for affected users, but the Companion wizard succeeds and the impact is limited to one provider flow.
    • impact:auth-provider: The reported failure occurs while completing and persisting GitHub Copilot provider authorization.
    • impact:ux-friction: Users may need a timeout workaround, an alternate wizard path, or support knowledge to recover from the stalled authentication flow.
    Evidence reviewed

    What I checked:

    • Remaining failure: The reporter confirmed that the Companion App wizard can complete, while openclaw models auth login-github-copilot still remains blocked after successful browser authorization.
    • Corroborating timeout behavior: GitHub Copilot auth timed out #724 records the same device flow advancing only after the code expires, which supports a completion-polling or result-propagation defect rather than ordinary user error.
    • Windows wizard boundary: Current onboarding documentation describes the Companion as rendering gateway wizard.* steps and forwarding answers; provider-specific device-code polling remains gateway-owned. (docs/ONBOARDING_WIZARD.md:272, 77c42440376e)
    • Wizard resilience already landed: Merged work added auth-aware waits, protocol-step acknowledgement, and recovery actions, but its proof did not establish successful standalone GitHub Copilot device-code completion. (docs/ONBOARDING_WIZARD.md:272, 84d2e6ab80c8)
    • Gateway integration surface: This repository pins the gateway implementation through its LKG version surface, so an upstream provider fix may still require a pin update and Windows onboarding validation here. (src/OpenClaw.SetupEngine/GatewayLkgVersion.cs, 77c42440376e)
    • Active maintainer tracking: A collaborator reopened this issue on July 13, 2026, and 🦞 Tracking: Onboard the channels & providers I use #836 explicitly retains it as an unresolved child of provider onboarding.

    Likely related people:

    • bkudiess: Auth-aware timeout handling and richer gateway wizard-step acknowledgement were recently implemented in the central setup flow. (role: recent wizard protocol contributor; confidence: high; commits: 84d2e6ab80c8; files: docs/ONBOARDING_WIZARD.md, src/OpenClaw.SetupEngine, src/OpenClaw.Tray.WinUI)
    • ranjeshj: Recent merged work added recovery actions during authentication waits and hardened adjacent gateway connection and credential behavior. (role: wizard recovery and connection contributor; confidence: high; commits: 9d304c110c0f, ea36b12f9e4c; files: docs/ONBOARDING_WIZARD.md, src/OpenClaw.SetupEngine, src/OpenClaw.Tray.WinUI)
    • samanthamsong: They placed this issue in the active provider-onboarding epic and most recently reopened it, making them a strong routing candidate for the cross-repository follow-up. (role: provider-onboarding tracking owner; confidence: medium)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2
    impact:auth-provider
    issue-rating: 🦐 gold shrimp
    clawsweeper:needs-info
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    on Jun 2, 2026
  3. FireBelow commented on Jun 3, 2026

    @FireBelow
    Author

    After the openclaw install and setup wizard, I tried this command "openclaw models auth login-github-copilot" and had the same issue of not being able to proceed after auth in my browser. CTRL + clicking the URL successfully opened the auth web site but pasting the code didn't allow the auth in openclaw to continue

  4. FireBelow commented on Jun 7, 2026

    @FireBelow
    Author

    Running the auth command
    openclaw models auth login-github-copilot failed in the same way as the original bug description

    The auth flow through the Companion App wizard completes successfully.

    I'm still having trouble with an agent failure so I'm trying to reauth and I'm not sure how

  5. github-actions commented on Jun 14, 2026

    @github-actions
    Contributor

    🤖 This is an automated response from Repo Assist.

    Thanks for the detailed follow-up! Based on your latest comments, it looks like the Companion setup wizard flow completed successfully, but the standalone CLI command openclaw models auth login-github-copilot does not complete even after browser auth.

    This is consistent with a gateway-side polling bug: after you complete authorization in the browser, the gateway's device-code polling loop may not reliably detect the completion and resume. The wizard path avoids this because it uses a different RPC flow (wizard.next) rather than a direct device-code polling loop.

    Suggested workaround (from a related report #724): If you need to re-authenticate the model provider, try running openclaw configure --section model and then intentionally let the device code expire (wait 15 minutes without completing browser auth, or just leave it). When the code expires, the flow often continues past the auth step using a previously cached credential and reaches the model selection screen. After completing that, restart the gateway.

    This isn't a fix — it's a workaround until the gateway-side polling is addressed. The root cause (device-code completion not signaling back to the CLI) appears to live in the gateway's Copilot auth provider implementation rather than the Windows Companion app.

    Generated by 🌈 Repo Assist, see workflow run. Learn more.

    Add this agentic workflows to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/repo-assist.md@97143ac59cb3a13ef2a77581f929f06719c7402a
    
  6. added
    issue-rating: 🦪 silver shellfish
    and removed
    issue-rating: 🦐 gold shrimp
    on Jun 21, 2026
  7. added
    impact:ux-friction
    issue-rating: 🦐 gold shrimp
    and removed
    issue-rating: 🦪 silver shellfish
    on Jul 4, 2026
  8. 1 remaining item

  9. moved this from Backlog to Channels in Windows Companion Appon Jul 13, 2026
  10. closed this as completedby moving to Channels in Windows Companion Appon Jul 13, 2026
  11. added
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    and removed
    issue-rating: 🦐 gold shrimp
    clawsweeper:needs-info
    on Jul 13, 2026
  12. github-actions commented on Jul 28, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  13. bkudiess commented on Jul 29, 2026

    @bkudiess
    Collaborator

    Thanks for the detailed reproduction. Because the same failure occurs with openclaw models auth login-github-copilot, this is in the main OpenClaw GitHub Copilot login flow rather than the Windows companion.

    The symptom strongly matches the device-login polling bug fixed by openclaw/openclaw#109740. The previous poller could remain stuck after browser authorization when GitHub returned slow_down; the fix waits before polling and correctly increases the polling interval. The first release proven to contain it is v2026.7.2-beta.3.

    No Windows companion code change is required, so we’re closing this report as fixed upstream. If the CLI still fails to resume on that or a newer containing build, please report it in openclaw/openclaw with only the OpenClaw version and sanitized terminal status. Do not attach tokens, device codes, credential files, or auth profiles.

  14. locked as resolved and limited conversation to collaborators on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-live-reproclawsweeper:needs-maintainer-reviewclawsweeper:no-new-fix-primpact:auth-providerimpact:ux-frictionissue-rating: 🐚 platinum hermitstale

    Type

    No type

    Fields

    Priority

    Medium

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions