fix(infinity-agent-core): return tool failures to the agent - #88
Open
shadaj wants to merge 1 commit into
Open
Conversation
* Add a shared `send_tool_error` helper that enqueues an error `ToolResult` with the original tool and call IDs * Convert thread-tool argument and relationship validation failures, including missing `close_thread.thread_id`, from propagated errors or duplicated message construction into queued tool results * Make the batch processor enqueue a generic `Error: Tool call failed` result when asynchronous tool execution returns an error, while retaining the detailed display event and logging delivery failures * Add regressions covering missing `close_thread` arguments and generic failed-tool fallback delivery Co-authored-by: Infinity 🤖 <infinity@hydro.run> PR: #88
shadaj
force-pushed
the
sandbox-86595edd-0387-40e8-aa40-3f1862988c82
branch
from
July 29, 2026 00:06
65a0f98 to
127f90b
Compare
Deploying infinity with
|
| Latest commit: |
127f90b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5088ef94.infinity-dc7.pages.dev |
| Branch Preview URL: | https://sandbox-86595edd-0387-40e8-a.infinity-dc7.pages.dev |
shadaj
marked this pull request as ready for review
July 29, 2026 21:37
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.
send_tool_errorhelper that enqueues an errorToolResultwith the original tool and call IDsclose_thread.thread_id, from propagated errors or duplicated message construction into queued tool resultsError: Tool call failedresult when asynchronous tool execution returns an error, while retaining the detailed display event and logging delivery failuresclose_threadarguments and generic failed-tool fallback delivery