fix(gateway): terminate MEDIA: path at literal escape sequences - #41609
fix(gateway): terminate MEDIA: path at literal escape sequences#41609deacon-botdoctor wants to merge 1 commit into
Conversation
|
Reviewed the regex change and test coverage — this looks solid. Regex analysis: Adding Test coverage: Both No issues found. |
|
Thanks for the focused regression fix. Current main still has the reported failure: Automated hermes-sweeper review. |
|
Closing as part of open-PR prune. Why: CONFLICTING MEDIA escape termination; cold companion to #41643; close with the media pair rather than leave half-dead. If the need resurfaces on current |
Summary
Small models sometimes emit two-char escape sequences — a literal
\n/\r\n(backslash + letter, not a real newline) — right after aMEDIA:path, e.g.MEDIA:/tmp/audio.mp3\n\nAnd more.MEDIA_TAG_CLEANUP_RE's terminating lookahead did not treat a backslash as a path boundary, so the greedy\S+swallowed the escape text, the extension lookahead failed, and the whole tag silently failed to match — the audio was dropped with no error.Validation
Scope check