Skip to content

fix(tui): wake rendering on input and stream events - #401

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/tui-stream-input-latency
Aug 19, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/tui-stream-input-latency

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • replace foreground sleep-driven polling with wake-driven terminal input and model stream events
  • keep Ratatui rendering on its existing owner while reading Crossterm events from an isolated blocking reader
  • render same-width streaming Markdown updates immediately and debounce only resize reflow
  • preserve responsive cancellation and application services during model, tool, and compaction work

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --all-targets --locked
  • PTY: 160 queued characters visible at the first 20 ms sample during processing; active response changed across 39 of 40 consecutive captures; resize and focus navigation remained responsive

@github-actions
github-actions Bot enabled auto-merge (squash) August 19, 2026 01:20
@github-actions
github-actions Bot merged commit 6461b26 into main Aug 19, 2026
8 checks passed
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