Skip to content

Prefer child exit status over clipboard broken pipe#20

Merged
OneNoted merged 1 commit intomainfrom
main-ci-fix
Apr 15, 2026
Merged

Prefer child exit status over clipboard broken pipe#20
OneNoted merged 1 commit intomainfrom
main-ci-fix

Conversation

@OneNoted
Copy link
Copy Markdown
Owner

Summary

  • normalize the clipboard failure path when the child exits before stdin is fully consumed
  • prefer the child process's non-zero exit when it explains the failure more accurately
  • keep the inject test deterministic on CI

Verification

  • cargo test inject::tests:: -- --nocapture
  • cargo fmt --all -- --check
  • cargo check --all-targets
  • cargo clippy --all-targets -- -D warnings
  • cargo test

Follow-up to restore green main CI after the merged stack.

Normalize the clipboard error path so an early child exit that closes stdin reports the child's non-zero status when available instead of racing into a less useful broken-pipe error.

Constraint: Success-path clipboard writes must keep failing fast on real stdin write errors
Rejected: Keep treating every broken pipe as the primary failure | hides the child's actual non-zero exit in CI
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: When a child process can exit before stdin is fully written, prefer the final process status if it explains the failure more accurately
Tested: cargo test inject::tests:: -- --nocapture; cargo fmt --all -- --check; cargo check --all-targets; cargo clippy --all-targets -- -D warnings; cargo test
Not-tested: GitHub Actions rerun still pending
@OneNoted OneNoted merged commit 9da39e9 into main Apr 15, 2026
3 checks passed
@OneNoted OneNoted deleted the main-ci-fix branch April 15, 2026 09:54
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