Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

🤖 fix: the Daytona status badge stays stopped after an editor open starts the sandbox

オープン 初心者向け
#7,254 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
backend, desktop

調査の方向性

src/browser/utils/openInEditor.ts:450から始め、エディターの受け入れ処理を、ターミナルを開いた後にランタイム状態をすでに更新しているuseOpenTerminalとutils/terminal.tsに沿って追います。Daytonaのエディター受け入れが成功した後に更新を追加し、キャッシュされたstopped状態を使う説明どおりのテストを追加して、更新が1回期待されることを確認します。

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

説明

Follow-up from the Codex review of #7100 (thread: https://github.com/coder/xum/pull/7100#discussion_r4354242893, src/browser/utils/openInEditor.ts:450).

Problem

Opening a Daytona workspace in an editor (VS Code, Cursor, Zed) while its sandbox is stopped goes through recordEditorOpen, whose backend readiness starts the sandbox. The editor path then returns without refreshing RuntimeStatusStore. An editor open happens outside a turn, so no runtime-status event corrects the cache: the runtime badge keeps showing "Sandbox Stopped", and the Git and PR stores stay blocked by canRunPassiveRuntimeCommand until the window regains focus or metadata refreshes.

The terminal path already handles this: useOpenTerminal and utils/terminal.ts call getRuntimeStatusStoreInstance().refreshAfterTerminalOpen(workspaceId) after the terminal opens.

Proposed fix

After the editor admission succeeds for a Daytona workspace, call the same immediate status refresh the terminal path uses (rename it to fit both callers if needed). Add a test that opens an editor with a cached stopped status and expects one status refresh.

Why it is deferred

#7100 runs its review loop under a P0/P1-only rule; P2 findings get a tracked follow-up.

主要言語
TypeScript
スター
2.1k
フォーク
140
平均マージ
4時間 55分
マージ済み PR(30日)
897

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

coder/xum のほかの issue

coder/xum の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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