fix(cli): prevent truncated JSON output when piped - #152
Conversation
Write JSON directly to stdout and wait for the write to complete. In Bun, console.log can leave large output truncated when stdout is piped and the CLI process exits before the pipe drains. Fixes BunnyWay#151
|
@codex review |
|
|
Formatting issue was already there, in an unrelated file. But fixed by the way to make CI happy. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Write JSON directly to stdout and wait for the write to complete.
In Bun, console.log can leave large output truncated when stdout is piped and the CLI process exits before the pipe drains.
Fixes #151