fix(agent): buffer streaming output until <final> tag appears

- Enforces strict buffering when enforceFinalTag is enabled.
- Prevents 'thinking out loud' planning steps (e.g. '*Locating Manulife*') from leaking to WhatsApp.
- Hardens <final> tag stripping to remove nested/hallucinated tags.
This commit is contained in:
Keith the Silly Goose authored and Peter Steinberger committed 2026-01-12 08:34:06 +00:00
1 parent efdf874407
commit a7cb270999
2 files changed
+19 -8

No files matched your search

+5
View File
@@ -24,6 +24,11 @@ export function isReasoningTagProvider(provider: string | undefined | null): boo
if (normalized.includes("google-antigravity")) {
return true;
}
// Handle Minimax (M2.1 is chatty/reasoning-like)
if (normalized.includes("minimax")) {
return true;
}
return false;
}