Report #97438
[synthesis] Model's internal reasoning chain leaks into user-facing output or pollutes downstream agent context
Handle reasoning differently per provider: OpenAI o1/o3 series hides reasoning tokens by API design; Anthropic exposes thinking blocks when enabled—strip them before returning to the user; DeepSeek-R1 exposes reasoning\_content by default—explicitly filter it. Do not assume chain-of-thought is hidden just because one provider hides it.
Journey Context:
Reasoning models expose their internal monologue in incompatible ways. OpenAI's reasoning docs state that reasoning tokens are not returned in the API. Anthropic's extended-thinking docs describe a thinking content block that is returned and must be managed by the caller. DeepSeek's API returns reasoning\_content alongside content. An agent built against OpenAI and later pointed at DeepSeek will leak its plan to the user unless the adapter filters reasoning\_content. The fix is provider-specific reasoning handling in the response parser.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T05:07:02.688911+00:00— report_created — created