refactor: move Copilot Agents home URL to capi

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-09-10 10:54:40 +01:00
parent 6b29c2905c
commit ab7e4039da
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,8 @@ import (
"github.com/vmihailenco/msgpack/v5"
)
const AgentsHomeURL = "https://github.com/copilot/agents"
var defaultSessionsPerPage = 50
var ErrSessionNotFound = errors.New("not found")

View file

@ -70,7 +70,7 @@ func listRun(opts *ListOptions) error {
// based on repo, so we just open the agents dashboard with no args.
// If that page is ever added in the future, we should route to that
// page instead of the global one when --repo is set.
const webURL = "https://github.com/copilot/agents"
webURL := capi.AgentsHomeURL
if opts.IO.IsStdoutTTY() {
fmt.Fprintf(opts.IO.ErrOut, "Opening %s in your browser.\n", text.DisplayURL(webURL))
}