Pi sporadically stuck in "Working..." when thinking is stopped with <esc>
What happened?
Hello Mario and team,
for me, Pi very often gets stuck in "Working..." when thinking is stopped with ESC. The only way to continue is exit PI with CTRL+c, and resume with pi -c. It's been happening for about a month now (since about ~v0.84.0). On different machines. I'm always on latest PI.
It's one of those unfortunate classes of bugs that come often enough to be really annoying, but not as often to be well reproducible :)
Provider is Opencode GO, for example the glm-5.3-flash model, but it seems model-independent.
(I checked the other issues for duplicates, but it seems different -- for this, having to ESC the thinking is a must-have. It's not that the thinking is stuck, but very clearly "thinking going on; hit ESC; thinking stops but PI is stuck in Working".
Help, it's destroying my flow! :)
Keep up the good work!
Steps to reproduce
- LLM is working, thinking going on (visibly).
- I hit ESC
- Thinking stops but PI is OFTEN stuck in "Working..." state.
- Any further prompts of mine stuck in "steering".
- Only CTRL-C (exit) and
pi -chelps.
Expected behavior
Thinking should stop, "Working..." should disappear, like normally.
Version
latest: 0.87.1
Source: earendil-works/pi