Skip to content

Fix Strands activity tool error reporting - #1908

Merged
brianstrauch merged 3 commits into
mainfrom
fix/strands-activity-tool-errors
Oct 1, 2026
Merged

brianstrauch merged 3 commits into
mainfrom
fix/strands-activity-tool-errors

Conversation

@brianstrauch

Copy link
Copy Markdown
Member

What changed

  • Report an activity failure's underlying message to the Strands model for activity-backed and MCP tools.
  • Pass the underlying exception to AfterToolCallEvent hooks.
  • Add workflow integration tests, documentation, and a changelog entry.

Why

Failed activities otherwise reach Strands as an ActivityError with a generic message, hiding the actual failure from the model and hooks. This matches the fix in temporalio/sdk-typescript#2467.

Validation

  • poe test -s -k 'failed_activity_tool_reports_cause or activity_tool_interrupt or test_mcp or test_tool' tests/contrib/strands (8 passed)
  • poe lint

@brianstrauch
brianstrauch requested review from a team as code owners September 30, 2026 19:52
@brianstrauch
brianstrauch enabled auto-merge (squash) October 1, 2026 21:26
@brianstrauch
brianstrauch merged commit 03cdb18 into main Oct 1, 2026
32 of 34 checks passed
@brianstrauch
brianstrauch deleted the fix/strands-activity-tool-errors branch October 1, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants