Skip to content

fix(infinity-agent-core): return tool failures to the agent - #88

Open
shadaj wants to merge 1 commit into
mainfrom
sandbox-86595edd-0387-40e8-aa40-3f1862988c82
Open

fix(infinity-agent-core): return tool failures to the agent#88
shadaj wants to merge 1 commit into
mainfrom
sandbox-86595edd-0387-40e8-aa40-3f1862988c82

Conversation

@shadaj

@shadaj shadaj commented Jul 29, 2026

Copy link
Copy Markdown
Member
  • 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

* 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
shadaj force-pushed the sandbox-86595edd-0387-40e8-aa40-3f1862988c82 branch from 65a0f98 to 127f90b Compare July 29, 2026 00:06
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploying infinity with  Cloudflare Pages  Cloudflare Pages

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

View logs

@shadaj
shadaj marked this pull request as ready for review July 29, 2026 21:37
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.

1 participant