fix(agent): skip empty multimodal user entries after runtime-context strip
This commit is contained in:
1 parent
ad99d5aaa0
commit
03b83fb79e
2 files changed
+43
No files matched your search
@@ -480,6 +480,8 @@ class AgentLoop:
|
||||
filtered.append({"type": "text", "text": "[image]"})
|
||||
else:
|
||||
filtered.append(c)
|
||||
if not filtered:
|
||||
continue
|
||||
entry["content"] = filtered
|
||||
entry.setdefault("timestamp", datetime.now().isoformat())
|
||||
session.messages.append(entry)
|
||||
|
||||
Reference in new issue
Block a user