teknium1
2bade67c04
fix(gateway): a leaked terminal <|eos|> sentinel no longer hides the MEDIA attachment
...
A provider that leaks its end-of-sequence control token glued to the last
MEDIA path (MEDIA:/x.png<|eos|>) made BasePlatformAdapter.extract_media
return no media: neither MEDIA_TAG_CLEANUP_RE nor MEDIA_EXTENSIONLESS_TAG_RE
accepts '<' as a path terminator (deliberately - widening the delimiter set
reopens the glue classes #68773/#88038), so the file was silently dropped
and the raw tag leaked into the chat.
Recognise the one exact token at the shared normalization seam instead:
_mask_media_scan_text blanks a terminal <|eos|> (offset-preserving) so the
glued tag ends on whitespace for every scan - extraction, display strip and
stream cleanup - across the known-extension, unknown-extension and
extension-less branches; _deliverable_tag_spans deletes the sentinel with
the tag it terminated. Not the exact token, not terminal, or inside a
protected code/JSON span: byte-identical to before.
Fixes #111046
Co-authored-by: Hukla <129692708+huklaa@users.noreply.github.com >
Co-authored-by: joaomarcos <joaomarcosdias444@gmail.com >
2026-09-15 04:26:30 -07:00
..
2026-09-15 04:26:30 -07:00
2026-09-15 04:12:13 -07:00
2026-09-07 06:10:54 -07:00
2026-09-02 19:21:46 -07:00
2026-09-13 05:32:38 -07:00
2026-09-15 03:44:13 -07:00
2026-09-10 10:27:07 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-02 19:21:46 -07:00
2026-09-15 03:50:10 -07:00
2026-09-02 19:21:46 -07:00
2026-09-13 20:53:54 -07:00
2026-09-15 03:44:13 -07:00
2026-09-15 03:44:13 -07:00
2026-09-12 08:49:16 -07:00
2026-09-02 19:21:46 -07:00
2026-09-02 20:13:08 -07:00
2026-09-13 05:08:29 -07:00
2026-09-07 06:00:05 -07:00
2026-09-04 00:15:16 -07:00
2026-09-14 07:46:51 -07:00
2026-09-03 09:44:26 -07:00
2026-09-11 15:44:00 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 00:09:14 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 05:08:29 -07:00
2026-09-04 00:15:16 -07:00
2026-09-13 05:08:29 -07:00
2026-09-11 06:21:48 -07:00
2026-09-03 09:44:26 -07:00
2026-09-13 14:43:19 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 14:43:19 -07:00
2026-09-14 21:12:32 +05:30
2026-09-11 15:44:00 -07:00
2026-09-11 15:44:00 -07:00
2026-09-02 19:21:46 -07:00
2026-09-02 19:21:46 -07:00
2026-09-04 00:15:16 -07:00
2026-09-02 19:21:46 -07:00
2026-09-12 08:22:42 -07:00
2026-09-15 03:48:53 -07:00
2026-09-03 09:44:26 -07:00
2026-09-11 15:28:00 -07:00
2026-09-03 09:44:26 -07:00
2026-09-15 12:44:57 +05:30
2026-09-03 17:13:22 -07:00
2026-09-03 09:44:26 -07:00
2026-09-13 05:07:11 -07:00
2026-09-15 03:44:36 -07:00
2026-09-12 22:19:44 -07:00
2026-09-11 15:28:00 -07:00
2026-09-02 16:11:50 -07:00
2026-09-13 05:32:38 -07:00
2026-09-11 19:58:07 -07:00
2026-09-07 14:16:57 -07:00
2026-09-07 14:16:57 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 15:41:01 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 03:44:36 -07:00
2026-09-13 15:39:11 -07:00
2026-09-13 20:52:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-11 15:28:00 -07:00
2026-09-07 06:10:54 -07:00
2026-09-15 04:19:19 -07:00
2026-09-02 21:14:22 -07:00
2026-09-04 15:41:27 -03:00
2026-09-09 10:55:32 -07:00
2026-09-02 19:21:38 -07:00
2026-09-13 05:21:02 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 15:41:01 -07:00
2026-09-15 04:12:13 -07:00
2026-09-12 12:03:39 +05:30
2026-09-13 05:20:26 -07:00
2026-09-13 15:41:01 -07:00
2026-09-03 13:46:50 -07:00
2026-09-07 08:20:09 -07:00
2026-09-03 10:00:07 -07:00
2026-09-03 17:13:22 -07:00
2026-09-10 18:17:22 -07:00
2026-09-11 03:45:33 +05:30
2026-09-13 20:54:50 -07:00
2026-09-13 14:45:10 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 05:09:06 -07:00
2026-09-03 17:13:22 -07:00
2026-09-02 21:14:22 -07:00
2026-09-15 03:44:36 -07:00
2026-09-11 15:44:00 -07:00
2026-09-15 12:44:57 +05:30
2026-09-02 19:19:38 -07:00
2026-09-13 05:20:26 -07:00
2026-09-08 17:51:35 +10:00
2026-09-08 17:51:35 +10:00
2026-09-04 00:15:16 -07:00
2026-09-02 20:24:52 -07:00
2026-09-09 10:59:52 -07:00
2026-09-03 17:13:22 -07:00
2026-09-07 14:11:18 -07:00
2026-09-12 12:03:39 +05:30
2026-09-09 10:55:32 -07:00
2026-09-03 08:16:44 -07:00