Skip to content

fix(ui): resume the live log after a full response shrinks - #6045

Open
Aminark wants to merge 1 commit into
codecentric:masterfrom
Aminark:fix/follow-truncated-log-responses
Open

Aminark wants to merge 1 commit into
codecentric:masterfrom
Aminark:fix/follow-truncated-log-responses

Conversation

@Aminark

@Aminark Aminark commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Log tailing already handles servers that return the whole file with HTTP 200 for a range request. After log rotation or truncation, that response can be shorter than the previous poll. The reader kept its old byte offset and displayed nothing until the replacement file grew past the old size.

Reset the read position when the reported size decreases, using the same reset event as an unsatisfiable range. The regression test follows an old log, replaces it with a shorter file, appends another line, and checks that the new lines arrive once and in order.

@Aminark
Aminark requested a review from a team as a code owner November 30, 2026 15:45

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant