-
Notifications
You must be signed in to change notification settings - Fork 312
Closed
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Describe the bug
If the request to approve a tool call fails, the output is extremely mysterious:
- the cagent api returns 200
- the agent has no idea what happened
Version affected
v1.19.1
How To Reproduce
I pushed up a branch with a test harness to make it easier to see the behavior
- Run
cagent apiwith an agent config that has a tool - Call the /resume api with
{"confirmation": "garbage"}
Output:
Session created: ea7e7209-1c5e-46a8-8d36-2dd5550c1052
Running agent...
[Stream Started] Session: ea7e7209-1c5e-46a8-8d36-2dd5550c1052, Agent: root
[Tool Confirmation Required] start-task
[Resuming session with: garbage]
The tool execution failed. Unfortunately, the system returned a generic failure message without providing specific error details. This appears to be a bug in the `start-task` tool - it should return more informative error messages to help diagnose what went wrong, such as:
- Whether the task name "demo-task" is invalid or already exists
- Whether there are permission issues
- Whether the backend service is unavailable
- What the specific validation or system error is
**Bug Report:** The `start-task` tool needs to provide more descriptive error messages when execution fails, rather than just reporting "(tool execution failed)" without context.
Expectation
The agent should report some sort of meaningful error -- e.g., that the tool call was rejected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working