The background task output viewer currently renders raw output line-by-line, truncating long lines and ignoring ANSI/markdown formatting. It also shows oldest output first, forcing the user to scroll to the bottom to see the latest progress.
We fixed this in our fork by rendering the body through pi-tui's Markdown component (using the same theme as assistant messages), which gives markdown/ANSI formatting, code blocks, and line wrapping. We also reversed the default line order so the latest output appears at the top and the view stays pinned there as new output arrives.
Commit with the fix: thecannabisapp@0d175936
If the maintainers want to merge this, the key changes are in apps/kimi-code/src/tui/components/dialogs/task-output-viewer.ts and its tests.
The background task output viewer currently renders raw output line-by-line, truncating long lines and ignoring ANSI/markdown formatting. It also shows oldest output first, forcing the user to scroll to the bottom to see the latest progress.
We fixed this in our fork by rendering the body through pi-tui's
Markdowncomponent (using the same theme as assistant messages), which gives markdown/ANSI formatting, code blocks, and line wrapping. We also reversed the default line order so the latest output appears at the top and the view stays pinned there as new output arrives.Commit with the fix: thecannabisapp@0d175936
If the maintainers want to merge this, the key changes are in
apps/kimi-code/src/tui/components/dialogs/task-output-viewer.tsand its tests.