[PR #5758] fix: ensure installation commands are using .quiet #11572

Closed
opened 2026-02-16 18:16:26 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5758

State: closed
Merged: Yes


Closes #5071
To fix the bug described in the issue, I introduced a small wrapper around Bun.spawn that kind of mimics the Bun.$ interface for the usage patterns (.text() and .throw(false)) related to the two problematic commands (npm list and npm config get registry).
I replaced the $ calls with this wrapper, and as a result the Ctrl+C handling now behaves correctly on Windows: it exits if no input prompt is present, otherwise it deletes the current input.

I placed the wrapper file in the same directory as the affected file to keep it close, since the bug currently impacts only that file. Additionally, the issue may be fixed upstream in Bun, in which case this wrapper would no longer be necessary.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5758 **State:** closed **Merged:** Yes --- Closes #5071 To fix the bug described in the issue, I introduced a small wrapper around `Bun.spawn` that kind of mimics the `Bun.$` interface for the usage patterns (`.text()` and `.throw(false)`) related to the two problematic commands (`npm list` and `npm config get registry`). I replaced the `$` calls with this wrapper, and as a result the Ctrl+C handling now behaves correctly on Windows: it exits if no input prompt is present, otherwise it deletes the current input. I placed the wrapper file in the same directory as the affected file to keep it close, since the bug currently impacts only that file. Additionally, the issue may be fixed upstream in Bun, in which case this wrapper would no longer be necessary.
yindo added the pull-request label 2026-02-16 18:16:26 -05:00
yindo closed this issue 2026-02-16 18:16:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11572