API endpoints returning empty responses cause framework behavior differences

kevinkern · x · 2026-08-21

Discusses an issue where AI API endpoints occasionally return empty responses (0 output tokens with unknown finish reason). Notes this affects different frameworks differently: opencode treats it as a success without retrying, while pi automatically retries.

Related event: opencode Fixes Silent Session Exit on Empty API Responses(2 posts)→

Original post →

More from coding & agent

coding & agent channel →