Agent does not see tool errors in its history, so it repeats the same failing call
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
agent-service/src/agent/util/context-utils.ts の serializeTask(119–133 行)から始め、次に期待される履歴形式を確認するため prompts.ts を読んでください。シリアライズされたツール呼び出し履歴を更新し、要約と出力、失敗時にはエラーメッセージを含めてください。過去の呼び出しの詳細がエージェントの入力コンテキストに表示され、再現時に失敗した呼び出しのエラーを確認せずにその呼び出しを繰り返さなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happened?
The agent does not see the result of its earlier tool calls. When a call fails, the agent does not know why, so it makes the same call again and again.
In agent-service/src/agent/util/context-utils.ts, serializeTask writes each past tool call as one line:
lines.push(`- ${tc.toolName} (${statusAttr})`);
It only writes the tool name. The system prompt (prompts.ts) says each call should also have Summary, Output, or Error lines, but these lines are never added.
Example on main with claude-haiku-4.5. Prompt: "Add a Limit operator that keeps 10 rows, and connect its input to the existing operator op7." (there is no op7). Every call returned [ERROR] Source operator "op7" not found. The agent made the same modifyOperator call 5 times until it hit the step limit. At turn 3, the agent got this context:
### Turn 1
Thought: I'll add a Limit operator that keeps 10 rows and connect it to op7.
- addOperator (succeeded)
### Turn 2
Thought: I can see that you've already successfully added the Limit operator `op8` ...
- modifyOperator (succeeded)
The error message is not there.
Expected: each tool call in the history should include its summary and output, or the error message if it failed.
Screenshots
Step 1, tool call: addOperator returned [ERROR] Source operator "op7" not found.

Step 3, what the agent was given: Turn 1 and Turn 2 only say (succeeded). There is no error text.

The chat: the agent says "Let me connect it to op7" again and again, until the step limit (5).

How to reproduce?
- Open an empty workflow and create an agent.
- Send:
Add a Limit operator that keeps 10 rows, and connect its input to the existing operator op7. - Click "View details" on a later step and look at Input Messages. Past calls show only
- <tool> (succeeded), with no error text. The agent keeps repeating the call.
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/util/context-utils.ts:119-133 serializeTask
- 主要言語
- Scala
- スター
- 325
- フォーク
- 196
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 131
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/texera のほかの issue
-
Disabled tools can still be called by the agent対応中かも @shaynhornik が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
apache/texera#9122 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
apache/texera#9120 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Search bar autocomplete stops working after a model appears in the suggestions対応中かも @aglinxinyuan が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/texera#8700 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
apache/texera#8682 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
apache/pekko-persistence-r2dbc#527 ·
メンテナーはふだん 1 日以内に返信
-
area:verification status:backlog
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
KD5UJC-XYZ/scarab#459 ·
メンテナーはふだん 1 日以内に返信
-
OpenAPI scan predicates document `bytes`, but the node reads `value`対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンA-api C-bug S-ready-for-human
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ergoplatform/ergo#2838 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
scalacenter/scaladex#1834 ·