Repository navigation
fix(tui): separate mixed thought and tool activity details - #837
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewReviewed the PR diff for Files Reviewed (2 files)
Previous Review Summary (commit b1df720)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit b1df720)Status: No Issues Found | Recommendation: Merge OverviewReviewed the PR diff for Files Reviewed (2 files)
Reviewed by free · Input: 138.3K · Output: 9.5K · Cached: 1.3M |
Issue for this PR
Closes #816.
Type of change
What does this PR do?
Leave one blank terminal row between semantic detail units in an expanded activity block that mixes reasoning and tools. Keep the header adjacent to the first detail, tool-only groups compact, and the existing preview contents and indent.
Two files change: the session route and its mounted activity-padding tests. The existing keyed part flow is retained. This does not redesign #792 or change other transcript spacing.
How did you verify your code works?
At f532079 on base 7b84622, Bun 1.3.14 focused activity-padding tests pass: 29 tests, 200 expectations. With only the route fix reverted, 6 tests fail and 23 pass. Mounted normal (130-column) and narrow (80-column) cases cover Thought, a three-of-fifteen-line Write preview, Thought, failed Edit, Thought, plus expansion/collapse and error details.
Before/after mounted-renderer PNGs were visually inspected. A separate real Linux PTY check used the real Session fixture and CLI renderer at 130 and 80 columns, captured the ANSI stream and inspected its terminal-emulated pixels. This used synthetic data, no model or network calls. No local root typecheck was run; exact-head CI typecheck is green. Linux/Windows unit CI and covered review remain merge requirements.
Screenshots / recordings
Normal/narrow before/after PTY frames and mounted error frames were visually inspected. Preview syntax colors, three-line contents, indent and semantic boundaries are preserved. Toggle/error clicks are covered by mounted tests, not by the PTY capture. No live Windows or model-generation testing is claimed.
Checklist