docs(agent): annotate stream invariants
This commit is contained in:
1 parent
86ad703f53
commit
cc790f2c84
4 files changed
+13
No files matched your search
@@ -27,6 +27,8 @@ export function splitMediaFromOutput(raw: string): {
|
||||
mediaUrls?: string[];
|
||||
mediaUrl?: string; // legacy first item for backward compatibility
|
||||
} {
|
||||
// KNOWN: Leading whitespace is semantically meaningful in Markdown (lists, indented fences).
|
||||
// We only trim the end; token cleanup below handles removing `MEDIA:` lines.
|
||||
const trimmedRaw = raw.trimEnd();
|
||||
if (!trimmedRaw.trim()) return { text: "" };
|
||||
|
||||
|
||||
Reference in new issue
Block a user