Commit 1d19eab
tui: raise stream stall timeout from 2 to 5 minutes
The client-side stall watchdog in `detect_and_cancel_stall` cancelled any
turn whose server stream went silent for 120s. Reasoning-heavy models
(GPT-5.5 with high effort, Claude extended thinking, Gemini deep mode)
can legitimately stay silent on the wire for several minutes during a
single internal step, especially with non-trivial input contexts.
Repro from `~/.jcode/logs/jcode-2026-04-28.log`: three
"Stream stall detected: no server events for Some(120.x s), cancelling"
warnings during a single GPT-5.5 session over persistent WS, all
firing exactly at 120s with no upstream error.
Bump the threshold to 300s. WS dead-connection detection is
independent (`provider::openai::persistent_ws_idle_*`), so this only
affects the "model is thinking quietly" case. A future improvement
could plumb provider-side reasoning-preview events through to reset
the watchdog on signal rather than time, but a wider window covers
the common case today.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ad139a9 commit 1d19eab
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
781 | 786 | | |
782 | 787 | | |
783 | 788 | | |
| |||
0 commit comments