Skip to content

/remote command generates broken session URL (404) for enterprise users #2813

@rambo108

Description

@rambo108

Describe the bug

The /remote command generates a session URL that returns 404. The generated URL includes the enterprise name, repo owner, and repo name in the path, which creates an invalid URL structure.

Generated URL (broken):
https://github.com/enterprises/{enterprise}/{owner}/{repo}/tasks/{task-id}

Working URL:
https://github.com/copilot/tasks/{task-id}

The /enterprises/{enterprise}/{owner}/{repo}/ prefix should not be in the path. The correct base path is /copilot/tasks/.

Affected version

Copilot CLI v1.0.32

Steps to reproduce the behavior

  1. Open copilot CLI in a repo owned by a GitHub Enterprise Managed User (EMU) account
  2. Run /remote
  3. Copy the generated session link
  4. Open the link in a browser — it returns 404

Expected behavior

The /remote command should generate a URL in the format https://github.com/copilot/tasks/{task-id} that resolves correctly.

Additional context

  • OS: Windows
  • Account type: GitHub Enterprise Managed User (EMU)
  • The task UUID itself is valid — manually constructing https://github.com/copilot/tasks/{id} works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:enterpriseGitHub Enterprise (GHE/GHES) support, org policies, and enterprise settings

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions