github / github/copilot-cli

`Remote session disabled: could not resolve repository` when using `/remote` on an organization repo

オープン
#2,751 コメント 8 件 リアクション 13 件 担当者 0 名 GitHub で見る
area:agents area:enterprise
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start at the `/remote` command entry point and trace repository resolution after `/login` when the local clone belongs to an organization. Reproduce with the reported organization-owned repository and compare the resolved owner with the local repository; done means the remote session starts for a confirmed organization member.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, shell
領域
authentication, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。