KV cache reuse breaks for OpenAI tools clients that don't replay reasoning_content
Hello, I don't have any coding experience, just used Claude Fable to 'solve' an issue - pre-fill was triggered on some inputs. Then I asked it to describe the fix (Fable fixed it), in case it is useful. Here's the page:
Thanks for the notes-for-antirez writeup (and for testing this yourself first) — the diagnosis matched what I found reading the current source, right down to the exact functions involved. Opened a PR with the fix, tests, and a fuller writeup of the mechanism: #709
Kept it scoped to the DeepSeek/DSML path, since I couldn't verify the equivalent for GLM's history renderer (it keeps the opening <think> tag either way, so the toolless mechanism's byte-shape assumption doesn't transfer directly — flagged in the PR rather than guessing).