openclaw - 💡(How to fix) Fix github-copilot: gpt-5.5 and gemini-3.1-pro fail with 'missing Editor-Version header for IDE auth' [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#71538Fetched 2026-04-26 05:11:43
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
1
Timeline (top)
closed ×1commented ×1

When using github-copilot/gpt-5.5 or github-copilot/gemini-3.1-pro as model targets in OpenClaw (including as fallback candidates), all requests fail immediately with:

400 bad request: missing Editor-Version header for IDE auth

This error occurs consistently and prevents these models from being used at all through the GitHub Copilot provider.

Error Message

This error occurs consistently and prevents these models from being used at all through the GitHub Copilot provider. The error triggers immediately on any request routed to these models.

Error Details

  • github-copilot/claude-opus-4.6 returns a different error: model_not_supported — appears to have been removed from the Copilot API entirely. OpenClaw should include a valid Editor-Version header in Copilot API requests so that newer models like gpt-5.5 and gemini-3.1-pro can be used without error.

Root Cause

When using github-copilot/gpt-5.5 or github-copilot/gemini-3.1-pro as model targets in OpenClaw (including as fallback candidates), all requests fail immediately with:

400 bad request: missing Editor-Version header for IDE auth

This error occurs consistently and prevents these models from being used at all through the GitHub Copilot provider.

Fix Action

Fix / Workaround

  • github-copilot/claude-opus-4.6 returns a different error: model_not_supported — appears to have been removed from the Copilot API entirely.
  • The Editor-Version header fix may also unblock gemini-3-flash and other newer Copilot model IDs.
  • Workaround: remove affected models from fallback chain and use only claude-opus-4.7 / gpt-5.4 / claude-sonnet-4.6.

Code Example

400 bad request: missing Editor-Version header for IDE auth

---

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "github-copilot/claude-sonnet-4.6",
        "fallbacks": ["github-copilot/gpt-5.5", "github-copilot/gemini-3.1-pro"]
      }
    }
  }
}

---

github-copilot/gpt-5.5: 400 bad request: missing Editor-Version header for IDE auth (format)
github-copilot/gemini-3.1-pro: 400 bad request: missing Editor-Version header for IDE auth (format)
RAW_BUFFERClick to expand / collapse

Summary

When using github-copilot/gpt-5.5 or github-copilot/gemini-3.1-pro as model targets in OpenClaw (including as fallback candidates), all requests fail immediately with:

400 bad request: missing Editor-Version header for IDE auth

This error occurs consistently and prevents these models from being used at all through the GitHub Copilot provider.

Environment

  • OpenClaw: 2026.4.23 (a979721)
  • Provider: github-copilot (device login / token auth)
  • Node: v24.x, macOS arm64
  • Models affected: github-copilot/gpt-5.5, github-copilot/gemini-3.1-pro

Reproduction

Set either model as primary or as a fallback candidate and send any message:

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "github-copilot/claude-sonnet-4.6",
        "fallbacks": ["github-copilot/gpt-5.5", "github-copilot/gemini-3.1-pro"]
      }
    }
  }
}

The error triggers immediately on any request routed to these models.

Error Details

From gateway logs:

github-copilot/gpt-5.5: 400 bad request: missing Editor-Version header for IDE auth (format)
github-copilot/gemini-3.1-pro: 400 bad request: missing Editor-Version header for IDE auth (format)

The GitHub Copilot API apparently requires an Editor-Version header (e.g. vscode/1.89.0) to authorize access to these newer models. OpenClaw's Copilot transport does not appear to send this header, causing all requests to be rejected.

Note: github-copilot/claude-opus-4.7 and github-copilot/gpt-5.4 work correctly with the same auth setup, suggesting the Editor-Version requirement is specific to the newer model IDs.

Additional Notes

  • github-copilot/claude-opus-4.6 returns a different error: model_not_supported — appears to have been removed from the Copilot API entirely.
  • The Editor-Version header fix may also unblock gemini-3-flash and other newer Copilot model IDs.
  • Workaround: remove affected models from fallback chain and use only claude-opus-4.7 / gpt-5.4 / claude-sonnet-4.6.

Expected Behavior

OpenClaw should include a valid Editor-Version header in Copilot API requests so that newer models like gpt-5.5 and gemini-3.1-pro can be used without error.

extent analysis

TL;DR

Add an Editor-Version header to Copilot API requests to fix the 400 bad request error for newer models like github-copilot/gpt-5.5 and github-copilot/gemini-3.1-pro.

Guidance

  • Verify that the Editor-Version header is missing from the requests sent to the Copilot API by checking the gateway logs.
  • Update the OpenClaw Copilot transport to include a valid Editor-Version header, such as vscode/1.89.0, in all requests to the Copilot API.
  • Test the fix by sending a request with the updated header to the Copilot API and verifying that the 400 bad request error is resolved.
  • Consider adding a configuration option to allow users to specify the Editor-Version header value.

Example

No code snippet is provided as the issue does not specify the exact implementation details of the OpenClaw Copilot transport.

Notes

The fix may not work for all users, as the required Editor-Version header value may vary depending on the user's IDE version.

Recommendation

Apply a workaround by removing the affected models from the fallback chain and using only claude-opus-4.7 / gpt-5.4 / claude-sonnet-4.6 until the Editor-Version header issue is resolved, as this is a temporary solution that allows users to continue using the Copilot API with supported models.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING