fix: strip leaked memory context from commentary
This commit is contained in:
@@ -6051,7 +6051,7 @@ class AIAgent:
|
||||
if cb is None or not isinstance(assistant_msg, dict):
|
||||
return
|
||||
content = assistant_msg.get("content")
|
||||
visible = self._strip_think_blocks(content or "").strip()
|
||||
visible = sanitize_context(self._strip_think_blocks(content or "")).strip()
|
||||
if not visible or visible == "(empty)":
|
||||
return
|
||||
already_streamed = self._interim_content_was_streamed(visible)
|
||||
|
||||
Reference in New Issue
Block a user