Skip to content

Using Github Copilot is not working as expected #642

Closed

Description

@gustavoaca1997

I have set up my Companion with Github Copilot.

If I use Claude Opus 4.7, I get this:

⚠️ Agent failed before reply: Unknown model: openai/claude-opus-4.7.
Logs: openclaw logs --follow

If I use Gpt 5.5, I get this:

⚠️ Agent failed before reply: No API key found for provider "openai". Auth store: /home/openclaw/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /home/openclaw/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy only portable static auth profiles from the main agentDir.
Logs: openclaw logs --follow

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 3, 2026, 5:52 AM ET / 09:52 UTC.

    Summary
    Keep open: current main has provider-aware model selection and configured-model filtering, but there is still no high-confidence proof that the reporter's GitHub Copilot setup/auth path now works. A collaborator already asked for setup provenance, and multiple related Copilot auth/provider reports remain open.

    Reproducibility: no. The report includes concrete runtime errors, but a high-confidence current-main reproduction still requires a live Copilot-configured gateway and the setup provenance requested by a collaborator.

    Ways to help us reproduce this

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

    Next step
    Human/provider triage is needed because setup provenance and gateway/provider ownership are unresolved, so there is no safe one-PR Windows-node repair shape yet.

    Review details

    Best possible solution:

    Reproduce on current main or v0.6.12 with a Copilot-configured gateway, then fix the specific Companion wizard, model-routing, or gateway auth-provider gap while preserving the provider-aware picker behavior.

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

    No. The report includes concrete runtime errors, but a high-confidence current-main reproduction still requires a live Copilot-configured gateway and the setup provenance requested by a collaborator.

    Is this the best way to solve the issue?

    Unclear. The narrowest maintainable path is to first determine whether the remaining failure comes from Companion wizard input, gateway model catalog output, or the gateway Copilot provider/auth implementation.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The reporter has not answered whether Copilot was configured through Companion onboarding or directly in the gateway/CLI environment.
    • The provider-aware picker likely addresses part of the model-routing symptom, but no current-main proof shows GitHub Copilot auth completing and serving the reported model choices.
    • The remaining failure may live in the gateway or Copilot provider/auth implementation outside this Windows-node checkout.

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

    Label changes

    Label justifications:

    • P2: The report blocks GitHub Copilot model use for affected users, but the blast radius is limited and the root cause still needs setup/auth clarification.
    • impact:auth-provider: The observed failures are provider routing, model choice, and missing provider-auth errors after GitHub Copilot setup.
    Evidence reviewed

    What I checked:

    • Repository policy read: AGENTS.md was read fully; its onboarding, gateway connection, credential, and auth-provider guidance applies to this review, while the read-only review contract prevented validation commands. (AGENTS.md:1, 74604aebafef)
    • Issue discussion still needs setup provenance: The issue body reports Unknown model: openai/claude-opus-4.7 and No API key found for provider "openai" after GitHub Copilot setup; collaborator ranjeshj asked whether setup used Companion onboarding or direct gateway/CLI configuration and suggested openclaw onboard to isolate configuration drift.
    • Current model catalog request is gateway-scoped: Current main requests models.list with view = "configured", so the Windows app depends on the gateway's configured model/provider catalog rather than owning Copilot auth itself. (src/OpenClaw.Shared/OpenClawGatewayClient.cs:985, 74604aebafef)
    • Current parser preserves provider/auth metadata: Current main parses provider, configured, available, and requires-auth fields from models.list, which is a partial implementation relevant to the reported wrong-provider model failures. (src/OpenClaw.Shared/OpenClawGatewayClient.cs:4138, 74604aebafef)
    • Current picker filters only explicit unconfigured rows: Current main keeps auth-needed models selectable and hides explicitly unconfigured models without an auth flow, but this only proves the selector behavior, not Copilot authentication end to end. (src/OpenClaw.Chat/ChatModelChoice.cs:39, 74604aebafef)
    • Provider-aware picker provenance: Merged PR Add provider-aware chat model picker #877 added provider-rich choices and provider-qualified session model values, but it did not close this issue and its proof did not show a live GitHub Copilot auth flow for this reporter's setup. (d6b1a72f6d23)

    Likely related people:

    • bkudiess: Authored the merged provider-aware chat model picker that touches provider-qualified model identity, auth-needed rows, and the model parser path central to this issue's partial fix. (role: recent model-selector contributor; confidence: high; commits: d6b1a72f6d23; files: src/OpenClaw.Chat/ChatModelChoice.cs, src/OpenClaw.Shared/OpenClawGatewayClient.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs)
    • ranjeshj: Asked the setup-provenance question on this issue and authored nearby wizard recovery and SetupEngine work in the auth/setup path. (role: issue commenter and setup wizard contributor; confidence: high; commits: 9d304c110c0f, cefce3952ab1, 98d0760cb5b6; files: src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs, docs/ONBOARDING_WIZARD.md, src/OpenClaw.SetupEngine/default-config.json)
    • shanselman: Authored the configured-model filtering PR in the same parser/chat provider path, which partially addresses bad unconfigured model choices but does not prove Copilot auth works. (role: recent model-filtering contributor; confidence: medium; commits: d1b136347e95, d23f8ca50013; files: src/OpenClaw.Shared/OpenClawGatewayClient.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs, tests/OpenClaw.Shared.Tests/OpenClawGatewayClientTests.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.
  2. added
    P2
    impact:auth-provider
    issue-rating: 🦐 gold shrimp
    clawsweeper:needs-info
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Jun 2, 2026
  3. ranjeshj commented on Jun 2, 2026

    @ranjeshj
    Contributor

    Thanks for the report. Could you clarify how the gateway was set up?

    Did you complete the setup flow from the Companion installer UI, or did you configure GitHub Copilot directly in the gateway/CLI environment?

    If Copilot was configured directly outside the Companion setup flow, the gateway may not have all of the expected provider/auth configuration. In that case, please try running this in the gateway environment to complete the setup manually:

    openclaw onboard

    After that, restart/reconnect Companion and try the same model again. That will help confirm whether this is a gateway configuration issue or something else in the Companion flow.

  4. github-actions commented on Jun 17, 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.

  5. added
    issue-rating: 🦪 silver shellfish
    and removed
    issue-rating: 🦐 gold shrimp
    on Jun 20, 2026
  6. samanthamsong commented on Jul 9, 2026

    @samanthamsong
    Collaborator

    closing this issue due to inactivity - please reopen if still an issue

  7. locked as resolved and limited conversation to collaborators on Jul 12, 2026
  8. moved this from Channels to Connection and Pairing in Windows Companion Appon Jul 13, 2026
  9. moved this from Connection and Pairing to Local Gateway in Windows Companion Appon Jul 13, 2026
  10. moved this from Local Gateway to Channels in Windows Companion Appon Jul 13, 2026
  11. bkudiess commented on Jul 30, 2026

    @bkudiess
    Collaborator

    Based on current source and history, this report does not match the later GitHub Copilot device-login polling bug. The original openai/claude-opus-4.7 and missing OpenAI key errors are consistent with the older Windows model-routing issue that could drop the selected provider and send a Copilot model through the wrong provider.

    The provider-aware model picker fix landed in PR #877 and first shipped in v0.6.11.

    We’re closing this as completed by that Windows fix. If the same provider misrouting still occurs on v0.6.12 or newer, please follow up with the exact Companion and Gateway versions, whether Copilot was configured through Companion or openclaw onboard, and a sanitized screenshot of the selected model and resulting error. Do not include tokens, device codes, or auth files.

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-infoclawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:auth-providerissue-rating: 🦪 silver shellfish

    Type

    No type

    Fields

    Priority

    Medium

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions