🤖 bug: init replay lease hand-off windows and no init-end for a replaying backend
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by tracing InitStateManager.replayInit, startInit, runBackgroundInit, withInitUseLease, and the WorkspaceService init logger, then check how AgentSession triggers replay. The fix is complete when lease hand-off windows cannot overwrite a successful final status and a connected replaying backend observes and displays the completed record without requiring reconnect or reload.
索引モデルが issue の本文から書いたものです。
説明
Problem
Follow-up from the review of #4917 (#4801 item 3). #4917 makes InitStateManager.replayInit leave a "running" init record alone while any live init use lease exists, and read the record again after the lease probe. Two gaps remain, both older than #4917 (before it, the replaying backend always finalized the record):
- Lease hand-off windows. The owner persists "running" in
startInitshortly beforerunBackgroundInittakes theinitlease, and its final status write (WorkspaceServicelogger:void initStateManager.endInit(...)) is not ordered beforewithInitUseLeasereleases the lease. A replay by another backend that probes in either window sees no lease, reads "running" again, and writesstatus: "error". If that write lands after the owner's final write, a successful init is replayed as interrupted from then on. - No completion for a connected replayer. While the owner holds the lease, the other backend replays the record as running. The owner's
init-endevent is process-local, andAgentSessioncallsreplayInit()only on history replay or reconnect, so the other backend's creation card stays "running" until the client reconnects or reloads.
Possible fix
- Hold one record-owner lock (or the
initlease) from before the "running" write until the final status is durable, for example by having the init logger's completion return theendInitpromise andrunBackgroundInitawait it before the release. - Have the replaying backend observe the lease's release (or the status file) and replay the final record once.
Refs #4801, #4917
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- 主要言語
- TypeScript
- スター
- 2k
- フォーク
- 136
- 平均マージ
- 7時間 27分
- マージ済み PR(30日)
- 710
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/xum のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
🤖 fix: retry barrier keyboard gaps (no Retry shortcut; Esc on context_exceeded disables auto-retry)オープン
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
openedx/frontend-app-authoring#3274 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
area/documentation status/need-triage
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
google-gemini/gemini-cli#29548 ·
メンテナーはふだん 1 日以内に返信
-
sdk-typescript vector-store
難易度 2/5 半日 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信