The gh api command builds its own HTTP client inline without forwarding InvokingAgent, so the User-Agent header was missing the Agent/<name> suffix when invoked by AI coding agents. Thread InvokingAgent through Factory → ApiOptions → HTTPClientOptions, mirroring the existing AppVersion pattern. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| api.go | ||
| api_test.go | ||
| fields.go | ||
| fields_test.go | ||
| http.go | ||
| http_test.go | ||
| pagination.go | ||
| pagination_test.go | ||