google / google/adk-python

Loosing SSE session from the browser shouldn't break the agent run

Abierto
#4,029 8 comentarios 1 reacción 1 asignado Asignado a @wyf7107 Ver en GitHub
needs review web
Lenguaje dominante
Python
Estrellas
21.5k
Forks
4k
Merge medio
1 d 22 h
PR fusionados (30 d)
31

Descripción

**Describe the bug**
Prerequisites:

Web chat UI started with `adk web` for a simple agent with only a function tool that hangs for 2 minutes.

Reproduction:

1. Submit a request to wait for 2 minutes and wait for tool to start executing
2. Refresh browser window or terminate `/run_sse` SSE exchnage opened by the browser in any other way
3. Find the tool call in a scrambled state. The trace will mark the completion at the time of SSE session termination; the tool will never complete, and the agent will never return a response. The session is in a strange state.

Expected behavior:

Browser window refresh shouldn't affect the session in any way.

**To Reproduce**

Start a long-running tool, then refresh the browser window mid-execution: the execution response will never be processed, and no further processing will happen in this Session until a new message is sent.

**Expected behavior**
Disconnection of the browser SSE session shouldn't break the running execution of the agent / tools.

**Screenshots**

Before refresh:
Image
After refresh:
Image

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.