Commit d01bc67
fix(openai): forward previous_response_id in run_agent_streamed_auto_send [greptile]
The unified-surface migration of run_agent_streamed_auto_send dropped
previous_response_id: it was accepted (suppressed by noqa: ARG002) but never
passed to Runner.run_streamed, so any caller continuing a Responses-API
conversation silently started a fresh one. Mirror the non-auto-send
run_agent_streamed branching (max_turns x previous_response_id) and drop the
now-incorrect noqa. The activity layer already forwarded params.previous_response_id.
Adds a test asserting the id reaches Runner.run_streamed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 045b29e commit d01bc67
2 files changed
Lines changed: 54 additions & 3 deletions
File tree
- src/agentex/lib/core/services/adk/providers
- tests/lib/adk/providers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
789 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
790 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
791 | 805 | | |
792 | 806 | | |
793 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
357 | 394 | | |
358 | 395 | | |
359 | 396 | | |
| |||
0 commit comments