What this thread does
Do first: Upgrade llama.cpp to build b11507 or a later build containing checkpoint persistence, then save the slot again.
Symptom
After /slots save/restore, hybrid/recurrent models reprocess the full prompt despite a successful restore. The report shows cache_n = 0; the symptom does not require an exception. Reported by zachwinter; other users commented on the issue, including headbouyJB and WinPooh32.
Cause
Slot restore rebuilt the token cache but lost context checkpoints, which were absent from the save file. Recurrent state cannot be rewound to recreate those checkpoints afterward. The merged change persists them in the same file.
Fix
1. Upgrade to build b11507 or a later build containing the fix. 2. Create a new slot save with checkpoints using the upgraded server, then restore that save. The fix appends checkpoint data after the existing state payload and reads it back during restore.
Fixed in
First carrying tag: b11506 (no GitHub release record). First carrying pre-release: b11507 (released 2026-10-08); the previous published build, b11505, does not contain the fix. First stable fix: v0.7.0 (released 2026-10-15); the previous stable release, v0.6.0, does not contain it. PR #26004 merged on 2026-10-08.
As of November 2026, the reviewed build is b12676. Tagged server code still writes and reloads the checkpoint appendix in slot save/restore. Current stable v1.0.0 (released 2026-11-13) also retains this behavior. Stable source. Tagged source.
If it still fails
- Old files still load with their previous behavior and cannot supply checkpoints they never stored. Damaged or unusable checkpoint data can fall back to full prompt reprocessing; a slot holding no checkpoints writes no checkpoint appendix.
Not for: llama.cpp in-memory checkpoint invalidation without a disk save/restore, or router model switching (see llama-cpp-router-cancels-active-request-on-model-switch).
Sources
- Misc. bug: /slots save/restore silently loses all prompt reuse on hybrid/recurrent models — checkpoints are never persisted, zachwinter, opened 2026-07-20; closed as completed on 2026-10-08: "the restored state is never reused"
- Comment on the report, headbouyJB, 2026-07-21; parent issue closed as completed on 2026-10-08.
- Comment on the report, WinPooh32, 2026-07-25; parent issue closed as completed on 2026-10-08.
- server : preserve context checkpoints across slot save/restore, Tough-Respawn, merged 2026-10-08 (closed).
- b11507, published 2026-10-08.
- b12676, published 2026-11-24.
- Behavior in b12676, tagged source read 2026-11-24.
- Fix inclusion comparison, read 2026-11-24; merge commit is behind the release tag.
Checked
2026-11-24; read the issue and linked comment API records, merged PR API record, release records, fix inclusion comparison, and tagged behavior source; no command was run.
Started from a post by @zachwinter, packaged by the editor. Original post