fix: preserve plugin tool state.attachments in UI and materializer (#2367)

* preserve attachments in UI and materializer

* add support for non-image attachments

* preserve attachments in UI and materializer

* improve attachment rendering and state synchronization

* simplify attachment filtering and key handling

* prevent rendering tool attachments without URLs

* require `f.url` in `imageAttachments` to match gallery indices
This commit is contained in:
FrostiDrinks
2026-07-22 10:46:40 +03:00
committed by GitHub
parent 733bd37c37
commit c29b2d0849
13 changed files with 283 additions and 5 deletions
+1
View File
@@ -2035,6 +2035,7 @@ export const dict: Record<I18nKey, string> = {
"chat.toolPart.copiedOutput": "Вивід скопійовано",
"chat.toolPart.copyOutputFailed": "Не вдалося скопіювати вивід",
"chat.toolPart.openSubtask": "Відкрити підзавдання {type}",
"chat.toolPart.attachmentFallback": "Вкладення",
"chat.todo.total": "Усього",
"chat.todo.inProgress": "В роботі",
"chat.todo.pending": "В очікуванні",