Agent does not see tool errors in its history, so it repeats the same failing call
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Empieza en agent-service/src/agent/util/context-utils.ts, en serializeTask (líneas 119–133), y luego lee prompts.ts para ver el formato esperado del historial. Actualiza el historial serializado de llamadas a herramientas para incluir su resumen y resultado, o el mensaje de error si fallan. El trabajo estará completo cuando las llamadas anteriores muestren esos detalles en el contexto de entrada del agente y la reproducción ya no repita una llamada fallida sin mostrar su error.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Scala
- Estrellas
- 325
- Forks
- 196
- Merge medio
- 3 d 12 h
- PR fusionados (30 d)
- 136
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/texera
-
Disabled tools can still be called by the agentPosiblemente ocupada @shaynhornik la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
apache/texera#9122 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Failed tool calls are marked as succeeded (isError is always false)Posiblemente ocupada @oliarmak-web la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
apache/texera#9120 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Search bar autocomplete stops working after a model appears in the suggestionsPosiblemente ocupada @aglinxinyuan la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/texera#8700 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
apache/texera#8682 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/texera
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
apache/pekko-persistence-r2dbc#527 ·
Los mantenedores suelen responder en 1 día
-
area:verification status:backlog
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
KD5UJC-XYZ/scarab#459 ·
Los mantenedores suelen responder en 1 día
-
OpenAPI scan predicates document `bytes`, but the node reads `value`Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoA-api C-bug S-ready-for-human
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ergoplatform/ergo#2838 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
llm4s (org.llm4s) is not indexedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
scalacenter/scaladex#1834 ·