Skip to content

Conversation

@lupingsse
Copy link

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.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. backend Pertains to the Python backend. labels Oct 29, 2025
@lupingsse
Copy link
Author

As dosubot mentionend, this also relates to (and as far as i can tell also fixes) issue #2338 and #2337.

@lupingsse lupingsse force-pushed the resume-thread-before-chat branch from 5f3e5b1 to 366668d Compare October 31, 2025 07:51
@github-actions
Copy link

This PR is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Nov 19, 2025
@github-actions
Copy link

This PR was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Pertains to the Python backend. size:XS This PR changes 0-9 lines, ignoring generated files. stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant