Skip to content

fix(generate): fail the run when the permissions feature errors - #2550

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-2486-vibe-malformed-toml
Aug 1, 2026
Merged

fix(generate): fail the run when the permissions feature errors#2550
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-2486-vibe-malformed-toml

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Fixes #2486: with a malformed .vibe/config.toml on disk, generate --features mcp exited 1 with a parse error while --features permissions swallowed the same failure (logger.warn + continue in generatePermissionsCore) and exited 0 reporting "All files are up to date" — a silent false-success.

  • The permissions loop now logs the failure at error level and rethrows, so both features agree that a malformed shared file fails the run (reproduced both before/after: exit-perm 0→1, exit-mcp stays 1).
  • Regression tests: an e2e it.each asserts both features exit 1 on the same malformed fixture, and the generate unit test that pinned the old swallow-and-continue behavior now pins fail-the-run.

Testing

  • pnpm cicheck green; targeted e2e cases pass locally.

Closes #2486

🤖 Generated with Claude Code

cm-dyoshikawa and others added 2 commits July 31, 2026 18:33
With a malformed .vibe/config.toml, --features mcp exited 1 while
--features permissions swallowed the same parse failure with a warning
and reported 'All files are up to date' - a silent false-success where
the user's permission changes were not applied and nothing signaled it.
The permissions loop now logs at error level and rethrows, matching the
MCP feature's behavior on the same file.

Regression coverage: an e2e case asserts both features exit 1 on the
same malformed fixture, and the generate unit test that pinned the old
swallow-and-continue behavior now pins the fail-the-run behavior.

Closes #2486

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 9b980aa 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-2486-vibe-malformed-toml branch August 1, 2026 01:47
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.

bug(vibe): malformed .vibe/config.toml is a hard error under --features mcp but a silent exit-0 success under --features permissions

2 participants