fix: restore download button when file type is selected in agent message (#17184)

This commit is contained in:
euvre
2026-07-22 19:21:17 +08:00
committed by GitHub
parent 1aaa200471
commit 2f7dc60337
4 changed files with 21 additions and 30 deletions

View File

@@ -981,6 +981,9 @@ class Canvas(Graph):
message_end["status"] = cpn_obj.get_param("status")
if isinstance(cpn_obj.output("attachment"), dict):
message_end["attachment"] = cpn_obj.output("attachment")
downloads = cpn_obj.output("downloads")
if isinstance(downloads, list) and downloads:
message_end["downloads"] = downloads
if self._has_reference():
message_end["reference"] = self.get_reference()
# NOTE: aggregated run token usage is intentionally NOT attached here.