Commit 7fa4cee
committed
fix: Add explicit [DONE] signal to SSE stream endpoint
Fixes issue where /run_sse endpoint sometimes fails to close
the SSE connection after the model's final response, causing
client-side hangs.
Changes:
- Add 'data: [DONE]' termination signal after all events streamed
- Send [DONE] in error path as well for consistency
- Update test to filter out [DONE] signal1 parent ab89d12 commit 7fa4cee
File tree
2 files changed
+5
-1
lines changed- src/google/adk/cli
- tests/unittests/cli
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1560 | 1563 | | |
1561 | 1564 | | |
1562 | 1565 | | |
| |||
1570 | 1573 | | |
1571 | 1574 | | |
1572 | 1575 | | |
| 1576 | + | |
1573 | 1577 | | |
1574 | 1578 | | |
1575 | 1579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
| |||
0 commit comments