Commit 32a124d
Fix context_id precedence to use 'is not None' and add session-without-service-id test
Address review feedback:
- Use explicit 'is not None' check instead of 'or' for context_id
precedence so empty strings don't incorrectly fall through
- Add test for AgentSession() with no service_session_id, verifying
fallback to message additional_properties context_id
Fixes #5353
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0481cd9 commit 32a124d
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
| 686 | + | |
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
955 | 973 | | |
956 | 974 | | |
957 | 975 | | |
| |||
0 commit comments