problem
(this is light, sorry, i'll update the issue when it happens again with more details and try to get something reproducible)
when you do this:
- agent is running, in "thinking" state
- interrupt (stop or esc)
- send a new message
then:
- the UI still shows the original thinking spinner, still spinning, in addition to the new state. like this:
[prompt A]
[some agent output]
⌛ thinking...
[prompt B]
🧠 booping...
- the agent seemingly finishes the next turn (in response to
prompt B)
- agent never outputs, it just says
Interrupted by user
- as if the interruption was applied, but also queued up for later
- send another message (
prompt C) and it starts streaming the response to user prompt B
- turn finishes
- agent immediately starts working on
prompt C
root cause
no clue yet, but it feels like:
- the interruption is correctly applied during the thinking state, after
prompt A
prompt B is submitted and the agent starts on it, but somehow the interrupt signal is still queued up
- agent finishes processing
prompt B but then receives the queued interrupt signal
prompt C triggers the agent but it has queued output from prompt B??
prompt B output finishes streaming, agent immediately picks up prompt C as if it was queued?
problem
(this is light, sorry, i'll update the issue when it happens again with more details and try to get something reproducible)
when you do this:
then:
prompt B)Interrupted by userprompt C) and it starts streaming the response touser prompt Bprompt Croot cause
no clue yet, but it feels like:
prompt Aprompt Bis submitted and the agent starts on it, but somehow the interrupt signal is still queued upprompt Bbut then receives the queued interrupt signalprompt Ctriggers the agent but it has queued output fromprompt B??prompt Boutput finishes streaming, agent immediately picks upprompt Cas if it was queued?