{"repo":"NousResearch/hermes-agent","public_id":"31673","display_label":"Strip unsupported kwargs before Anthropic Messages calls","summary":"These items address a bug where Responses-API-only keyword arguments (such as 'instructions') were incorrectly passed through to the Anthropic Messages SDK, causing unexpected keyword argument errors. Fixes target the call sites to strip those kwargs before invoking Messages or stream().","subsystem":"agent","counts":{"members":3,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":1},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":42155,"merged_at":"2026-06-08T16:36:39+00:00"},"resolution":{"state":"resolved","by":"pr-42155"},"freshness":{"state":"verified","last_verified_at":"2026-06-08T16:36:39+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.6666666666666666},"fix_edges":[{"issue_number":31673,"pr_number":42155,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-06-08T16:36:39+00:00"}],"members":[{"kind":"issue","number":31673,"title":"Messages.stream() got an unexpected keyword argument 'instructions'` when continuing from a successful `vision_analyze` aux call","url":null,"state":"closed"},{"kind":"pr","number":31746,"title":"fix(anthropic): strip Codex/Responses-only kwargs at Anthropic call sites (#31673)","url":null,"state":"closed","close_reason":{"refs":[{"kind":"commit","value":"399b8ee5f0136e4b4c3cc4affdbf3bbf90b461c1","number":0},{"kind":"pr","value":"#42155","number":42155},{"kind":"pr","value":"#31673","number":31673}],"category":"implemented_elsewhere","implication":"superseded"},"merged":false},{"kind":"pr","number":42155,"title":"fix(anthropic): strip Responses-only kwargs before Messages SDK call (#31673)","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["agent/anthropic_adapter.py","agent/chat_completion_helpers.py","run_agent.py","tests/agent/test_anthropic_kwargs_sanitize.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}