Skip to content

Hoisted bash tool doesn't render \r\n correctly #245

Description

@tenshiak

Short description

only \n's are rendered in the bash tool, and that malforms the display output

What happened?

Regular pi's bash tool

Image

aft's hoisted bash

Image

This is a screenshot of the same tool call, just reloaded pi after enabling/disabling the hoisting in the configuration.

Bash output renderer mishandles Windows-style CRLF line endings (\r\n). It splits output on \n but leaves the trailing \r in each affected line, and the TUI interprets that carriage return during rendering, causing those lines to be visually overwritten or disappear. The captured tool output itself is still correct; only the displayed rendering is broken.

Pi also had this issue before, the fix was to normalize the display text newlines to \n: lmn451/pi-mono@c3aefbb

The exact command I told the agent to run: printf 'Exception:\nShouldly.ShouldAssertException: 1\r\n should be\r\n0\r\n but was not\n'

Diagnostics

Plugin version

0.51.2

AFT binary version

No response

Platform

Linux x64

Log output (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions