coder / coder/vscode-coder

Add support for showing warning if workspace startup script ran into an error

未关闭
#104 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
good first issue
主要语言
TypeScript
星标
130
派生
48
平均合并
3 天 3 小时
30 天内合并 PR
15

描述

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).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。