charmbracelet/bubbletea

First line not rendering until event happens

Closed this issue · 3 comments

Describe the bug
Just updated to 0.26.1 and noticed that the first line of my UI does not render until an event takes place(keypress, window resize etc). When downgrading to 0.25, everything works correctly, just wondering if something new was introduced/fixed that I need to account for or if this is maybe a regression?

Setup
Please complete the following information along with version numbers, if applicable.

  • OS = macOS
  • Shell = zsh
  • Terminal Emulator = warp
  • Terminal Multiplexer = N/A

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/mistakenelf/fm
  2. Run the app by running make
  3. Noticed that the first line is not rendered until a keypress is made or window is resized
  4. Downgrade to 0.25 of bubbletea, and noticed that it works as expected

Source Code
https://github.com/mistakenelf/fm

Expected behavior
The first line of the UI should render without any actions

Screenshots
Notice that the first line of the filetree and the help screen on the right are not rendering until an action happens

image

Noted, thanks for the report, Tyler. I'm able to reproduce on various terminals on macOS. Just so we can diagnose properly, would you mind posting a screenshot of the actual expected outputs together?

Sure thing, here is what the expected output would look like:

default

Thanks again for reporting this, @mistakenelf — extremely appreciated. @aymanbagabas fixed this like a pro and we're releasing Bubble Tea v0.26.2 with the fix in a few minutes.