Skip to content

fix cli scroll flicker#220

Closed
buffpesos wants to merge 1 commit intovirattt:mainfrom
buffpesos:fix/scroll-flicker
Closed

fix cli scroll flicker#220
buffpesos wants to merge 1 commit intovirattt:mainfrom
buffpesos:fix/scroll-flicker

Conversation

@buffpesos
Copy link
Copy Markdown

Summary

  • stop rebuilding the full CLI transcript on every agent state change by syncing chat history incrementally
  • keep the main view mounted during normal operation and only re-render the overlay layer when selection or approval UI is active
  • remove the timer-driven tool and working-indicator spinners so scrolling is not fighting 80ms redraws

Root cause

The CLI was clearing and rebuilding large parts of the pi-tui tree during live updates, and two animated indicators were still forcing continuous renders. That combination caused severe flicker while scrolling because the terminal kept repainting active lines instead of only reacting to real state changes.

Validation

  • bun run typecheck
  • bun test

✅ tested on macos

@buffpesos buffpesos closed this Apr 3, 2026
@buffpesos buffpesos deleted the fix/scroll-flicker branch April 3, 2026 21: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