roboomp
93f1019ead
fix(coding-agent): extended binary refusal to cover newline-less blobs
...
The streaming reader's NUL check only walked completed lines collected
from streamLinesFromFile, so a binary blob whose first newline lay past
the byte budget (videos, archives, packed JSON) left collectedLines
empty and slipped through to the firstLineExceedsLimit branch — which
emitted the decoded preview as text instead of the intended refusal.
Sniff firstLinePreview alongside collectedLines so the existing refusal
fires uniformly. Also added a regression test that uses a 256 KiB blob
with no 0x0A bytes to actually exercise the firstLineExceedsLimit
path — the previous 6-byte test fit in one collected line and never
covered the bug.
Fixes #3448
2026-06-25 07:58:20 +00:00
..
2026-06-19 04:58:29 +02:00
2026-06-23 01:39:24 +02:00
2026-06-21 04:14:26 +02:00
2026-06-10 11:31:52 +02:00
2026-06-19 04:45:08 +02:00
2026-06-22 17:10:49 +00:00
2026-06-25 03:54:15 +00:00
2026-06-25 03:54:15 +00:00
2026-06-10 01:27:17 +02:00
2026-05-25 12:18:35 +02:00
2026-06-19 07:57:15 +02:00
2026-04-24 22:36:44 +02:00
2026-05-16 07:02:24 +05:30
2026-04-18 22:41:09 +02:00
2026-06-22 21:43:19 +02:00
2026-06-21 06:39:14 +02:00
2026-06-16 21:32:39 +02:00
2026-06-18 00:59:55 +02:00
2026-06-10 01:27:17 +02:00
2026-02-10 07:39:39 +01:00
2026-06-18 00:59:55 +02:00
2026-06-22 06:13:01 +02:00
2026-06-23 01:39:24 +02:00
2026-06-23 01:46:45 +02:00
2026-06-18 19:52:59 +02:00
2026-04-29 01:16:33 +02:00
2026-06-25 03:54:15 +00:00
2026-05-09 05:50:09 +02:00
2026-06-10 01:28:04 +02:00
2026-04-23 21:02:14 +02:00
2026-06-10 01:52:18 +02:00
2026-06-19 04:42:06 +02:00
2026-06-15 15:43:48 +00:00
2026-06-10 23:13:39 +02:00
2026-06-19 08:19:55 +00:00
2026-06-23 00:01:05 +02:00
2026-06-08 18:28:15 +02:00
2026-06-19 00:59:03 +02:00
2026-06-19 03:50:00 +02:00
2026-06-18 00:59:55 +02:00
2026-06-19 04:58:29 +02:00
2026-05-25 17:21:53 +00:00
2026-02-22 01:35:32 +01:00
2026-02-22 01:58:04 +01:00
2026-06-18 00:59:53 +02:00
2026-01-24 00:03:52 +01:00
2026-06-18 00:59:55 +02:00
2026-05-28 01:00:23 +02:00
2026-06-19 16:06:17 +02:00
2026-06-18 00:59:55 +02:00
2026-06-18 00:59:55 +02:00
2026-06-08 18:28:15 +02:00
2026-06-18 00:59:55 +02:00
2026-06-17 01:53:24 +02:00
2026-05-26 07:28:42 +02:00
2026-06-25 03:54:15 +00:00
2026-06-14 07:36:24 +00:00
2026-06-25 07:58:20 +00:00
2026-06-18 21:32:38 -07:00
2026-06-14 02:02:53 +02:00
2026-06-18 00:59:55 +02:00
2026-06-19 17:54:37 +00:00
2026-06-18 00:59:55 +02:00
2026-06-18 00:59:55 +02:00
2026-06-25 03:54:15 +00:00
2026-06-20 07:55:09 +00:00
2026-06-18 00:59:55 +02:00
2026-06-23 00:54:54 +02:00
2026-02-22 11:01:11 +01:00
2026-06-12 16:26:38 +02:00
2026-06-08 18:28:08 +02:00
2026-06-18 00:59:53 +02:00
2026-06-21 16:31:12 +02:00
2026-06-08 02:04:59 +02:00