Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle message during tool call #4692

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Mar 17, 2025

Description

If user sends message during tool call (especially during asking permission), send a tool response notifying that the user cancelled the tool call, and then move forward like a normal message

This PR also removes the gatherContext thunk and moves the once-used logic into the streamResponse thunk, in part because it would be nice to move towards no/less thunks

TODO change the approach here - should prob inject a tool response message not a tool response AND user message

@RomneyDa RomneyDa requested a review from a team as a code owner March 17, 2025 08:53
@RomneyDa RomneyDa requested review from Patrick-Erichsen and removed request for a team March 17, 2025 08:53
Copy link

netlify bot commented Mar 17, 2025

Deploy Preview for continuedev ready!

Name Link
🔨 Latest commit 01313fe
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67d7e2f3683b180009f11d6c
😎 Deploy Preview https://deploy-preview-4692--continuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@RomneyDa RomneyDa marked this pull request as draft March 17, 2025 21:26
@chezsmithy
Copy link
Contributor

@RomneyDa I performed a number of tests with this change using both the Bedrock Claude 3.5 and 3.7 models and performaed a number of steps where I cancelled the tools use, and switched directions or then restarted without finding any issues. This is a really great change and a common complaint from our users given to escape from this situation they have to start a new context today. Recommend we merge this as soon as possible.

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