Skip to content

Avoid repainting static TUI frames - #1196

Merged
edwin-zvs merged 1 commit into
mainfrom
optimize-idle-tui-redraw
Aug 3, 2026
Merged

Avoid repainting static TUI frames#1196
edwin-zvs merged 1 commit into
mainfrom
optimize-idle-tui-redraw

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary:

  • decouple the 120 ms maintenance tick from full-frame terminal redraws
  • keep visible spinners, rain, transitions, previews, shimmer, and suggestion animations at their existing cadence
  • refresh active token rates once per second and quiet wall-clock content once per minute
  • expire transient UI state without skipping hydration, resize, search, or reconnect housekeeping
  • document the redraw contract in spec 0187

Validation:

  • cargo check -p construct-cli
  • cargo test -p construct-cli -- --skip empty_tui_renders_welcome_and_modeline_hint --skip modeline_tour_hint_clickable_only_in_empty_state --skip tour_cta_dims_and_loses_zone_while_tour_active --skip truecolor_backend_still_emits_rgb (1356 passed plus reconnect)
  • cargo build

The four excluded tests are environment-sensitive in this workspace: three read persisted tutorial state, and one depends on shared terminal color state. Targeted redraw and token-meter regression tests pass.

@edwin-zvs
edwin-zvs merged commit 4d37dfc into main Aug 3, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the optimize-idle-tui-redraw branch August 3, 2026 15:37
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