1.3 KiB
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_status が notfound になり、workdir_record_delete ではなく workdir_dirty_discard と判定される。そのため frontend の delete action が disabled になっている。
原因は WorkingDirectoryStatusKind::NotFound を format!("{:?}").to_lowercase() で string 化しているためで、serde の snake_case 表現 (not_found) とずれている。
要件
- Workdir cleanup plan の observed Runtime status string は Debug 表現ではなく canonical snake_case label を使う。
WorkingDirectoryStatusKind::NotFoundはnot_foundとして扱われる。not_foundWorkdir candidate はworkdir_record_deleteaction になり、blocking reason がなければ削除可能になる。
受け入れ条件
- cleanup plan API で not-found Workdir の
file_statusがnot_foundになる。 - cleanup plan API で not-found Workdir の
actionがworkdir_record_deleteになる。 - workspace-server tests が通る。