Skip to content

fix(agent-manager): preserve bounded tail line at exact boundary - #299

Merged
codeaholicguy merged 1 commit into
mainfrom
fix/296-bounded-tail-line-boundary
Sep 29, 2026
Merged

codeaholicguy merged 1 commit into
mainfrom
fix/296-bounded-tail-line-boundary

Conversation

@codeaholicguy

@codeaholicguy codeaholicguy commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #296

Validation

  • Includes regression coverage for exact line-boundary starts and updated bounded-read budget tests.

Risk

  • Bounded reads increase by one byte; the 5 MiB cold-refresh cap assertion was updated accordingly.

…arts on a line boundary (#296)

The bounded cold start always discarded up to the first newline of the
tail window, dropping a complete line when the window started exactly on
its first byte. Start discarding one byte earlier so the preceding byte
decides: a newline ends the discard immediately, anything else drops the
partial line as before. Costs one extra byte read per bounded scan.

Remove the tailWindow() +1-byte workaround from the #279 tests.
@codeaholicguy
codeaholicguy merged commit 4a0b483 into main Sep 29, 2026
7 checks passed
@codeaholicguy
codeaholicguy deleted the fix/296-bounded-tail-line-boundary branch September 29, 2026 14:13
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.

fix(agent-manager): bounded cold-start scan drops a complete line when the tail window starts on a line boundary

1 participant