Keep streamed command output bounded in the TUI - #34359
Merged
copyberry[bot] merged 1 commit intoJul 20, 2026
Merged
Conversation
## Why Large command streams, including commands that never emit a newline, can make an active TUI cell grow without bound. ## What changed - Retain live output in full up to 1 MiB, then preserve the first and last 50 completed lines plus the current partial line. - Bound individual long lines while preserving UTF-8 boundaries, visible head and tail content, and ANSI rendering around omission markers. - Show omitted line and byte counts in previews and transcripts. Final command output still replaces the bounded live preview when execution completes. ## Testing Added unit and snapshot coverage for chunk boundaries, split CRLF sequences, newline-free and UTF-8 output, truncated ANSI sequences, retained-output limits, and preview and transcript rendering. GitOrigin-RevId: 3cf3cc862db686f20ac09b1f6e7f9dc6d264e6eb
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/3cf3cc862db686f20ac09b1f6e7f9dc6d264e6eb
branch
from
July 20, 2026 14:45
e50dc4a to
ef6b597
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/3cf3cc862db686f20ac09b1f6e7f9dc6d264e6eb
branch
July 20, 2026 14:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep streamed command output bounded in the TUI
Why
Large command streams, including commands that never emit a newline, can make an active TUI cell grow without bound.
What changed
Testing
Added unit and snapshot coverage for chunk boundaries, split CRLF sequences, newline-free and UTF-8 output, truncated ANSI sequences, retained-output limits, and preview and transcript rendering.