Skip to content

Conversation

bombaywalla
Copy link
Contributor

@bombaywalla bombaywalla commented Sep 14, 2025

The future in the :on-tools-called callback used to be just before the check for @approved*. There is really no need to have a future when the call has been rejected, only when the call has been allowed and ready to go. So, the future was moved to just before the call.

To prepare for being able to cancel the call future, the future needs to be stored in the db. This is done by a new action set-call-future that is called on the :execution-start event. However, since the future starts running as soon as it s created, we have to first delay the future and then force it only after the tool call state has been transitioned to :executing.

There should be no change in external behavior.

  • I added a entry in changelog under unreleased section.

The future in the :on-tools-called callback used to be just before the
check for @approved*.  There is really no need to have a future when
the call has been rejrected, only when the call has been allowed and
ready to go.  So, the future was moved to just before the call.

To prepare for being able to cancel the call future, the future needs
to be stored in the db.  This is done by a new action
`set-call-future` that is called on the :execution-start event.
However, the since the future starts running as soon as it s created,
we have to first delay the future and then force it only after the
tool call state has been transitioned to :executing.
@bombaywalla
Copy link
Contributor Author

I would like to run a manual test before making this PR ready for review.

@bombaywalla
Copy link
Contributor Author

This PR is a part of Issue #111 and is a prerequisite for what is to follow

Copy link
Member

@ericdallo ericdallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good @bombaywalla I will test it, is there anything else you wanna do or is this ready to review?

@bombaywalla bombaywalla marked this pull request as ready for review September 14, 2025 14:02
@bombaywalla
Copy link
Contributor Author

I was just hoping to do a manual test, but it's ready to review otherwise.

@bombaywalla
Copy link
Contributor Author

bombaywalla commented Sep 14, 2025

I've done some manual testing.
Please check it manually yourself as well.
This PR could do with more rigorous manual testing.

@ericdallo
Copy link
Member

Thank you, will review/test now

Copy link
Member

@ericdallo ericdallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

@ericdallo ericdallo merged commit 10f8b19 into editor-code-assistant:master Sep 15, 2025
8 checks passed
@bombaywalla bombaywalla deleted the save-call-future branch September 15, 2025 17:08
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.

2 participants