Skip to content

fix(tui): cap rendered event widgets#760

Open
cyq1017 wants to merge 1 commit into
OpenHands:mainfrom
cyq1017:codex/fix-352-render-event-cap
Open

fix(tui): cap rendered event widgets#760
cyq1017 wants to merge 1 commit into
OpenHands:mainfrom
cyq1017:codex/fix-352-render-event-cap

Conversation

@cyq1017

@cyq1017 cyq1017 commented May 28, 2026

Copy link
Copy Markdown

Summary

  • cap the number of rendered TUI event widgets so long chats do not keep growing the live render tree
  • show a small "older events hidden" indicator when old widgets are pruned
  • share render-cap and pending-action state between parent and sub-visualizers that use the same container

Fixes #352.

Notes

This keeps the first fix intentionally narrow: it adds a default cap and indicator, but does not add pagination, configuration, or loading older pruned events back into the viewport.

Testing

  • PATH=$HOME/.local/bin:$PATH uv run ruff check tests/tui/widgets/test_richlog_visualizer.py
  • PATH=$HOME/.local/bin:$PATH uv run pytest tests/tui/widgets/test_richlog_visualizer.py
  • git diff --check

@cyq1017 cyq1017 force-pushed the codex/fix-352-render-event-cap branch from cf1810f to eaa2b87 Compare May 29, 2026 01:27
@cyq1017 cyq1017 marked this pull request as ready for review May 29, 2026 01: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.

[CLI] UI performance: cap number of events rendered (input lag on long chats)

1 participant