-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When the WiFi connection has packet loss (even temporarily), streaming HTTP connections to the LLM provider stall silently. The UI shows no indication that anything is wrong and the agent chat hangs indefinitely with no error, timeout message, or retry prompt.
Using mtr I confirmed 60–80% packet loss between my machine and router during these hang events. The underlying network issue is on my end, but the OpenCode UI gives no feedback that the stream has stalled.
Expected behavior:
Display a message like "Connection interrupted" when the stream stalls for more than N seconds
Or surface a timeout error with an option to retry rather than hanging silently
The ideal fix would be to better handle streaming loss (see #8002) , but I think the best first step would just be detecting the loss and displaying a message. Currently, the "thinking" indicator keeps bouncing back and forth so I don't know if the provider is just taking its sweet time or if the connection dropped.
Update: the bot identified a few other issues that are related but asking for more thorough fixes, this request is just for a minor UI update in the meantime