Skip to content

fix: avoid panic when command output is piped#206

Merged
bradhe merged 1 commit intotower:developfrom
burakdede:fix/issue-162-broken-pipe
Feb 26, 2026
Merged

fix: avoid panic when command output is piped#206
bradhe merged 1 commit intotower:developfrom
burakdede:fix/issue-162-broken-pipe

Conversation

@burakdede
Copy link
Contributor

Fixes #162. It seems like unwrap() usage panicking when downstream command pipe is closed/broken. This catches BrokenPipe explicitly and gracefully exits with 0.

@coderabbitai
Copy link

coderabbitai bot commented Feb 23, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@bradhe bradhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @burakdede -- this is great! I'll keep it open for a day or so then land it!

@bradhe bradhe merged commit af8ab65 into tower:develop Feb 26, 2026
30 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.

2 participants