🤖 fix: the Daytona status badge stays stopped after an editor open starts the sandbox
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
調査の方向性
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 ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/xum のほかの issue
-
🤖 fix: a Daytona connection test started before a settings save can show the old key as connectedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
🤖 fix: stream-error card header actions reach 2.6px into the card padding in a 170px VS Code sidebarオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
db-ux-design-system/core-web#8613 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
foxglove/mcap#1907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug internal-plugin pr-welcome upstream
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dsh-tauri-desk/deepseek-harness-desktop#1225 · コメント 1 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
unjs/unhead#1027 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信