feat(tui): add focused reader for completed responses - #181
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a full-screen “Response Reader” overlay in the Rust TUI so users can open completed assistant responses in a focused Markdown view with navigation, search, copy, and a clear return path, while also surfacing a per-response rendered line count in the transcript.
Changes:
- Introduces
ResponseReaderState+ renderer to display completed assistant text in a centered overlay. - Adds a transcript footer (“Response · N lines · Enter to read”) for completed assistant messages with visible text, and routes
Enterto open the reader when the prompt is empty. - Integrates reader lifecycle with app event handling (blocking submit while open, closing on new streaming turn) and adds focused tests + a design spec.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src-rust/crates/tui/src/response_reader.rs | New overlay state + renderer for reading completed assistant responses (with tests). |
| src-rust/crates/tui/src/render.rs | Adds transcript footer + renders the reader overlay (with tests for footer targeting/line counts). |
| src-rust/crates/tui/src/lib.rs | Exposes the new response_reader module. |
| src-rust/crates/tui/src/app.rs | Adds reader state to App, routes keys (Enter/search/copy/nav), blocks submit while open, and adds tests. |
| src-rust/crates/cli/src/main.rs | Routes empty-prompt Enter through App so the reader open behavior works in interactive mode. |
| docs/superpowers/specs/2026-08-15-transcript-response-reader-design.md | Design/spec doc for behavior, scope, and validation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…able after replace_messages Co-authored-by: BunsDev <68980965+BunsDev@users.noreply.github.com>
Co-authored-by: BunsDev <68980965+BunsDev@users.noreply.github.com>
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
Test plan
cargo test -p claurst-tui --quietcargo clippy -p claurst-tui --all-targets -- -D warningscargo fmt --checkgit diff --check