Commit 62ffa8d
committed
fix(copilot): align with GitHub Copilot June 2026 rule updates
- Token exchange (`/copilot_internal/v2/token`) now sends `Copilot-Integration-Id` and `X-Github-Api-Version` (openclaw PR #80074, 2026-05-10).
- `MakeAuthenticatedRequest` now sends `X-Github-Api-Version` for `/models` and other authenticated calls.
- `GetCopilotQuota` now presents the full Copilot client identity headers instead of a `CLIProxyAPIPlus` User-Agent, so `/copilot_internal/user` stays accepted under the new integration-id requirement.
- Bump `User-Agent`/`Editor-Version`/`Editor-Plugin-Version` to the community consensus (`GitHubCopilotChat/0.50.0`, `vscode/1.122.0`, `copilot-chat/0.50.0`; caozhiyuan/copilot-api v1.10.22, 2026-05-29).
- Sync the header constants across `copilot_auth.go`, `github_copilot_executor.go`, and `api_tools.go` with an explicit keep-in-sync comment.1 parent 3a4abe1 commit 62ffa8d
3 files changed
Lines changed: 20 additions & 8 deletions
File tree
- internal
- api/handlers/management
- auth/copilot
- runtime/executor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
888 | 887 | | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
889 | 896 | | |
890 | 897 | | |
891 | 898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments