Surface non-blocking agent startup script failures to the user
@EhabY ya está trabajando en esto.
Desde el 23/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Problem
When an agent ends up in start_error or start_timeout, the extension continues the connection and only writes a line to the Coder output channel:
Non-blocking startup scripts are useful because a developer can still reach a terminal and repair the workspace when one fails. But a failed script usually means the workspace is unhealthy, and right now someone connecting through the extension gets no visible signal. Output channel messages are easy to miss.
Raised in #1113 (comment). Tracking separately because the fix does not depend on the panel redesign.
Current behaviour
src/remote/workspaceStateMachine.ts treats both states the same way: close the agent log stream, log at info level, return true to continue connecting.
start_errorlogs "Agent startup scripts failed, but continuing"start_timeoutlogs "Agent startup scripts timed out, but continuing"
Suggested ways to surface it
Roughly in order of effort:
- Warning notification on connect. Show
vscode.window.showWarningMessagewhen the agent reachesstart_errororstart_timeout. Include the agent name, and the failing script if we can identify it. Offer actions:- "View Logs" to run the existing
coder.viewLogscommand - "Show Startup Logs" to reveal the agent log terminal already populated by
streamAgentLogs - "Dismiss"
- "View Logs" to run the existing
- Write a banner to the connection terminal. The state machine already writes to a terminal during startup. A clear failure banner there survives in scrollback, so the user can find it after the fact.
- Persistent status bar warning. A notification can be missed if the window is unfocused during connect. A warning status bar item that stays until clicked gives the user something to come back to.
WorkspaceMonitoralready owns a status bar item and is a reasonable home for this. - Decorate the tree item. Longer term, an unhealthy indicator on the workspace or agent in the Workspaces panel. This is the part that overlaps with #1113, so it can follow that work.
Suggest starting with 1 and 2, then evaluating 3.
Open questions
- Should this respect
coder.disableNotifications? That setting is documented as covering notifications delivered by the Coder deployment, so a client side health warning may deserve its own setting, for examplecoder.disableStartupScriptWarnings. - Should
start_timeoutread differently fromstart_error? A timed out script may still be running and eventually succeed, so the wording should not claim it failed outright. - Can we name the specific script that failed? Worth checking whether the agent scripts payload exposes per script exit status. If not, the message stays generic and points at the logs.
Acceptance criteria
- Connecting to a workspace whose non-blocking startup script failed produces a visible warning, not just an output channel line.
- The warning gives a direct path to the relevant logs.
- The connection still succeeds, matching today's behaviour.
- Both
start_errorandstart_timeoutare covered, with wording appropriate to each.
Created on behalf of @EhabY
- Lenguaje dominante
- TypeScript
- Estrellas
- 131
- Forks
- 48
- Merge medio
- 4 d 15 h
- PR fusionados (30 d)
- 17
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de coder/vscode-coder
-
Migrate CI setup to pnpm/setup Abiertotech-debt
coder/vscode-coder#1119 · 1 comentario · 1 asignado ·
-
enhancement tech-debt
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
coder/vscode-coder#1118 · 1 comentario ·
-
coder/vscode-coder#1113 · 3 comentarios · 1 asignado ·
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable server Abiertoenhancement tech-debt
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
coder/vscode-coder#1112 · 1 comentario ·
-
bug upstream
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
coder/vscode-coder#1087 · 1 comentario ·
Todos los issues de coder/vscode-coder
Issues similares
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100