Skip to content

feat(tui): render task output with Markdown and latest-at-top #668

@thecannabisapp

Description

@thecannabisapp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions