`Remote session disabled: could not resolve repository` when using `/remote` on an organization repo
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
When running the `/remote` command in Copilot CLI v1.0.28 inside a repository owned by a GitHub organization, the following error is shown:
```
Remote session disabled: could not resolve repository
```
### Affected version
v1.0.28 (copilot CLI)
### Steps to reproduce the behavior
1. Login with `/login` using a GitHub user account that is a confirmed member of the organization.
2. Use a local clone of a repository owned by the organization.
3. Run the `/remote` command.
4. The error appears: `Remote session disabled: could not resolve repository`.
### Expected behavior
The `/remote` session should start successfully, since:
- The repository exists under the organization.
- The logged-in user is a valid organization member.
- The org admin has enabled remote access for the user (without this, `/remote` cannot be invoked at all).
### Additional context
- Re-logging in with `/login` does not help.
- The org admin confirmed remote access is enabled.
- It appears Copilot CLI may be attempting to resolve the repo under the logged-in user's personal account, instead of the organization.
- This is similar to #1328 (wrong repo owner resolution), but here the error is blocking `/remote` usage rather than failing MCP commands after connection.
- OS: windows 11
- Terminal: power shell
貢獻指南
研究方向
從 `/remote` 命令的進入點開始,追蹤本機複製屬於某個組織時 `/login` 之後的儲存庫解析流程。使用回報的組織擁有儲存庫進行重現,並將解析出的擁有者與本機儲存庫進行比較;當遠端工作階段能為已確認的組織成員啟動時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github, shell
- 領域
- authentication, cli
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100