A pi ui.custom overlay leaks chat text beside it when it is narrower than the terminal
PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
Chat and editor text shows on both sides of the panel.
Cause#
The panel rows were already opaque. The bleed came from an overlay only 100 columns wide, so base-screen text showed beside it.
Fix#
- Make the overlay full terminal width and center the panel inside it, with a framed panel and a clamped height.
- Reproduce on a busy screen (a seeded session with about 80 long chat lines); a nearly empty tmux screen hides it.
- A "no base text through panel rows" test passes on the broken code, so also assert the overlay width.
Evidence#
Found during the rvow pi status pane work on 2026-10-02, from the session notes. This corrects an earlier note that blamed a missing background.
Also found by searching
- pi ui.custom overlay shows chat and editor text beside the panel
- text leaks around a pi overlay narrower than the terminal
- how do I make a pi overlay cover the screen
- overlay test passes but the overlay still bleeds