Skip to content

fix(tui): prevent implicit wrapping from scrolling streaming frames - #690

Merged
huichen merged 3 commits into
mainfrom
fix/tmux-stream-scroll
Sep 17, 2026
Merged

huichen merged 3 commits into
mainfrom
fix/tmux-stream-scroll

Conversation

@huichen

@huichen huichen commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Disable terminal autowrap while painting full, differential, and shrink frames; restore it before synchronized output ends.
  • Keep explicit CRLF line advances, while preventing tmux/renderer character-width differences from adding extra rows and scrolling the screen during streaming.
  • Add regression coverage for initial paint, streaming diff, forced redraw, content shrink, and deleted-tail rendering.

Validation

  • Reproduced unintended scrolling in isolated tmux 3.6a using ⭐ (renderer width 1, tmux width 2).
  • Replayed actual renderer output into an isolated tmux session: surrounding rows and cursor matched across all five frame paths.
  • cargo fmt -p future-tui --check
  • cargo clippy -p future-tui --all-targets -- -D warnings
  • cargo test -p future-tui --quiet: 856 unit + 13 integration tests passed.

Notes

  • No new dependencies or changes to normal content scrolling.
  • If terminal width tables disagree, an overwide line is clipped at the right edge rather than moving subsequent rows.

@huichen
huichen enabled auto-merge (squash) September 17, 2026 04:24
@huichen
huichen merged commit 19339fd into main Sep 17, 2026
12 checks passed
@huichen
huichen deleted the fix/tmux-stream-scroll branch September 17, 2026 04:29
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