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:
committed by
Peter Steinberger
parent
efdf874407
commit
a7cb270999
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user