GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — OpenCode hangs indefinitely with @ai-sdk/openai-compatible although backend completes successfully · Issue #46581 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionDescriptionEnvironment
ProblemOpenCode never finishes responding. The UI remains in the loading state forever. However, the backend successfully completes the request. Reproduction
Result:
Backend evidence9router logs show:
So the backend successfully finishes the request. InvestigationI inspected OpenCode source code. Relevant findings:
Spinner is not stopped when the "finish" event arrives. Instead it only stops after: Stream.runDrain() Therefore if fullStream never finishes, the UI remains loading forever. Possible causeFor @ai-sdk/openai-compatible providers, OpenCode automatically injects: includeUsage = true If the backend stream does not produce the expected usage event (or produces it in an incompatible format), fullStream may never complete. This matches the observed behavior: Backend: Frontend: ExpectedOpenCode should exit loading once the backend has completed the stream. Additional informationI already confirmed:
Therefore the issue appears to be in the OpenCode streaming lifecycle rather than request dispatch. PluginsNo response OpenCode versionNo response Steps to reproduceNo response Screenshot and/or share linkNo response Operating SystemNo response TerminalNo response Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |