Flush the connection log buffer after N failed reconnect attempts against an unreachable server
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- networking, observability
Direzione di ricerca
Start by reading src/websocket/reconnectingWebSocket.ts and src/logging/logBuffer.ts, then review PR #1100 for the existing flush triggers and reasons. Settle the retry threshold, counter reset, and one-flush-per-failure-episode behavior. Done means sustained unreachable-server retries flush the buffer once, a successful connection resets the episode, and later terminal failures retain their existing behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Background
DEVEX-669 (#1100) added BufferingLogger, which flushes buffered below-level connection logs into the "Coder" output channel on a genuine, surfaced connection failure:
- a reconnecting WebSocket terminal failure (
unrecoverable_close,unrecoverable_http, orcertificate_error; a handshake401is excluded because a token refresh reconnects the same socket); - a failure while opening a workspace (canceled build, missing agent, timeout, or CLI/certificate error).
During Ehab's review of #1100 we agreed to defer one additional trigger: flushing after N consecutive failed reconnect attempts against an unreachable server.
Problem
When a server is simply unreachable, the reconnecting WebSocket keeps retrying with backoff and never reaches a terminal failure reason, so the buffer is never flushed. A user reproducing a "can't connect / hangs on connecting" problem therefore gets no buffered detail in their support bundle, even though plenty of below-level context was captured.
Proposal
Flush the connection log buffer once a reconnect loop has failed N consecutive times (i.e., treat sustained unreachability as a genuine failure worth surfacing), then avoid re-flushing on every subsequent attempt until a successful connect resets the counter.
Open questions to settle during implementation:
- Value of N (or a time-based threshold instead of / in addition to a count).
- Where the counter lives and how it resets on a successful open.
- Guarding against repeated flushes while still stuck (flush once per failure "episode").
- A meaningful flush
reason/route for attribution, consistent with the existing terminal-failure reasons.
References
- PR #1100 (DEVEX-669)
src/websocket/reconnectingWebSocket.ts,src/logging/logBuffer.ts
🤖 Filed by Coder Agents on behalf of @aqandrew, following up on the #1100 review.
- Lingua principale
- TypeScript
- Stelle
- 131
- Fork
- 48
- Merge medio
- 4g 15h
- PR unite (30g)
- 17
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di coder/vscode-coder
-
Surface non-blocking agent startup script failures to the userForse già presa @EhabY l’ha presa 3 giorni fa. Aperta
coder/vscode-coder#1125 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Migrate CI setup to pnpm/setupForse già presa @EhabY l’ha presa 8 giorni fa. Apertatech-debt
coder/vscode-coder#1119 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement tech-debt
Difficoltà 3/5 1-2 giorni Idoneità per principianti 74/100
coder/vscode-coder#1118 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Design the VS Code Workspaces panelForse già presa @chrifro l’ha presa 12 giorni fa. Aperta
coder/vscode-coder#1113 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
bug upstream
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
coder/vscode-coder#1087 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di coder/vscode-coder
Issue simili
-
Add: Digi World (Romania) SDApertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Fission-AI/OpenSpec#1986 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nestjs/docs.nestjs.com#3554 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
publicodes/publicodes#868 ·
-
namespace operations
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
EclipseFdn/open-vsx.org#13488 ·
I maintainer di solito rispondono entro 2 giorni