Resuming a session will not render correct context level
Author: filson1Created Sep 26, 2026Updated Sep 28, 2026
Labelsbug
What happened?
When resuming a session that originally was started with a larger than 8.2k context size on llama.cpp, Pi will show excessive context use: 1752.6%/8.2k (auto). And on first prompt, it'll try to compact unless manually aborted. After aborting, it'll realize the context size was wrong and update to the served context size.
Steps to reproduce
Start Llama.cpp in serve mode with more than 8.2k context size. Resume a Pi session started on the Llama.cpp configured context size. The context size counter is now not showing correct context use.
Llama.cpp v.0.5.0.
Expected behavior
Resumed context would match the context the session was started at.
Version
0.87.1
Source: earendil-works/pi