mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
* Keep console annotator state across empty progressive log chunks The streaming progressiveHtml response only includes consoleAnnotator in its metadata when there is new text to render. When a poll returns no new output, the client overwrote its stored state with undefined and stopped sending X-ConsoleAnnotator, so every later chunk was rendered by a fresh annotator: AnsiColor escapes appeared raw and Timestamper formatting was lost until the page was reloaded. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Compare offsets to detect an empty chunk and add a test An empty chunk is one where the requested start equals the returned end, which does not depend on how the annotator state is transported. Adds src/test/js/progressive-text.test.js covering both an empty poll and a poll with new output. Co-authored-by: Jakob Ackermann <17931887+das7pad@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Jakob Ackermann <17931887+das7pad@users.noreply.github.com> Co-authored-by: Kris Stern <88480540+krisstern@users.noreply.github.com>