github / github/copilot-cli

--cloud owner picker hangs, reconnect crashes, and task polling reaches 429

Offen
#4,568 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:networking area:sessions
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Describe the bug

copilot --cloud fails through several connected symptoms:

  1. Without repository context, the CLI hangs indefinitely at Loading available owners....
  2. With repository context, the cloud task is created but remains at session.requested until provisioning times out.
  3. Reconnecting with copilot --connect=<task-id> opens a blank terminal pane.
  4. The reconnect process polls rapidly enough to receive HTTP 429 responses.
Affected version

GitHub Copilot CLI 1.0.81-7 prerelease on Windows 11 with PowerShell 7 and Windows Terminal.

Steps to reproduce the behavior
  1. Authenticate through GitHub CLI with a valid token containing read:org.

  2. Run:

    copilot --cloud
    
  3. Observe the owner picker hanging at Loading available owners....

  4. Run from a repository:

    copilot -C C:\path\to\repository --cloud
    
  5. Observe the task being created, followed by:

    Timed out waiting for the remote sandbox to start.
    
  6. Reconnect:

    copilot --connect=<task-id>
    
  7. Observe a blank terminal pane.

Relevant sanitized log sequence

Owner discovery:

Welcome <user> (via gh)!
listOwnerOptions: failed to fetch owners: AbortError: This operation was aborted

Authentication:

gh auth token exited non-zero
stderr: no oauth token found for https://github.com
CLI auth notification has no usable server token

The equivalent command succeeds when given a hostname:

gh auth token --hostname github.com

It fails when given the full URL:

gh auth token --hostname https://github.com

The runtime configuration contains:

{
  "githubHost": "https://github.com"
}

Cloud task:

listed Mission Control task events
event_count=1
first_event_types=["session.requested"]

This remained unchanged for the entire provisioning period.

Reconnect:

switchSession failed: Error: Session has no GitHub auth service configured
TerminalRenderer React uncaught error:
Error: Session has no GitHub auth service configured

Polling then repeatedly failed with:

status=429
body_preview="too many requests"
Bundled implementation comparison

In 1.0.80, owner discovery directly fetches /user and /user/orgs using the session token.

In 1.0.81-7, it uses the native githubListOwnerOptions request and cancellation path. The request is aborted during the authentication-state transition.

This suggests a regression in the native owner-discovery/auth integration.

Expected behavior
  • Normalize https://github.com to github.com before invoking gh auth token.
  • Do not cancel owner discovery because an equivalent authentication object is refreshed.
  • Do not switch the renderer to a remote session lacking its GitHub auth service.
  • Surface reconnect failures instead of leaving a blank pane.
  • Back off task polling and respect HTTP 429 responses.
Additional context

The repository was private, the authenticated user had admin access, and the token contained read:org.

Environment: Windows 11, x86_64, PowerShell 7, Windows Terminal.

No matching public issue was found. Raw logs are intentionally not attached because debug logging includes environment data.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die aufgeführten PowerShell-Befehle auf GitHub Copilot CLI 1.0.81-7 zu reproduzieren, und vergleiche die Ermittlung des Owners mit 1.0.80. Verfolge den Übergang der Authentifizierung, die Einrichtung der Reconnect-Sitzung und das Task-Polling rund um den protokollierten AbortError, den fehlenden auth service und die HTTP-429-Antworten. Als abgeschlossen gilt die Arbeit, wenn das Laden des Owners abgeschlossen wird, die Provisionierung fortschreitet, Reconnect gerendert wird oder einen Fehler meldet und das Polling bei Rate-Limits mit Backoff arbeitet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github, shell
Bereich
authentication, cli, cloud
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.