Buggy rendering when resizing panes
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
wezterm 20250320-072107-a8735851
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
When resizing the prompt will consistently behave unexpectedly, disappear, duplicate and offset. Sometimes similar things happen with other content displayed as well.
https://github.com/user-attachments/assets/c66591a1-4ff1-4de4-b722-c5eed1ce2acc https://github.com/user-attachments/assets/2229fc46-1ad0-4999-99e3-46fe29728b4d https://github.com/user-attachments/assets/ea5b67bc-18d9-45e4-947f-921d17ee5d56
To Reproduce
- Install wezterm
- Split the screen
- Resize the pane.
Configuration
no config
Expected Behavior
The content should move with the window without scrolling, duplicating or disappearing.
Logs
Debug Overlay wezterm version: 20250320-072107-a8735851 x86_64-pc-windows-msvc Window Environment: Windows Lua Version: Lua 5.4 OpenGL: AMD Radeon(TM) Graphics 4.5.0 Core Profile Context 22.20.44.221025 Enter lua statements or expressions and hit Enter. Press ESC or CTRL-D to exit
Anything else?
I've tested with and without configuration files both in wezterm and for powershell and the issue is consistent.
It happens on both release and nightly release, and I confirmed the behavior on powershell 7.5.0 and cmd, but there seems to be subtle differences between them.
When it comes to the movement of content outside of the prompt, nightly release seems a bit more stable.
Same issue on my side, when resizing the panel or the window, text rendering is broken and cursor is misplaced I am almost sure the issue is in wezterm, because in Windows Terminal this issue on resize is not reproduced
same issue here on a silicon mac. played around a lot with the wezterm config. especially "config.front_end ="
Same happens when you resize WezTerm window itself as well.
I did some light testing and the duplication issues seem a lot better (for me on windows at least). While it does still scroll out of view and create some remaining artifacts sometimes it's a lot less chaotic. I'm not sure if it's the same across other platforms though.
Same issues here on Windows 11. It's caused by:
- Panes resizing
- Panes closing or opening (when the other pane has already text)
- Resizing Wezterm itself
Many times the cursor goes out of place, over already rendered text, or below the cursor leaving space in between. The bugs happen pretty consistently on all these actions.
https://github.com/user-attachments/assets/c6c2c529-c7d2-456c-ae3d-6baa2ddadcf2