opencode Go gateway cuts off deepseek-v4.1-flash streams without finish_reason on 6-9% of calls

FFFengMJL · ghdev · 2026-10-19

A GitHub issue on anomalyco/opencode documents that between 15:41 and 17:05 UTC+8 on 2026-10-19, three concurrent agent sessions using the opencode Go inference gateway with deepseek-v4.1-flash hit 42 chat-completion streams (6.3%–8.6% per session) that ended after emitting content but without a terminal finishreason chunk or data: [DONE].

Key points:

A useful caution for agent developers building OpenAI-compatible stream parsers: guard against clean EOF by tracking both finishreason and [DONE].

Original post →

More from Infra

Infra channel →