Skip to content

perf(tui): add the reviewed adaptive stream pacer - #150

Merged
akougkas merged 2 commits into
mainfrom
perf/032-stream-pacer
Aug 20, 2026
Merged

perf(tui): add the reviewed adaptive stream pacer#150
akougkas merged 2 commits into
mainfrom
perf/032-stream-pacer

Conversation

@akougkas

Copy link
Copy Markdown
Contributor

Summary

  • add terminal.smoothStreaming with off, auto, and on modes while keeping off as the exact current coalescer behavior
  • pace only canonical derived visible text and thinking through one ordered generation queue
  • make boundary flushing and final-frame settlement awaitable, grapheme-safe, deadline-aware, and backpressure-aware
  • conservatively bypass pacing for non-TTY, accessibility, low-motion, unsafe terminal, and observed-backpressure cases
  • document config and environment precedence and add deterministic clock, ordering, abort/retry, folded-thinking, resize/scroll, final-frame, slow-output, and PTY contracts

Stack

Depends on the corrected frame instrumentation in the foundations PR. The instant-shell work is intentionally excluded and follows in a separate PR.

Validation

The complete stack passes typecheck, lint, build, 4,241 core tests, coverage, ci, ci:release, corrected PTY harnesses, and supported Node 22/24 runs.

@akougkas
akougkas force-pushed the perf/032-stream-pacer branch from 061cdf6 to c78fa03 Compare August 20, 2026 08:56
@akougkas
akougkas force-pushed the perf/032-foundations branch from 4bf9a4f to 9a60768 Compare August 20, 2026 09:40
@akougkas
akougkas force-pushed the perf/032-stream-pacer branch from c78fa03 to d536b25 Compare August 20, 2026 09:40
Base automatically changed from perf/032-foundations to main August 20, 2026 09:58
@akougkas
akougkas force-pushed the perf/032-stream-pacer branch from d536b25 to ba843a5 Compare August 20, 2026 09:59
@akougkas akougkas closed this Aug 20, 2026
@akougkas akougkas reopened this Aug 20, 2026
@akougkas
akougkas force-pushed the perf/032-stream-pacer branch from ba843a5 to 822f582 Compare August 20, 2026 10:04
@akougkas
akougkas force-pushed the perf/032-stream-pacer branch from 822f582 to a3ef937 Compare August 20, 2026 10:08
@akougkas
akougkas merged commit 8abf61e into main Aug 20, 2026
2 checks passed
@akougkas
akougkas deleted the perf/032-stream-pacer branch August 20, 2026 10:27
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