Problem
Problem: a task in LegoFlow-SWE (Harbor dataset). Users on ghe.com tenancy hosts receive 401 Unauthorized errors when running gh agent-task commands. The Copilot API base URL is currently hardcoded to https://api.githubcopilot.com , but tenants on ghe.com use a different endpoint. The URL must be…
The task
Users on ghe.com tenancy hosts receive `401 Unauthorized` errors when running `gh agent-task` commands. The Copilot API base URL is currently hardcoded to `https://api.githubcopilot.com`, but tenants on ghe.com use a different endpoint. The URL must be resolved dynamically per host.
Part of Lego-X/LegoFlow-SWE.