yoi/.yoi/tickets/00001KXDMM975/item.md

1.3 KiB

title state created_at updated_at assignee queued_by queued_at
Allow not-found Workdir cleanup action done 2026-07-13T11:43:33Z 2026-07-13T11:51:11Z null yoi ticket 2026-07-13T11:44:18Z

背景

Workdir list では Runtime から not_found が確認できているが、cleanup plan では file_statusnotfound になり、workdir_record_delete ではなく workdir_dirty_discard と判定される。そのため frontend の delete action が disabled になっている。

原因は WorkingDirectoryStatusKind::NotFoundformat!("{:?}").to_lowercase() で string 化しているためで、serde の snake_case 表現 (not_found) とずれている。

要件

  • Workdir cleanup plan の observed Runtime status string は Debug 表現ではなく canonical snake_case label を使う。
  • WorkingDirectoryStatusKind::NotFoundnot_found として扱われる。
  • not_found Workdir candidate は workdir_record_delete action になり、blocking reason がなければ削除可能になる。

受け入れ条件

  • cleanup plan API で not-found Workdir の file_statusnot_found になる。
  • cleanup plan API で not-found Workdir の actionworkdir_record_delete になる。
  • workspace-server tests が通る。