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
2026-01-12 16:11:26 +13:00
committed by Peter Steinberger
parent efdf874407
commit a7cb270999
2 changed files with 19 additions and 8 deletions

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;
}