You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
llm: clean stream EOF without finish event can loop generation indefinitely (UI stays busy) #407
Severity: high | global review pass P4 (session lifecycle).
packages/llm/src/protocols/openai-responses.ts:959-977; packages/llm/src/route/client.ts:279-295,382-390; packages/opencode/src/session/processor.ts:724-731,788-794; packages/opencode/src/session/prompt.ts:1369-1374,1506-1516: a native OpenAI Responses stream that closes before a terminal event lets the processor finish cleanly without setting finish or error. The prompt loop's exit and step-cap checks require a truthy lastAssistant.finish, so they are skipped and another generation starts - requests continue until interrupted while the UI stays busy.
Repro: provider stream closes without a terminal/finish event (proxy/gateway truncation); the session regenerates in a loop. Fix size: medium.
Activity
fix: fail native streams that end without a terminal event (#407) (#445)
agenteinstinct1-max commentedon Oct 21, 2026
Fixed by #445 (merged into dev-vibecoded).
fix: settle rpc calls when postMessage throws instead of leaking them (…