Skip to content

Commit b26897f

Browse files
authored
fix(tui): render thinking preview markdown and stabilize activity rows (#200)
* fix(tui): render thinking preview markdown * fix(tui): bound thinking-preview comment regex * fix(tui): keep activity rows visually stable * docs(tui): changelog and design for clean activity rendering * perf(tui): cache rendered thinking-preview markdown across live ticks The markdown render + regex parse for the thinking preview can run many times per second on Live refresh ticks when no new content has arrived. Introduce a cache key (the preview string) so markdown parsing only runs when the pending thinking text actually changes, not on every spinner animation. Includes tests verifying cache behavior and output equivalence. * test(tui): freeze clock in thinking-preview cache equivalence test The output-equivalence test compared full Console.export_text() across two compose() calls, whose status line embeds elapsed time and token rate. Freeze time.monotonic so the two renders are deterministic and only the cached preview governs the comparison; guards against a rare timing-boundary flake.
1 parent 595aa49 commit b26897f

8 files changed

Lines changed: 754 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ GitHub Releases page; `0.8.0` is the new starting line.
1515

1616
## Unreleased
1717

18+
- **Thinking and subagent activity now render cleanly in the terminal.** Live reasoning previews
19+
render complete Markdown without exposing top-level HTML comments, activity-tree rows remain
20+
visually stable, and the coral shimmer is reserved for the active verb spinner.
21+
1822
## 0.57.0 (2026-07-05)
1923

2024
- **No more ghost/duplicate input prompt while the agent works.** After

docs/en/release-notes/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ GitHub Releases page; `0.8.0` is the new starting line.
1717

1818
## Unreleased
1919

20+
- **Thinking and subagent activity now render cleanly in the terminal.** Live reasoning previews
21+
render complete Markdown without exposing top-level HTML comments, activity-tree rows remain
22+
visually stable, and the coral shimmer is reserved for the active verb spinner.
23+
2024
## 0.57.0 (2026-07-05)
2125

2226
- **No more ghost/duplicate input prompt while the agent works.** After

0 commit comments

Comments
 (0)