Tilt WebUI keeps flickering and scrolling to the top of the resource log history
Expected Behavior
When nothing is changing in the resource and no new logs are generated, Tilt should not visually flicker or move the scroll position in the resource log window.
Current Behavior
Every ~1sec, the entire resource log panel flickers and snaps the scroll position to the top of the window or the bottom of the window.
Steps to Reproduce
I am not sure how easy this will be for others, but here is what I have
- Create a tiltfile that includes a
docker_buildand uses docker_compose or kustomize to deploy resources (not sure if this is relevant). tilt up- Go to the list-view of resources and scroll to the middle of a resource log.
- Wait a few seconds and watch the scroll bar snap to the top of the log history.
Context
tilt doctor Output
Tilt: v0.32.0, built 2023-03-13
System: linux-amd64
---
Docker
- Host: unix:///var/run/docker.sock
- Server Version: 20.10.23+azure-2
- API Version: 1.41
- Builder: 2
- Compose Version: v2.16.0 (build azure-2)
---
Kubernetes
- Env: kind
- Context: kind-kerfed
- Cluster Name: kind-kerfed
- Namespace: default
- Container Runtime: containerd
- Version: v1.25.2
- Cluster Local Registry: &RegistryHosting{Host:localhost:5863,HostFromClusterNetwork:kerfed-registry:5000,HostFromContainerRuntime:,Help:https://github.com/tilt-dev/ctlptl,SingleName:,}
---
Thanks for seeing the Tilt Doctor!
Please send the info above when filing bug reports.
The info below helps us understand how you're using Tilt so we can improve,
but is not required to ask for help.
---
Analytics Settings
--> (These results reflect your personal opt in/out status and may be overridden by an `analytics_settings` call in your Tiltfile)
- User Mode: default
- Machine: anon
- Repo: 1kUo2fc12eYQzafhxY0yhw==I am viewing the WebUI in Chrome for Linux Version 112.0.5615.49 (Official Build) (64-bit).
There are no outputs or errors in the browser console window as this is occurring.
About Your Use Case
This is a major usability problem for me as I can't really view logs at all, and the constant flickering means I have to minimize the Tilt window because it causes me eye strain.
It looks like the underlying issue is that for a small number of frames, the logs are completely cleared and then refilled again, which I can see in the Chrome performance profiler:

Source: tilt-dev/tilt