You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed tool calls are marked as succeeded (isError is always false) #9120
A string has no .error field, so isError is always false. Then the turn history shows every call as - <tool> (succeeded).
Example on main: addOperator and modifyOperator both returned [ERROR] Source operator "op7" not found. Both were saved with isError: false, and the next turn showed - addOperator (succeeded) and - modifyOperator (succeeded). Together with #9115, the agent gets no sign at all that the call failed.
Expected: isError should be true when the tool returns an error, for example when the output starts with [ERROR].
Screenshots
Step 1, tool call: the result starts with [ERROR].
Step 3, what the agent was given: the same call shows as - addOperator (succeeded).
How to reproduce?
Open an empty workflow, create an agent, and send: Add a Limit operator that keeps 10 rows, and connect its input to the existing operator op7.
Click "Export ReAct steps as JSON". Step 1's toolResults[0].output starts with [ERROR], but isError is false. Step 2's input shows - addOperator (succeeded).
Hi, I reproduced the mismatch described here: createErrorResult returns a string, while onStepFinish checks for an object error field, so the persisted result cannot be marked as failed. I would be interested in implementing a focused repair with deterministic tests covering successful results, error results, exported ReAct history, and the failure status shown in the next agent turn. Before I use /take, would you prefer a minimal classifier that preserves the current string contract, or a typed result contract that removes the need to infer failure from the [ERROR] prefix?
Thanks for confirming. I’ll proceed with the minimal fix: preserve the current string result contract, classify tool outputs beginning with [ERROR] as failures in onStepFinish, and add regression tests covering successful results, error results, persisted isError, and the status shown in the next agent turn.
Thanks again. I’m still available to implement the focused fix described above. It looks like /take did not assign the issue. Could a maintainer confirm whether I should proceed or assign it to me?
7. Thanks again. I’m still available to implement the focused fix described above. It looks like /take did not assign the issue. Could a maintainer confirm whether I should proceed or assign it to me?
Hello @oliarmak-web ! I think you need to send /take in a separate message. I assigned to you. So you can start to work on it now!
Thanks for assigning it to me. I will start on the agreed minimal fix and include focused regression coverage for successful and [ERROR] tool results, persisted isError, and the status presented in subsequent agent context.
Thanks @bobbai00 and @yrenat. I opened #9259 with the agreed minimal fix. It classifies [ERROR] string outputs as failed while preserving structured error handling, and adds regression coverage for persisted status and the status presented in the next agent turn. The full agent-service suite passes with 313 tests.
I kept SDK-rejected tool-error parts outside this focused scope so that behavior can be handled separately if needed.
Activity
oliarmak-web commentedon Oct 24, 2026
Hi, I reproduced the mismatch described here:
createErrorResultreturns a string, whileonStepFinishchecks for an object error field, so the persisted result cannot be marked as failed. I would be interested in implementing a focused repair with deterministic tests covering successful results, error results, exported ReAct history, and the failure status shown in the next agent turn. Before I use/take, would you prefer a minimal classifier that preserves the current string contract, or a typed result contract that removes the need to infer failure from the[ERROR]prefix?yrenat commentedon Oct 24, 2026
Thanks for offering to help! I personally prefer the minimal fix. Do you have any comments on that? @bobbai00
bobbai00 commentedon Oct 26, 2026
@yrenat thanks for raising the issues. I think a minimal fix should be done regarding this issue.
oliarmak-web commentedon Oct 26, 2026
Thanks for confirming. I’ll proceed with the minimal fix: preserve the current string result contract, classify tool outputs beginning with
[ERROR]as failures inonStepFinish, and add regression tests covering successful results, error results, persistedisError, and the status shown in the next agent turn./take
oliarmak-web commentedon Nov 2, 2026
Thanks again. I’m still available to implement the focused fix described above. It looks like /take did not assign the issue. Could a maintainer confirm whether I should proceed or assign it to me?
bobbai00 commentedon Nov 2, 2026
Hello @oliarmak-web ! I think you need to send
/takein a separate message. I assigned to you. So you can start to work on it now!oliarmak-web commentedon Nov 2, 2026
Thanks for assigning it to me. I will start on the agreed minimal fix and include focused regression coverage for successful and
[ERROR]tool results, persistedisError, and the status presented in subsequent agent context.oliarmak-web commentedon Nov 2, 2026
Thanks @bobbai00 and @yrenat. I opened #9259 with the agreed minimal fix. It classifies
[ERROR]string outputs as failed while preserving structured error handling, and adds regression coverage for persisted status and the status presented in the next agent turn. The full agent-service suite passes with 313 tests.I kept SDK-rejected
tool-errorparts outside this focused scope so that behavior can be handled separately if needed.feat(agent-service): show past tool results in the agent's history (a…
fix(agent-service): classify error-prefixed tool results as failed (a…
fix(agent-service): classify error-prefixed tool results as failed (a…