chainlit
chainlit copied to clipboard
attempt to fix issue #2611
trafficstars
See issue #2611 for a detailled explanation of cause for this request.
Calling contex.emitter.resume_thread(thread) after executing the hook to on_chat_resume, restores the saved thread and, thereby, overwrites any potential UI (e.g., chainlit.Message().send()) triggered during on_chat_resume.
If we didn't overlook any specific reasons against calling resume_thead before on_chat_resume, this would fix issue #2611.