Commit 5a8206c
Fix Python SDK to always send structured tool results
Remove the failure special-case that sent only the error string for
result_type='failure'. Now the Python SDK always sends the full
ResultResult struct (including error, resultType, toolTelemetry),
consistent with Node, Go, and .NET SDKs.
This fixes the e2e test snapshot mismatch: the shared YAML snapshots
expect the CLI to receive a structured result (which it formats as
'Failed to execute ... due to error: Error: Tool execution failed'),
but the old Python path sent only the error string, producing a
different message format that the replay proxy couldn't match.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0b1d5a0 commit 5a8206c
1 file changed
Lines changed: 9 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
954 | 953 | | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
| 954 | + | |
| 955 | + | |
967 | 956 | | |
| 957 | + | |
968 | 958 | | |
969 | 959 | | |
970 | 960 | | |
| |||
0 commit comments