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
- Open
copilot CLI in a repo owned by a GitHub Enterprise Managed User (EMU) account
- Run
/remote
- Copy the generated session link
- 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
Describe the bug
The
/remotecommand 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
copilotCLI in a repo owned by a GitHub Enterprise Managed User (EMU) account/remoteExpected behavior
The
/remotecommand should generate a URL in the formathttps://github.com/copilot/tasks/{task-id}that resolves correctly.Additional context
https://github.com/copilot/tasks/{id}works fine