Skip to content

fix: explain the ignored-files worktree blocker in the CLI and socket API (INC-508) - #588

Merged
arzafran merged 2 commits into
mainfrom
franco/inc-508-ignored-files-blocker
Nov 12, 2026
Merged

arzafran merged 2 commits into
mainfrom
franco/inc-508-ignored-files-blocker

Conversation

@arzafran

Copy link
Copy Markdown
Member

Fixes INC-508. When a worktree can't be cleaned because it holds ignored files, the CLI and socket API now give a readable reason instead of the raw ignored_files code. storage.scan also judges removability by the same manual-clean rules the Storage panel uses, so the two agree.

  • The Storage panel's policy is built through the shared manual factory, so there is one source for those rules.
  • The new field is documented in docs/socket-api.md, since the v2 contract has no result schemas.

Left as is: the Storage panel ignores the 24-hour recent-use window that storage scan and --dry-run apply. That predates this change. Aligning the scan with the panel would make it disagree with --dry-run.

Verified: a Codex review came back clean. The build first runs in this PR's CI, because the worktree had no ghostty submodule.

@arzafran
arzafran merged commit 45020ed into main Nov 12, 2026
12 checks passed
@arzafran
arzafran deleted the franco/inc-508-ignored-files-blocker branch November 12, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant