Skip to content

fix(generate): fail the run when the ignore feature errors - #2552

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-scrap-issue-2551-ignore-fail-closed
Aug 1, 2026
Merged

fix(generate): fail the run when the ignore feature errors#2552
dyoshikawa merged 3 commits into
mainfrom
resolve-scrap-issue-2551-ignore-fail-closed

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Fixes #2551 (follow-up from the PR #2550 review): generateIgnoreCore was the last feature loop still swallowing per-target errors with warn + continue, exiting 0 with "All files are up to date" — including in --check mode — while nothing was written. Since ignore files are what keep secrets out of AI tools' reach, this was the same fail-open class as #2486's permissions bug, arguably worse.

Testing

  • pnpm cicheck green.

Closes #2551

🤖 Generated with Claude Code

cm-dyoshikawa and others added 3 commits July 31, 2026 18:49
generateIgnoreCore was the last feature loop still swallowing per-target
errors (warn + continue, exit 0 'All files are up to date'). Ignore
files are what keep secrets out of AI tools' reach, so a
silently-skipped ignore generation is the same fail-open bug the
permissions feature had; it now logs at error level and rethrows,
matching every other feature core, and the pinning unit test flips to
fail-the-run.

Closes #2551

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The generateCommand-level tests still pinned the swallowed-error
behavior; they now assert the command rejects and no success banner is
emitted.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ules never run

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 43f3a85 into main Aug 1, 2026
9 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

@dyoshikawa
dyoshikawa deleted the resolve-scrap-issue-2551-ignore-fail-closed branch August 1, 2026 02:06
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.

generateIgnoreCore still swallows per-target errors (exit 0 'up to date' on a broken ignore source)

2 participants