Skip to content

fix(cli): prevent truncated JSON output when piped - #152

Open
jedisct1 wants to merge 2 commits into
BunnyWay:mainfrom
dip-proto:unbuffered-write
Open

fix(cli): prevent truncated JSON output when piped#152
jedisct1 wants to merge 2 commits into
BunnyWay:mainfrom
dip-proto:unbuffered-write

Conversation

@jedisct1

Copy link
Copy Markdown
Contributor

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

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
@bogdan-at-bunny

Copy link
Copy Markdown

@codex review

@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6c7f840

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@jedisct1

Copy link
Copy Markdown
Contributor Author

Formatting issue was already there, in an unrelated file.

But fixed by the way to make CI happy.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 39f8ff61a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

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.

Piping long JSON output truncates it

2 participants