Repository navigation
fix: exit nonzero when destructive confirmation is unavailable - #264
Merged
Merged
Conversation
commit: |
Contributor
|
LGTM! |
Contributor
|
| mean | stddev | min | max | |
|---|---|---|---|---|
| PR | 157.0 ms | 3.3 ms | 151.4 ms | 164.8 ms |
| base | 159.3 ms | 9.4 ms | 153.9 ms | 198.2 ms |
Δ (PR vs base): ↓ -2.3 ms (-1.4%)
Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.
edmundhung
approved these changes
Oct 12, 2026
petebacondarwin
added a commit
that referenced
this pull request
Oct 12, 2026
petebacondarwin
added a commit
that referenced
this pull request
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Destructive commands invoked without a terminal or in CI previously printed confirmation guidance and aborted with exit status 0 when
--forcewas omitted. They now exit with status 1 before making a mutation request, so scripts can detect the failure. Interactive declines and explicit--forceretain their existing behavior.The fix lives in the shared confirmation helper. Regression tests cover generated commands, hand-written container commands, CI, and
--quiet. Five R2 compatibility tests now explicitly confirm their operations and assert responses so their request checks actually run. Includes a minor changeset documenting the exit-status change during the beta.Fixes #94.
Validation:
pnpm check