Commit a6bfc30
fix(openai-agents): restore created_at deterministic timestamp (AGX1-378)
Thread the workflow-supplied created_at through
UnifiedEmitter.auto_send_turn(turn, created_at=created_at) so the first
agent message of the turn is stamped with the deterministic timestamp
(e.g. workflow.now()) just as the original inline loop did before the
unified-harness migration.
The foundation (b4b8b33) wired auto_send_turn to accept and forward
created_at to every streaming_task_message_context call. This commit
connects the call site in run_agent_streamed_auto_send to that new
parameter, restoring the behaviour that the migration comment documented
as a known trade-off.
Update the stale limitation comment to reflect the fix. Add
test_run_agent_streamed_auto_send_forwards_created_at, which drives
the activity through a fake stream with a pinned datetime and asserts
every streaming context receives that datetime.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fb887d1 commit a6bfc30
2 files changed
Lines changed: 83 additions & 13 deletions
File tree
- src/agentex/lib/core/services/adk/providers
- tests/lib/adk/providers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
757 | 752 | | |
758 | 753 | | |
759 | 754 | | |
| |||
817 | 812 | | |
818 | 813 | | |
819 | 814 | | |
820 | | - | |
| 815 | + | |
821 | 816 | | |
822 | 817 | | |
823 | 818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
621 | 663 | | |
622 | 664 | | |
623 | 665 | | |
| |||
665 | 707 | | |
666 | 708 | | |
667 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
668 | 743 | | |
669 | 744 | | |
670 | 745 | | |
| |||
0 commit comments