feat: add image generation tool and WebUI mode

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Xubin RenandCursor authored and Xubin Ren committed 2026-05-08 20:06:23 +08:00
1 parent 3a2f47d720
commit e936ed48bd
45 files changed
+2979 -89

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ class MessageTool(Tool):
metadata = dict(self._default_metadata.get()) if same_target else {}
if message_id:
metadata["message_id"] = message_id
if self._record_channel_delivery_var.get():
if self._record_channel_delivery_var.get() or media:
metadata["_record_channel_delivery"] = True
msg = OutboundMessage(