mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[PR #166] [MERGED] fix(tui): sanitize carriage returns in streamed output #174
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/166
Author: @mikeyobrien
Created: 2/7/2026
Status: ✅ Merged
Merged: 2/8/2026
Merged by: @mikeyobrien
Base:
main← Head:fix/164-tui-rendering-worktrees-submodules📝 Commits (2)
7770061fix(tui): sanitize carriage returns in streamed outputc8860ectest(web): deflake port availability test📊 Changes
2 files changed (+101 additions, -5 deletions)
View changed files
📝
crates/ralph-adapters/src/stream_handler.rs(+85 -4)📝
crates/ralph-cli/src/web.rs(+16 -1)📄 Description
Fixes TUI display corruption when streamed output contains carriage returns (\r), which is common for progress renderers (git submodule, cargo, etc.).\n\nChanges:\n- Sanitize block text before converting to ratatui Lines (normalize CRLF/CR, drop a few unsafe control chars)\n- Sanitize inline non-text strings (tool summaries/results/errors) to guarantee single-line rendering\n- Remove embedded newline from TuiStreamHandler error line\n\nRepro: custom backend emitting progress updates with "...\r" in a tmux session caused newline/rendering breakage.\n\nCloses #164.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.