Skip to content

fix: give stdout and stderr their own output byte budget - #1158

Open
kishore280 wants to merge 1 commit into
Nano-Collective:mainfrom
kishore280:fix/1140-bash-output-budget
Open

fix: give stdout and stderr their own output byte budget#1158
kishore280 wants to merge 1 commit into
Nano-Collective:mainfrom
kishore280:fix/1140-bash-output-budget

Conversation

@kishore280

Copy link
Copy Markdown
Contributor

Fixes #1140.

stdout and stderr shared one byte counter and one truncation flag. A noisy stderr could exhaust the shared budget first, silently dropping stdout data after that point with no marker at all - the caller had no way to know anything was cut.

Split into two independent pairs, one per stream. Each stream's truncation now depends only on its own volume, and gets its own marker when it happens.

Ran: test:ava on bash-executor.spec.ts (two new tests, one per direction), test:types, test:lint, test:format, test:changesets.

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.

[Bug] bash-executor.ts shared outputBytes budget between stdout and stderr

1 participant