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> |
||
|---|---|---|
| .. | ||
| args.go | ||
| args_test.go | ||
| auth_check.go | ||
| auth_check_test.go | ||
| cmdgroup.go | ||
| errors.go | ||
| factory.go | ||
| factory_test.go | ||
| file_input.go | ||
| flags.go | ||
| json_flags.go | ||
| json_flags_test.go | ||
| legacy.go | ||
| repo_override.go | ||