Craig

Results comments of Craig

Good catch — moved `db.flush()` inside the `begin_nested()` context in 4b85fcb.

Nice of you to re-open this! I closed it because I ended up forking and porting the whole thing to use opencode instead of claude code. But I imagine this...

Counterintuitively you should try setting the reasoning to 'max'. I can't find it now, but on one of the LLM subreddits there was thread were a user did some testing...

The mlx-lm-level symptom (batched decode logit corruption, reproduced on Gemma-4 and unquantized bf16 Qwen3) is filed at ml-explore/mlx-lm#1457.

Apologies — this duplicates #3494, which was fixed by #3498 (merged 2026-05-11, with a regression test). I reproduced it on 0.31.2, which predates that fix; it's resolved on `main`. Closing...

OpenCode has this issue as well if you use their plan mode, or if you queue messages during generation. They inject \ blocks which mess up the cache and trigger...