simonw--llm
1a56805ceb
The previous commit wired up encrypted_content round-trip but only tested that the data flows through correctly on a single tool round- trip. This adds a multi-turn cassette test that proves the full interleaved-reasoning capability: - Each turn produces fresh reasoning_tokens (not just the first) - Every prior reasoning block is round-tripped on every subsequent turn (the Nth turn echoes >= N-1 reasoning items) - ReasoningParts persisted on the assistant messages carry the same encrypted_content + id that gets sent back on the wire The puzzle is shaped so the model can't parallelize tool calls - each db_lookup result tells it the next key to use, forcing the model to think between calls. The recorded 4-turn chain shows reasoning_tokens of 45/98/196/17 across turns with reasoning items accumulating in every outgoing input. This is the GPT-5-class capability that Chat Completions can't deliver because it discards reasoning between turns.