opencode silently stops on empty LLM responses; 1.18.20 claims retry fix
kevinkern · x · 2026-08-21
An opencode issue (#41469) describes that when a model endpoint returns an empty completion (0 tokens, unknown finish reason), opencode treats it as a successful turn: the session loop exits silently with no error or retry, so tasks appear to suddenly stop mid-run. The reporter included repro steps and expected behavior (retry or surface an error). kevinkorn says the retry issue is fixed in opencode 1.18.20, though he already runs that version; since pi struggles too, it's likely a network/endpoint problem — the endpoint sometimes returns empty responses, and harnesses handle them differently: opencode treated it as success while pi retries.
Related event: opencode Fixes Silent Session Exit on Empty API Responses(2 posts)→
More from coding & agent
- AI SDK author shares 25-min talk on his AI SDK factory for issue backlogs — lgrammel · 2026-08-21
- Recursive self-improvement is closer than it sounds, argues Philipp Schmid — _philschmid · 2026-08-21
- Building a searchable knowledge base from 14,000 tweets using Claude Code — eptwts · 2026-08-21
- Redis Launches Official Codex Plugin for Robust Development Workflows — npew · 2026-08-21
- NVIDIA looks back at its agent loop that auto-generates GPU kernels with DeepSeek-R1 — bingxu_ · 2026-08-21
- The future of vibe coding: redesigning the human-agent interface — pranavmarla · 2026-08-21