Commit dc394cd
committed
Fix stuck 'thinking' status after compaction or agent-end retry
After compaction_end with willRetry=true (or agent_end with willRetry),
status is set to 'sending' and activity-phase to 'thinking', awaiting
agent_start or auto_retry_start. The prompt-start-wait fallback timer
(0.5s → idle) was only scheduled for user-sent prompts; server-initiated
retries had no fallback. If the server never sends the expected event,
the session remains stuck indefinitely.
Call --begin-prompt-start-wait when status becomes 'sending' after
compaction_end and agent_end, so the existing 0.5s fallback resets
to idle if no agent_start/auto_retry_start arrives.1 parent c64c72a commit dc394cd
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
649 | 655 | | |
650 | 656 | | |
651 | 657 | | |
| |||
771 | 777 | | |
772 | 778 | | |
773 | 779 | | |
774 | | - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
775 | 785 | | |
776 | 786 | | |
777 | 787 | | |
| |||
0 commit comments