Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Agent does not see tool errors in its history, so it repeats the same failing call

Abierto Apto para principiantes
#9,119 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Área
ai, backend

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.

A-step1-toolcall.png

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

A-step3-context.png

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

A-workspace.png

How to reproduce?
  1. Open an empty workflow and create an agent.
  2. Send: Add a Limit operator that keeps 10 rows, and connect its input to the existing operator op7.
  3. 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/texera

Todos los issues de apache/texera

Issues similares

Más issues de Scala

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.