Skip to content

Bound TUI live preview rendering work - #347

Merged
yottadynamics merged 1 commit into
mainfrom
worktree-tui-preview-performance
Sep 14, 2026
Merged

yottadynamics merged 1 commit into
mainfrom
worktree-tui-preview-performance

Conversation

@yottadynamics

Copy link
Copy Markdown
Owner

Summary

Bound TUI rendering work to the content that can actually be displayed:

  • cap live reasoning and response preview processing to a bounded tail instead of re-wrapping the full accumulated stream on every token
  • wrap only a cursor-centered window for very large prompt pastes
  • track buffered code-block and table line counts incrementally instead of rescanning buffers
  • keep the original full prompt and response content intact

The performance assertions use structural bounds rather than wall-clock thresholds, avoiding loaded-runner flakes.

Related issue

No issue filed. Extracted as a focused change from local deadlock investigation work.

How was this tested?

  • go test ./...
  • go vet ./...
  • LSP diagnostics for all four changed Go files: clean

Regression tests cover huge single-line prompts, many-line prompts, incremental large streams, and code/table counter reset behavior.

Checklist

  • go test ./... passes
  • go vet ./... is clean
  • govulncheck ./... reports no reachable vulnerabilities
  • Tests added or updated — a new capability ships with tests, a bug fix ships with a regression test
  • Docs updated in the same change if behavior or surface changed (relevant docs/ guide)
  • PR is focused on one logical change

Drafted with yottacode

Co-authored-by: yottacode <325888353+yottacode-agent@users.noreply.github.com>
@yottadynamics
yottadynamics merged commit a080350 into main Sep 14, 2026
7 checks passed
@yottadynamics
yottadynamics deleted the worktree-tui-preview-performance branch September 14, 2026 18:17
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