Commit b941044
fix(aws-strands): fall back to frontend_tool_names when tool_call_id lookup fails
When the assistant message with tool_calls is missing from
input_data.messages (delta-only payload), the _tool_call_id_to_name
lookup returns empty. Instead of giving up with an empty user_message
(which produces no useful model output), fall back to the tool names
available in input_data.tools (frontend_tool_names). This produces the
same "analyzeData executed successfully with no return value." message
that the full-history path generates.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 027ecf9 commit b941044
1 file changed
Lines changed: 6 additions & 5 deletions
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
636 | 638 | | |
637 | 639 | | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
| |||
0 commit comments