Skip to content

Conversation

@thedadams
Copy link
Contributor

When switching threads, the socket will send back the messages and tools for the thread. However, if the thread state file doesn't exist yet, nothing is sent. This leads to the tools being leftover from the previous thread.

This change will emit the event so that the tools are correctly set for a new thread.

When switching threads, the socket will send back the messages and tools
for the thread. However, if the thread state file doesn't exist yet,
nothing is sent. This leads to the tools being leftover from the
previous thread.

This change will emit the event so that the tools are correctly set for
a new thread.

Signed-off-by: Donnie Adams <donnie@acorn.io>
@thedadams thedadams merged commit 74f3564 into gptscript-ai:main Aug 27, 2024
@thedadams thedadams deleted the clear-tools branch August 27, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants