Pi is awesome until compaction hits. I think one in every two compactions it’s failed on me ie didn’t know how to continue :(
I never really rely on compaction. Instead, I instruct the coding agents to maintain a handoff markdown document across sessions. Ymmv.
Something is misconfigured on your end. I have had some trouble where parameters were incorrect, but otherwise I have used several vendors (local, openrouter, ollama cloud, kimi, deep seek) and it generally works.
Most likely context length parameters aren’t set quite right for your model/provider and you genuinely run out of context during compaction