Files
open-webui/src/lib
Classic298 d4128f0895 fix: a prompt from an embed goes to the wrong chat or to two chats at once (#34161)
* fix: a prompt from an embed goes to the wrong chat or to two chats at once

With a note open and its chat beside it, a prompt sent by an embed in that chat was picked up by that chat and by the main chat behind the note tab, so a tool embed's "ask the chat" button opened two confirmation dialogs. In a side chat the same button asked the prompt in the main chat. Each embed now belongs to the chat that shows it, and only that chat takes its prompt; a prompt from anywhere else goes to the page's main chat as before.

Fixes #34152

* fix: route a prompt from any embedded frame to the chat that shows it

The chat a prompt belongs to is now read from where the sending frame sits on the page, for every frame and not only tool embeds, so artifacts and inline HTML in a chat tab or beside a note also reach the right chat. A prompt that comes from no frame goes to the main chat.

* Name the message's source chat apart from the chat object
2026-11-17 22:20:06 +09:00
..
2026-11-17 19:31:57 +09:00
2026-11-17 19:31:57 +09:00
2026-11-09 15:55:13 +09:00
2026-11-17 19:31:57 +09:00
2026-11-16 21:56:34 +09:00
2026-11-17 19:31:57 +09:00
2026-11-02 08:48:51 +09:00
2026-11-17 19:31:57 +09:00
2026-10-08 23:49:38 +04:00
2024-12-30 02:20:09 -08:00
2024-12-30 02:20:09 -08:00
2023-10-08 15:38:42 -07:00
2026-11-07 19:24:37 +09:00