Repository navigation
fix(tui): preserve complete agent output - #1
Merged
Merged
Conversation
Keep completed transcript output fully scrollable with bounded sparse rendering, expose active tool work in both layouts, and preserve viewport anchors across completion. Linear: DEV-724
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Design
Small completed messages retain styled Markdown. Oversized messages trade styling for complete access and predictable work: the authoritative protocol snapshot remains the source, checkpoints stay bounded, and only the requested terminal viewport is reconstructed. Live output remains an explicitly marked bounded tail until completion.
Tool calls no longer require an assistant-message anchor, matching the runtime contract for call-only turns. Fold/Focus independently retains the active run when queued prompts follow it.
Verification
cargo fmt --all -- --checkcargo test --workspace --quiet— 565 passed, 2 deliberate ignored timing testscargo clippy --workspace --all-targets --all-features -- -D warningscargo build --workspacegit diff --check origin/main...HEADThe PR also contains a separate formatting-only commit for pre-existing rustfmt drift in
qq-provider/http.rsandqq-provider/openai.rs; the repository-wide required CI gate could not pass without normalizing those two files.Performance
One local release timing run measured approximately 30.7 ms to index a 15.6 MB combined completion, 20.7 microseconds per steady 40-row viewport, 16.3 ms for a 64-message 10 MB snapshot, and 3.6 ms for a 1 MiB zero-width adversarial completion. These are diagnostics, not hard thresholds.
Compatibility
No protocol or persisted-store schema changes. Provider-exposed reasoning remains a separate replay-convergent follow-up.
Linear: DEV-724