github / github/copilot-cli

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

Aperta
#2,751 8 commenti 13 reazioni 0 assegnatari Vedi su GitHub
area:agents area:enterprise
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal punto di ingresso del comando `/remote` e segui la risoluzione del repository dopo `/login` quando il clone locale appartiene a un'organizzazione. Riproduci il problema con il repository di proprietà dell'organizzazione segnalato e confronta il proprietario risolto con il repository locale; il lavoro è completato quando la sessione remota viene avviata per un membro confermato dell'organizzazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, shell
Ambito
authentication, cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.