Skip to content

fix: exit nonzero when destructive confirmation is unavailable - #264

Merged
petebacondarwin merged 1 commit into
mainfrom
codex/fix-94-noninteractive-abort
Oct 12, 2026
Merged

petebacondarwin merged 1 commit into
mainfrom
codex/fix-94-noninteractive-abort

Conversation

@petebacondarwin

Copy link
Copy Markdown
Collaborator

Destructive commands invoked without a terminal or in CI previously printed confirmation guidance and aborted with exit status 0 when --force was omitted. They now exit with status 1 before making a mutation request, so scripts can detect the failure. Interactive declines and explicit --force retain 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
  • 68 focused CLI tests passed
  • 93 active compatibility tests passed across queues, R2, and KV
  • Compiled CLI smoke tests confirmed exit status 1 for normal and quiet noninteractive aborts

@petebacondarwin
petebacondarwin requested a review from a team as a code owner October 12, 2026 11:52
@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/cf@264

commit: 5067c5e

@ask-bonk

ask-bonk Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

LGTM!

github run

@github-actions

Copy link
Copy Markdown
Contributor

cf --help startup

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.

@petebacondarwin
petebacondarwin added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 579a3b0 Oct 12, 2026
12 checks passed
@petebacondarwin
petebacondarwin deleted the codex/fix-94-noninteractive-abort branch October 12, 2026 12:19
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.

workflows delete exits 0 when noninteractive confirmation aborts the operation

2 participants