Skip to content

Gallery runner: cap its stderr drain with the shared per-line reader (missed #472 merge) - #475

Merged
Linuxuser67 merged 2 commits into
mainfrom
feature/runner-drain-cap
Oct 19, 2026
Merged

Linuxuser67 merged 2 commits into
mainfrom
feature/runner-drain-cap

Conversation

@Linuxuser67

Copy link
Copy Markdown
Owner

Cherry-pick of the review follow-up from feature/gallery-followups (1ea2799), which was created after #472 was merged at 21ebbf5 — so it never reached main.

What

  • The runner's own stderr drain (gallery_runner.rs) now reads through the shared read_capped_line / MAX_JSONL_LINE_BYTES (made pub(crate) in gallery_probe.rs), same loop shape as the probe's spawn_stderr_tail: over-cap or error stops tail updates instead of letting one hostile multi-MiB stderr line inflate the diagnostic ring.
  • echo_line, the 20-line ring and all failure-tail semantics are unchanged; only the per-line ceiling is added.

This was the single REQUIRED item from the independent #472 review; the rest of that verdict was verified there.

@Linuxuser67
Linuxuser67 merged commit a331780 into main Oct 19, 2026
5 checks passed
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