This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-06 18:11:59 -05:00
1 parent e9dc12049b
commit cf13e63b58
6 files changed
+394 -2

No files matched your search

+10
View File
@@ -2058,6 +2058,16 @@ async def run_chat_task(
await emit(output=artifact_item)
_sync_state()
if tc["name"] == "display_file":
try:
file_item = json.loads(result)
except (json.JSONDecodeError, TypeError):
file_item = None
if isinstance(file_item, dict) and file_item.get("type") == "file":
output_items.append(file_item)
await emit(output=file_item)
_sync_state()
image_item = build_image_item(tc["name"], result)
if image_item:
output_items.append(image_item)