Open jnystad opened 5 months ago
This behaviour is driving me nuts too!
I'll be reading through some logs and without warning the scroll position shoots straight to the top. It's like playing a game of Perfection with cmd+c when I need to copy some log data to share.
Expected Behavior
Scroll (line) position is preserved (if possible), even when truncating logs.
Current Behavior
When
LogStore
triggersensureMaxLength
, and the log size is larger than max allowed, theLogUpdateAction.truncate
is invoked, causing aresetRender
inOverviewLogPane
. This also resets the scroll position to start of logs when browsing the logs.Steps to Reproduce
Context
tilt doctor
OutputAbout Your Use Case
This makes log inspecting in tilt dashboard quite frustrating, and somewhat useless for containers with high log output.
Might be the cause of or related to #6096