Skip to content

fix(input): allow canceling confirmation input using context#212

Merged
water-sucks merged 1 commit intonix-community:mainfrom
water-sucks:handle-confirmation-input-cancellation
Apr 5, 2026
Merged

fix(input): allow canceling confirmation input using context#212
water-sucks merged 1 commit intonix-community:mainfrom
water-sucks:handle-confirmation-input-cancellation

Conversation

@water-sucks
Copy link
Copy Markdown
Collaborator

The confirmation input would hang due to a blocking read on stdin, similar to the previous password reading behavior.

This PR makes the confirmation input function cancellable by duplicating the stdin file handle.

@water-sucks water-sucks force-pushed the handle-confirmation-input-cancellation branch from c708cfc to 05083e1 Compare April 5, 2026 07:21
@water-sucks water-sucks enabled auto-merge (rebase) April 5, 2026 07:22
@water-sucks water-sucks merged commit 6947532 into nix-community:main Apr 5, 2026
2 checks passed
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