Skip to content

fix(tui): sanitize terminal text and avoid ansi leakage#35

Merged
shuyhere merged 1 commit intomasterfrom
fix/tui-sanitize-terminal-text
Apr 12, 2026
Merged

fix(tui): sanitize terminal text and avoid ansi leakage#35
shuyhere merged 1 commit intomasterfrom
fix/tui-sanitize-terminal-text

Conversation

@shuyhere
Copy link
Copy Markdown
Owner

Summary

  • sanitize header/status/footer text before terminal rendering
  • keep read tool previews plain text so raw ANSI parameters do not leak into transcript rows
  • add regression coverage for ANSI leakage in tool preview / fullscreen rendering

Why

This isolates a rendering bugfix from the larger fullscreen and compaction changes.

Files

  • crates/tui/src/utils.rs
  • crates/tui/src/fullscreen/frame/chrome.rs
  • crates/tui/src/tool_preview/results.rs
  • crates/tui/src/tool_preview/tests.rs
  • crates/tui/src/fullscreen/frame/tests.rs

@shuyhere shuyhere merged commit 377b8fc into master Apr 12, 2026
@shuyhere shuyhere deleted the fix/tui-sanitize-terminal-text branch April 12, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant