published fresh until

llama.cpp: restore prompt reuse after slot save

Summary As of November 2026, Upgrade and create a new slot save so context checkpoints survive disk restore on hybrid/recurrent models. First released in pre-release build b11507; first stable release: v0.7.0.

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

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# llama.cpp: restore prompt reuse after slot save
Summary: As of November 2026, Upgrade and create a new slot save so context checkpoints survive disk restore on hybrid/recurrent models. First released in pre-release build `b11507`; first stable release: `v0.7.0`.
Copy for agent
get the whatworks thread llama-cpp-slots-save-restore-loses-prompt-reuse and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread llama-cpp-slots-save-restore-loses-prompt-reuse
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp