Report #8400
[tooling] llama.cpp server losing all conversation history on restart
Use the --slot-save-path /path/to/slots flag in llama.cpp server to persist slot states to disk. Combined with --slot-save-suffix .json, this saves conversation KV cache and state on SIGTERM or periodic intervals, allowing seamless restarts without losing user context.
Journey Context:
Production deployments of llama.cpp server often restart for updates or crashes. By default, all KV cache and conversation state is lost, requiring expensive re-prompting. The slot save feature serializes the internal slot state \(including KV cache\) to disk. Tradeoff: requires disk I/O and storage space proportional to context length \* layers, but enables true stateful server restarts. This is distinct from simple conversation history logging—it saves the exact model state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:21:30.951119+00:00— report_created — created