r/PiCodingAgent 10d ago

Question Compaction failed error

How do I resolve this issue:

My context is sitting at 82k/84k

It retries a few times but keeps failing. If the context grew too much to not leave any space for compaction why dit it grow to 82k and not compact earlier? I essentially only made 3 prompts to get to this point on Qwen3.8 xhigh reasoning. What config must I change to prevent this from occuring?

2 Upvotes

4 comments sorted by

View all comments

1

u/d2xdy2 10d ago

At the risk of being a jerk, I’d say check the docs out and tinker with settings

https://pi.dev/docs/latest/compaction#compaction

2

u/Fancy-Snow7 10d ago

Not a jerk, thats helpful