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

オープン
#104 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript

調査の方向性

まず、extension が workspace agent のライフサイクルステータスを取得するために Coder API をどのようにクエリしているかを追跡します。issue では、start_errorreadystartingstart_timeout が関連する状態として特定されています。完了条件は、ブロッキング起動が start_error に到達したときに警告を表示することです。必要に応じて、結果が判明するまでノンブロッキング起動のポーリングを継続します。

索引モデルが issue の本文から書いたものです。

説明

good first issue

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

主要言語
TypeScript
スター
131
フォーク
48
平均マージ
4日 16時間
マージ済み PR(30日)
13

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/vscode-coder のほかの issue

coder/vscode-coder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。