openclaw-windows-node icon indicating copy to clipboard operation
openclaw-windows-node copied to clipboard

GitHub Copilot auth permissions

Open FireBelow opened this issue 5 months ago • 3 comments

I still can't get a successful response from openclaw chat and I noticed that the permissions requested for github copilot auth seems more limited than expected. It request to verify my identity and know which resources I can access. Maybe that is enough for openclaw but that doesn't seem to include any AI permissions. I'm hoping the bot can confirm if this could be a part

Image

FireBelow avatar Jun 08 '26 15:06 FireBelow

Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 26, 2026, 5:16 PM ET / 21:16 UTC.

Summary Keep open for maintainer/provider triage: current main has stronger Windows-side gateway scope handling and auth-wizard resilience, but the evidence still does not prove whether the GitHub Copilot consent screen is expected or whether the failed chat response comes from Windows credentials, gateway/provider auth, or setup state.

Reproducibility: no. The issue includes a Copilot consent screenshot but not the failed chat response, redacted gateway/tray logs, operator scope dump, or CLI chat.send/provider-auth result needed for a current-main reproduction.

Ways to help us reproduce this

  • Add expected vs actual behavior.

Next step Human/provider triage should first request the exact failed chat text, redacted logs, granted OpenClaw scopes, and a current pinned-gateway retest before any fix PR is attempted.

Review details

Best possible solution:

Confirm the expected GitHub Copilot consent and gather a current failed-chat diagnostic bundle, then either document the expected consent screen or fix the gateway/Windows credential path with a reporter-verified retry.

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

No. The issue includes a Copilot consent screenshot but not the failed chat response, redacted gateway/tray logs, operator scope dump, or CLI chat.send/provider-auth result needed for a current-main reproduction.

Is this the best way to solve the issue?

Unclear. Current main already has Windows-side gateway scopes and auth-wizard resilience, so changing Windows-requested permissions would be premature until diagnostics show whether the failure is a provider OAuth issue, gateway polling issue, or OpenClaw credential-scope issue.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The Copilot OAuth consent screen may be expected provider behavior, so changing requested permissions without maintainer/provider confirmation could broaden access unnecessarily.
  • The direct Copilot provider auth and device-code polling behavior appears to live partly in the bundled gateway/CLI package, so a Windows-only fix may miss the real failure.
  • Current main has related setup hardening but no reporter retest or live Copilot proof showing this specific failed-chat symptom is resolved.

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

Label changes

Label justifications:

  • P2: The report affects Copilot-backed chat/provider setup for a user, but the root cause is unclear and there is no evidence of a broad runtime outage.
  • impact:auth-provider: The issue centers on GitHub Copilot authentication, provider permissions, and whether provider access prevents chat responses.
Evidence reviewed

What I checked:

  • Repository policy read: AGENTS.md was read fully; its connection, onboarding, credential-precedence, and validation guidance shaped this auth/provider review, while the read-only review contract prevented running validation commands. (AGENTS.md:1, f51a8618ed7b)
  • Issue still lacks the failing chat artifact: The issue body and comments show a Copilot consent screenshot and a stale notice, but no exact failed chat response, redacted logs, operator scope dump, or CLI chat.send/provider-auth result.
  • Windows gateway scopes are OpenClaw operator scopes: Current main requests OpenClaw operator/admin or bootstrap handoff scopes, including operator.write, which is distinct from the GitHub Copilot OAuth consent wording shown in the screenshot. (src/OpenClaw.Shared/OpenClawGatewayClient.cs:24, f51a8618ed7b)
  • Documented chat permission is operator.write: README documents that Quick Send uses gateway chat.send and needs operator.write, with remediation for that specific missing-scope failure. (README.md:137, f51a8618ed7b)
  • Credential precedence matters for scope failures: The connection architecture requires paired device tokens to win over shared/bootstrap tokens so the client does not downgrade to lower scopes during reconnects. (docs/CONNECTION_ARCHITECTURE.md:138, f51a8618ed7b)
  • Current main has adjacent OAuth setup hardening: Setup now enables the gateway device-pair plugin when a public URL is known, because OAuth providers can need broader scope-upgrade flows before auth URLs appear; this is adjacent but not proof that this Copilot consent concern is resolved. (src/OpenClaw.SetupEngine/SetupSteps.cs:1407, f51a8618ed7b)

Likely related people:

  • bkudiess: Auth-aware wizard timeout/protocol resilience and remote gateway recovery are recent merged work in the setup/provider path this issue depends on. (role: recent setup wizard and connection recovery contributor; confidence: high; commits: 84d2e6ab80c8, f51a8618ed7b, 1e6951331f1c; files: src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs, src/OpenClaw.SetupEngine/WizardTimeouts.cs, src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs)
  • ranjeshj: Auth-wait recovery actions and gateway configuration timeout work are adjacent, and this person asked setup-provenance questions on a related Copilot provider issue. (role: recent adjacent setup/auth contributor and related issue commenter; confidence: medium; commits: 9d304c110c0f, 3ddade7072b0; files: src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs, docs/ONBOARDING_WIZARD.md, src/OpenClaw.SetupEngine/SetupSteps.cs)
  • RBrid: The related merged PR hardened chat data-provider plumbing and approval rendering in the path where the user observes failed chat responses. (role: recent adjacent chat plumbing contributor; confidence: medium; commits: 7d9152f427a3; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs, src/OpenClaw.Chat/ChatTimelineReducer.cs, tests/OpenClaw.Tray.Tests/OpenClawChatDataProviderTests.cs)
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.

clawsweeper[bot] avatar Jun 08 '26 15:06 clawsweeper[bot]

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

github-actions[bot] avatar Jun 23 '26 04:06 github-actions[bot]

Closing due to inactivity. If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

github-actions[bot] avatar Jul 04 '26 04:07 github-actions[bot]