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

🤖 drafts: empty-row edge cases in creation draft list cleanup (deferred from #5232)

クローズ
#5,239 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

Read src/node/services/draftService.ts, focusing first on deleteProjectDrafts, putListEntry, importLegacyList, and collectOrphanedCreationDrafts, along with the referenced review threads. Verify both re-added-project cleanup and orphan-directory failures leave no empty listed draft rows, while preserving the existing lock order and cleanup behavior.

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

説明

approved backlog

Deferred from the #5232 round-4 review (creation draft list on the backend, src/node/services/draftService.ts). Both are narrow cases in project-removal cleanup that leave or drop an empty listed draft row; no typed input is involved. The coordinator stopped the review loop on #5232 after round 4 and deferred them here.

  1. Re-added project vs. removal cleanup (thread on deleteProjectDrafts). If the same project path is registered again while deleteProjectDrafts holds the project's drafts dir lock, putListEntry (which takes only the list lock) can list a new empty draft that the cleanup's delisting then removes. Fix shape: have putListEntry/importLegacyList take the project dir lock too (dir lock, then list lock, the existing order), or record a project generation and delist only rows older than the removal.
  2. List GC stops at the first failing orphan dir (thread on collectOrphanedCreationDrafts). If clearing one orphan project dir throws, the outer catch skips removeUnownedListEntries, so empty rows of unconfigured projects stay until the next start (and show again if that path is re-added). Fix shape: catch per directory, or run the list cleanup as its own guarded step.

Refs #5225


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $31.20

主要言語
TypeScript
スター
2.1k
フォーク
139
平均マージ
3時間 40分
マージ済み PR(30日)
948

環境構築

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

はじめの一歩

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

coder/xum のほかの issue

coder/xum の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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