Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Failed tool calls are marked as succeeded (isError is always false)

オープン 初心者向け
#9,120 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@oliarmak-web がすでに取り組んでいます。

2026年10月26日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
80/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

まず agent-service/src/agent/texera-agent.ts の onStepFinish を確認し、次に agent-service/src/agent/tools/tools-utility.ts の createErrorResult を読んで、エラー出力の形式を確認します。ターン履歴でツールの結果がどのように記録、表示されるかを確認します。エラー結果が失敗として記録され、再現手順で次のターンにツール呼び出しが失敗として表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

What happened?

When a tool call fails, the agent still marks it as succeeded.

In agent-service/src/agent/texera-agent.ts, onStepFinish sets:

isError: !!(tr.output as any)?.error,

But the tools return errors as a plain string, from createErrorResult in tools/tools-utility.ts:

export function createErrorResult(error: string): string {
  return `[ERROR] ${error}`;
}

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].

A-step1-toolcall.png

Step 3, what the agent was given: the same call shows as - addOperator (succeeded).

A-step3-context.png

How to reproduce?
  1. 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.
  2. 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).
Version/Branch

1.4.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

57faa6b

What browsers are you seeing the problem on?

Chrome

Relevant log output
agent-service/src/agent/texera-agent.ts  onStepFinish: isError: !!(tr.output as any)?.error
agent-service/src/agent/tools/tools-utility.ts:30  createErrorResult returns a string
主要言語
Scala
スター
325
フォーク
196
平均マージ
4日 7時間
マージ済み PR(30日)
149

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/texera のほかの issue

apache/texera の issue をすべて見る

似ている issue

Scala の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。