cli/pkg/cmd/agent-task/capi
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
..
client.go fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00
client_mock.go Add custom agent support to job creation 2025-10-31 14:57:48 -06:00
job.go fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00
job_test.go fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00
sessions.go fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00
sessions_test.go fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00