gradio
bb5a3c5b - Fix #10320: Chatbot - Ensure all messages in a group are editable (#11097)

Commit
226 days ago
Fix #10320: Chatbot - Ensure all messages in a group are editable (#11097) * Fix #10320: Chatbot - Ensure all messages in a group are editable Previously, only the first message in a group from the same sender was editable. This happened because message.svelte rendered a single textarea for the group, and ChatBot.svelte only updated the first message. Now, edit_message is a list (edit_messages), storing edits for all messages in the group. Each message gets its own textarea, and on submit, handle_action is executed for each message in the group, ensuring all are updated correctly. Also, added an end-to-end test to verify this behavior, modifying the demo to allow adding messages only for the user. * add changeset * format + notebooks --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Parents
Loading