vscode-coder
vscode-coder copied to clipboard
Add support for showing warning if workspace startup script ran into an error
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:
- If agent lifecycle has already entered
start_errororreadywe know whether or not to show the error - If agent lifecycle is still
startingorstart_timeout, we can:- Keep polling the status until it is known
- Never show the message (no work necessary)
- If agent lifecycle has already entered
We should at least implement i) and optionally ii.a).