ds4 icon indicating copy to clipboard operation
ds4 copied to clipboard

KV cache reuse breaks for OpenAI tools clients that don't replay reasoning_content

Open hennas-waifson opened this issue 3 months ago • 1 comments

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:

notes-for-antirez.md

hennas-waifson avatar Aug 05 '26 02:08 hennas-waifson

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).

Flor1an-B avatar Aug 05 '26 17:08 Flor1an-B