Commit 576a0ec
fix(backend): align DeriveAgentStatus tail buffer with scanner max line size
CodeRabbit correctly identified that DeriveAgentStatus was reading only 64KB
from the file tail, which could truncate large events now that scannerMaxLineSize
is 10MB. This would cause JSON parsing failures and return empty status.
Changes:
- Increase maxTailBytes from 64KB to 2x scannerMaxLineSize (20MB)
- This ensures we can read at least one complete max-sized event plus additional
events for proper status derivation
- Keeps the value in sync with scannerMaxLineSize for future changes
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 10c85fe commit 576a0ec
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
0 commit comments