From eaa21a82754be70890c1f74a4c53147dbbfefe92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Gw=C3=B3=C5=BAd=C5=BA?= Date: Thu, 9 Apr 2026 22:29:03 +0200 Subject: [PATCH] fix(copilot): add missing Copilot-Integration-Id header The GitHub Copilot API now requires a Copilot-Integration-Id header on all requests. Without it, every API call fails with HTTP 400: "missing required Copilot-Integration-Id header". Uses vscode-chat as the integration ID, matching opencode which shares the same OAuth client ID (Ov23li8tweQw6odWQebz). Fixes: Copilot provider fails with "missing required Copilot-Integration-Id header" (HTTP 400) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- hermes_cli/copilot_auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hermes_cli/copilot_auth.py b/hermes_cli/copilot_auth.py index 6f62eede4..6f4065d2d 100644 --- a/hermes_cli/copilot_auth.py +++ b/hermes_cli/copilot_auth.py @@ -285,6 +285,7 @@ def copilot_request_headers( headers: dict[str, str] = { "Editor-Version": "vscode/1.104.1", "User-Agent": "HermesAgent/1.0", + "Copilot-Integration-Id": "vscode-chat", "Openai-Intent": "conversation-edits", "x-initiator": "agent" if is_agent_turn else "user", }