Skip to content

fix(tui): preserve complete agent output - #1

Merged
lg2m merged 2 commits into
mainfrom
fix/dev-724-tui-output-visibility
Jul 31, 2026
Merged

lg2m merged 2 commits into
mainfrom
fix/dev-724-tui-output-visibility

Conversation

@lg2m

@lg2m lg2m commented Jul 31, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the complete persisted assistant message instead of discarding its prefix
  • render oversized completed messages through a bounded one-pass sparse viewport index
  • expose call-only and active multi-turn tool work in Threadline and Fold/Focus
  • preserve scroll anchors across live completion, older history, and overlays
  • bound adversarial zero-width virtual rows and avoid combined output/refusal copies

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 -- --check
  • cargo test --workspace --quiet — 565 passed, 2 deliberate ignored timing tests
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo build --workspace
  • git diff --check origin/main...HEAD
  • independent final review: PASS, no blocking or important findings

The PR also contains a separate formatting-only commit for pre-existing rustfmt drift in qq-provider/http.rs and qq-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

lg2m added 2 commits July 30, 2026 17:20
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
@lg2m
lg2m merged commit ff8da0d into main Jul 31, 2026
2 checks passed
@lg2m
lg2m deleted the fix/dev-724-tui-output-visibility branch July 31, 2026 00:29
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.

1 participant