Add support for showing warning if workspace startup script ran into an error
- Vorherrschende Sprache
- TypeScript
- Sterne
- 130
- Forks
- 48
- Ø Merge
- 3 T. 3 Std.
- Gemergte PRs (30 T.)
- 15
Beschreibung
As part of https://github.com/coder/coder/issues/7757, we want to ensure the user knows if their workspace may be in an incomplete state.
- If startup script blocking behavior is enabled, we can query the coder API for agent lifecycle status and see if it is `start_error`, we can then show a warning popup
- If startup script behavior is non-blocking, we have two scenarios:
1. If agent lifecycle has already entered `start_error` or `ready` we know whether or not to show the error
2. If agent lifecycle is still `starting` or `start_timeout`, we can:
1. Keep polling the status until it is known
2. Never show the message (no work necessary)
We should at least implement i) and optionally ii.a).
Beitragsleitfaden
Rechercherichtung
Beginne damit nachzuverfolgen, wie die Erweiterung die Coder API nach dem Lebenszyklusstatus des Workspace-Agenten abfragt; das Issue identifiziert `start_error`, `ready`, `starting` und `start_timeout` als die relevanten Zustände. Erledigt bedeutet, eine Warnung anzuzeigen, wenn ein blockierender Start `start_error` erreicht; optional nicht blockierende Starts weiter abzufragen, bis das Ergebnis bekannt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- developer-experience, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100