Conversation
kmalyjur
requested changes
Aug 27, 2026
kmalyjur
left a comment
Contributor
There was a problem hiding this comment.
Thank you, that's a good idea and it works well. I have some comments.
Right now it polls every one sec, but there could be some kind of "adaptive polling" to reduce the load when the job is running but not producing output.
Simplified "solution" to that:
// In handleSuccess:
const nextInterval = newChunks.length > 0
? OUTPUT_REFRESH_INTERVAL_MS // Got output, stay fast (1s)
: OUTPUT_REFRESH_INTERVAL_MS * 3; // Idle, slow down (3s)
if (data?.refresh) {
timeoutId = setTimeout(poll, nextInterval);
}
Poll the existing per-host output API every second and request only chunks newer than the last displayed timestamp. Preserve split-line normalization, pause hidden or collapsed output, and refresh full details once when the host finishes. Memoize rendered output chunks so long-running jobs only parse newly appended ANSI output. Assisted-By: Codex 5.6 Sol High
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The output for an expanded host is currently refreshed every five seconds by fetching the complete template invocation details. This repeatedly transfers the full accumulated output together with template, task, proxy, and permission data, then parses and renders the entire console again.
Use the existing per-host output API with the
sinceparameter to request only chunks newer than the last displayed timestamp. Poll once per second while the output is open, append new chunks while preserving split lines, pause requests in hidden tabs, and refresh the complete invocation details once after the host finishes.Keep existing output line sets stable and memoize their parsed ANSI output so long-running jobs only process newly appended content.
Tests:
This pull request was assisted by Codex 5.6 Sol High.