ahp.connections.refresh retries forever with 30s timeouts and no backoff or circuit breaker
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 46/100
Rechercherichtung
Start by locating the ahp.connections.refresh request and its background retry loop; the issue does not name source files or tests. Read the related issue #4907 for context, then trace how retries retain the in-memory connection snapshot. Done means failed refreshes use capped exponential backoff, stop or trip a circuit breaker after repeated failures, and surface dead connections to users.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Build: 1.0.115 (packaging-agnostic: observed on both snap and standalone Windows installs, two machines).
Repro / observation (passive, log-based):
- Leave a CLI host process running with stale remote AHP environment connections whose compute hosts no longer exist.
- Tail the host process log.
Actual: ahp.connections.refresh requests fail continuously: each attempt ends after a ~30s timeout (JSON-RPC code -32603, "Connection recovery has not succeeded after 60 seconds. Background retries continue.") and the loop re-fires every ~4s indefinitely. Aggregated counts from two independent machines over ~18h: ~23,000 failed refresh requests on one host, plus a steady ~300 failures/10min rate after the dead connections were removed from user config but before the host process restarted (the retry loop keeps its in-memory snapshot).
Expected: exponential backoff with a cap; a circuit breaker after N consecutive failures; surfacing dead connections to the user (e.g. /status or one-time notice) instead of silent background churn. A shared request path with 30s-timeout retries every 4s risks event-loop pressure that plausibly contributes to user-visible latency complaints (interactions with notification-surfacing latency were inconclusive from our side and are reported separately, honestly labeled).
Related pattern: #4907 (MCP reconnect notification flood) — same class: unbounded background retry loops with user-visible side effects.
- Vorherrschende Sprache
- Python
- Sterne
- 11.5k
- Forks
- 2k
- Ø Merge
- 6 Std. 34 Min.
- Gemergte PRs (30 T.)
- 3
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/copilot-cli
-
area:plugins
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
github/copilot-cli#5567 ·
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationOffenarea:tools
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
github/copilot-cli#5476 ·
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 74/100
github/copilot-cli#5340 ·
Alle Issues in github/copilot-cli
Ähnliche Issues
-
fidelity
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
backlog
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
sagemathinc/sagebrush#3434 ·
Maintainer antworten meist innerhalb von 1 Tag
-
marketing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
wuisabel-gif/MemWhale#576 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Status: Triage Suggestion
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Maintainer antworten meist innerhalb von 1 Tag