* gateway: a Chat turn's thinking is read in every spelling the client sends it back in
A client sends the previous assistant turn's thinking back in reasoning_content (DeepSeek's, which OpenCode and most clients send), reasoning (OpenRouter's) or reasoning_details (OpenRouter's structured one). parseChat read only reasoning_content, so a request translated to a non-Chat upstream lost the thinking of every turn sent another way and the model went on without its own reasoning, which a tool-calling session shows from its second turn on. chattidy's passthrough has read all three since mistralThinking (#494); the parse layer never got the same reader.
The assistant branch now reads the thinking through reasoningText, messageReasoning's own reader, in the order the passthrough keeps it: reasoning_content, else reasoning, else reasoning_details' text.
TestParseChatReadsEveryReasoningSpelling (a tool-calling turn per spelling) and TestParseChatTakesTheFirstReasoningSpellingSent fail without the change ("the assistant turn's parts: [{Kind:tool_call ...}]"). go vet -tags nogui ./internal/gateway/..., builds for windows, darwin and linux, and the package's chat/reasoning/thinking tests pass.
* docs: the Chat parse layer reads the thinking's spellings too
The change reads a Chat turn's thinking through messageReasoning and
reasoningText, so parseChat takes the same three spellings the
passthrough has taken since mistralThinking (#494). AGENTS.md asks for the
owning reference to be updated in the same PR, and gateway-routing.md said
nothing of it: its reasoning bullets are about holding a reply's own
reasoning for a failover and about what a translated Responses reply gives
Codex, not about what a client sends back.
A bullet beside the held-reasoning one now records the spellings, the
order they are read in, and the gap that was there: the parse layer read
reasoning_content alone, so a tool-calling session whose client spelled it
another way went on without the model's own reasoning.
---------
Co-authored-by: TryWorld <TryWorld2026@users.noreply.github.com>