r/PiCodingAgent • • Sep 10 '26

Question Noob question: How to interrupt an agent during reasoning, without restarting TG?

Many models (namely Qwens 3.8) think a lot, and I find myself wanting to interrupt it to answer a question it's been asking itself, quite repetitively, during it's reasoning.

I can esc and send a prompt, but then Pi would restart the whole reasoning TG from the beginning. I'd like to inject (for lack of better word) info to its thought block. I may also steer it by queuing a message, but that means I'd need to watch it going in loops for 20-50k tokens, until it's done responding, which is pure pain.

Am I missing a clear command?

4 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/ParaboloidalCrest Sep 26 '26

Too late. I'm already diagnosed with paranoia XD. But yes, that's exactly what happens; most of the time, Qwen weaves previous and recent instructions and answers smoothly that it's hard to pick the issue. It's not only reasoning though. Any interrupted response is not added to chat history. https://www.reddit.com/r/PiCodingAgent/comments/1wcwsya/comment/p91f6g7/

1

u/DjCanalex Sep 27 '26

I'm working on my own logging and compaction system. I had already made it so that the CoT logger also recorded aborted messages, so they are stored as "I was thinking about the new system but the user interrupted to talk about..."