feat(copilot): implement copilot thread persistence - #2299
Merged
Merged
Conversation
xjose97x
marked this pull request as ready for review
July 18, 2025 22:10
Contributor
Author
Contributor
Author
|
@hayescode Please let me know if you have any feedback :) |
Contributor
|
@asvishnyakov would you mind reviewing the frontend code changes when you get a chance you're stronger in frontend then me 😎 |
asvishnyakov
self-requested a review
July 23, 2025 14:34
sayatkina
approved these changes
Jul 27, 2025
hayescode
approved these changes
Jul 28, 2025
Contributor
Author
|
@hayescode @asvishnyakov any chance we can get this on the next release? thanks a bunch! |
Contributor
Author
|
Thanks for the merge @hayescode I will work on a PR for the docs that will explain this feature.
Copilot now supports all the features set :) |
asvishnyakov
added a commit
to Chainlit/docs
that referenced
this pull request
Aug 7, 2025
…gs (#254) Included changes from: - Chainlit/chainlit#2299 - Chainlit/chainlit#2292 - Chainlit/chainlit#2271 - Chainlit/chainlit#2347 - Chainlit/chainlit#2364 Closes #251, #252 Also fixed boolean field values in some files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This update introduces persistent storage of the threadId in the browser’s localStorage, enabling chat restoration after a page reload.
What’s New
Two JavaScript utility functions are now exposed to provide greater flexibility in managing the threadId for Copilot:
getChainlitCopilotThreadId(): string | null
Retrieves the current threadId from localStorage.
clearChainlitCopilotThreadId(newThreadId?: string): void
Clears the existing threadId from localStorage. Optionally sets a new one.
These additions offer developers more control over thread management and session continuity in the Copilot experience.