google / google/adk-python

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

オープン
#4,029 コメント 8 件 リアクション 1 件 担当者 1 名 @wyf7107 に割り当て済み GitHub で見る
needs review web
主要言語
Python
スター
21.5k
フォーク
4k
平均マージ
1日 22時間
マージ済み PR(30日)
31

説明

**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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。