cli/pkg/cmd/agent-task/shared
Kynan Ware 78b958f9ae
fix(agent-task): resolve Copilot API URL dynamically (#12956)
* fix(agent-task): resolve Copilot API URL dynamically

Query viewer.copilotEndpoints.api to get the correct Copilot API URL
for the user's host instead of hardcoding api.githubcopilot.com. This
fixes 401 errors for ghe.com tenancy users whose Copilot API lives at
a different endpoint.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-18 18:14:02 +00:00
..
testdata Remove obsolete log-3 test data files 2025-09-17 12:09:51 -06:00
capi.go fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00
capi_test.go fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00
display.go fix(agent-task/shared): fix session state value 2025-09-18 12:33:47 +01:00
log.go Refactor comments in stripDiffFormat function 2025-09-17 12:16:04 -06:00
log_mock.go chore(agent-task/shared): regenerate LogRenderer mock 2025-09-18 12:00:55 +01:00
log_test.go Improve log rendering error handling and test coverage 2025-09-16 17:21:01 -06:00