pi-agent: Implement final TUI hardening
This commit is contained in:
@@ -60,7 +60,7 @@ func (p terminalPresentation) renderTargetListPane(state dashboardRenderState, w
|
||||
if selectedIndex >= bodyHeight {
|
||||
offset = selectedIndex - bodyHeight + 1
|
||||
}
|
||||
body := fixedViewport(strings.Join(lines, "\n"), width, bodyHeight, offset, false)
|
||||
body := fixedViewport(protectRenderedText(strings.Join(lines, "\n")), width, bodyHeight, offset, false)
|
||||
return fitPane(heading+"\n"+paneRule(width)+"\n"+body, width, height)
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ func (p terminalPresentation) targetDetails(item app.TargetSnapshot) string {
|
||||
if item.Description.Details != "" {
|
||||
fmt.Fprintf(&details, "\n\n%s", item.Description.Details)
|
||||
}
|
||||
return details.String()
|
||||
return protectRenderedText(details.String())
|
||||
}
|
||||
|
||||
func (p terminalPresentation) stateCountSummary(snapshot app.Snapshot) string {
|
||||
|
||||
Reference in New Issue
Block a user