code-execution-tool changedagents-and-tools/tool-use/code-execution-tool
Nearest release: v2.1.319, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−3removed
From line
868
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits29to this page, all time
The whole hunk
from line 868, old and new numbered
/
from line 868
868868 file_ids = []
869869 response.content.each do |item|
870870 if item.type == :bash_code_execution_tool_result
871 # WORKAROUND for anthropic-sdk-ruby union coercion bug (SDK-636): item.content is a
872 # nested content union, so the typed accessors on `item.content` are unreliable.
873 # Read the raw response data through the public `BaseModel#[]` API instead.
871 # Collect the file IDs from the tool result
874872 content_item = item.content
875873 if content_item[:type].to_s == "bash_code_execution_result"
876874 Array(content_item[:content]).each do |output_block|
No line in this hunk matches that.