{"repo":"NousResearch/hermes-agent","public_id":"75121","display_label":"Fix thinking-prefill marker causing Gemini 400 errors","summary":"A bug where thinking-only prefill sends a trailing model turn to Gemini, triggering 400 errors because reasoning stripping runs before the thinking-only drop pass. The fixes preserve the thinking-prefill marker so the drop pass can correctly strip trailing stubs.","subsystem":null,"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":82930,"merged_at":"2026-08-10T04:31:45+00:00"},"resolution":{"state":"resolved","by":"pr-82930"},"freshness":{"state":"verified","last_verified_at":"2026-08-10T04:31:45+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.6666666666666666},"fix_edges":[{"issue_number":75121,"pr_number":82930,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-08-10T04:31:45+00:00"}],"members":[{"kind":"issue","number":75121,"title":"[Bug]: Thinking-only prefill sends a trailing model turn to Gemini and 400s the turn, because reasoning stripping runs before the thinking-only drop pass","url":null,"state":"closed"},{"kind":"pr","number":75142,"title":"fix(agent): keep the thinking-prefill marker so the drop pass can strip trailing stubs","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#82930","number":82930}],"category":"merged_via","implication":"superseded"},"merged":false},{"kind":"pr","number":82930,"title":"fix(agent): keep thinking-prefill marker so drop pass can strip trailing stubs","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["agent/chat_completion_helpers.py","agent/conversation_loop.py","run_agent.py","tests/run_agent/test_thinking_only_sanitizer.py","tests/run_agent/test_thinking_prefill_trailing_turn.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}