A2A streaming task history can lose or reorder concurrently written events
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 38/100
Línea de trabajo
Work on the feat/a2a branch at the commit named in the issue. Read ResponseEventWriter.Write on streamResponseWriter: the append to the events slice happens after the lock is released, and the best-effort push-notification goroutine writes the named return error. Run the streaming test with go test -race to see the reported race, then confirm the fix by comparing the delivered message IDs against the history saved by TaskEventsConsolidator. Note the reporter says a fix and regression test are already in hand, so coordinate before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
On feat/a2a at ecdc69cc724cb921018f5c67c014ed7f5e3687cc, an A2A streaming handler can emit several response events successfully but the task saved by the server can lose or reorder some of them. I reproduced this locally with the in-memory queue and task store, using one request and no model calls.
Reproduce
Register an A2A server with a MessageStreamingHandler that starts several goroutines, each calling ResponseEventWriter.Write with a distinct message ID, and waits for all writes before returning. Have TaskEventsConsolidator save the supplied message events in task history. Consume the streaming response and compare its message IDs with the saved history. A local test with 32 events delivered all 32 events, but the baseline failed the history comparison and go test -race reported concurrent access to streamResponseWriter.events.
Expected behavior
The consolidator receives the successfully queued events in delivery order. Push notifications remain best-effort and their errors are handled by the notification goroutine.
Cause
Write appends to its events slice after unlocking, allowing concurrent appends. The best-effort push-notification goroutine also assigns to the named return error of Write.
I have a focused fix with a regression test through the registered streaming handler and will link it here. AI assisted with the investigation and test.
- Lenguaje dominante
- Go
- Estrellas
- 843
- Forks
- 398
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 4
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 cloudwego/eino-ext
-
OpenAI embedding client returns batch vectors in response order despite explicit input indicesPosiblemente ocupada @ningsiyuan1024 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cloudwego/eino-ext#1061 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Langfuse v4 cutover (Nov 16): consumer.go uses removed endpointsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cloudwego/eino-ext#1031 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
openrouter: buildResponseChunkMessageModifier panics on the nil msg documented for end=truePosiblemente ocupada @aenawi la tomó hace 80 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
Todos los issues de cloudwego/eino-ext
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
eryajf/learning-weekly#260 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
ConcatAgenticMessages loses the approval request ID of a streamed MCP tool callPosiblemente ocupada @ningsiyuan1024 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día