Repository navigation
Commit 7dcf9cb
committed
Python: Drop a stale service thread id from a hosted session on load
A conversation that began before storage was disabled persisted a session
naming the service thread that already holds its transcript. Core resumes
that thread ahead of anything in the run options, so the model still saw
the transcript twice, and the storage check then failed the turn even
though the client had honoured store=False. Because a failed turn is not
saved, the same stale session loaded again on every later turn.
Clearing service_session_id where the transient history buffer is popped
heals those conversations on their first post-upgrade turn, and makes the
check exact: an id present afterwards can only have been set by this run.1 parent c9b8aba commit 7dcf9cb
2 files changed
Lines changed: 47 additions & 4 deletions
File tree
- python/packages/foundry_hosting
- agent_framework_foundry_hosting
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
| |||
677 | 684 | | |
678 | 685 | | |
679 | 686 | | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
684 | 692 | | |
685 | 693 | | |
686 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
812 | 847 | | |
813 | 848 | | |
814 | 849 | | |
| |||
0 commit comments