Registry Mirror
Skip to content

Conversation

@0xferrous

Copy link
Copy Markdown
Contributor

When Hunk wrote a large plain-text document through process.stdout, Bun could report success before all of the data had reached the pipe. Hunk then called process.exit(0), discarding the unwritten remainder. Large output was silently truncated for commands such as Git, LazyGit, and hunk pager | less.

Write directly to stdout's file descriptor and keep writing until all bytes are delivered. Treat EPIPE as a normal early exit when a downstream command stops reading, such as hunk pager | head.

@greptile-apps

greptile-apps Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

@0xferrous is attempting to deploy a commit to the Modem Team on Vercel.

A member of the Team first needs to authorize it.

@benvinegar

Copy link
Copy Markdown
Member

Good find, thank you!

@benvinegar
benvinegar enabled auto-merge (squash) September 23, 2026 16:54
@0xferrous

Copy link
Copy Markdown
Contributor Author

failure seems unrelated

When Hunk wrote a large plain-text document through process.stdout, Bun could
report success before all of the data had reached the pipe. Hunk then called
process.exit(0), discarding the unwritten remainder. Large output was silently
truncated for commands such as Git, LazyGit, and `hunk pager | less`.

Write directly to stdout's file descriptor and keep writing until all bytes are
delivered. Treat EPIPE as a normal early exit when a downstream command stops
reading, such as `hunk pager | head`.
@benvinegar
benvinegar force-pushed the fix-hunk-git-pager-epipe branch from 2cf40a1 to 440297f Compare October 11, 2026 21:10
@benvinegar

Copy link
Copy Markdown
Member

Reviewed and rebased onto current main (e5f4a05c), then force-pushed with an explicit lease. No additional code changes were needed. The previous Linux CI failure was in the add-note navigation UI test; the full suite passes after rebasing.

Validation: bun run typecheck, bun run lint, bun run format:check, bun run deps:check, bun run test, bun run test:integration, and the focused pager/stdout/CLI tests all pass on Linux. New fork workflow runs have been approved. Vercel reports a separate deployment authorization requirement.

This comment was generated by Pi using gpt-6.1-sol

@benvinegar
benvinegar merged commit 606a3dc into modem-dev:main Oct 11, 2026
14 of 15 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