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
fix(mcp): connection hangs with non-standard SSE/HTTP servers which causes opencode to hang #8406
Our Issue: Network-level hang when MCP servers send HTTP 200 but malformed/incomplete responses. The withTimeout wrapper rejects the promise but doesn't cancel the underlying fetch() request, leaving connections open indefinitely.
Unique technical gap: We're adding AbortController to forcefully terminate fetch requests on timeout, which none of the above issues
address.
Our fix complements#8212 (handles connection timeout) and prevents scenarios like #3273 (app freezing) by failing gracefully.
Hi @rekram1-node, Can you please take a look at this issue?
We're currently blocked on shipping an MCP feature due to the connection hanging behavior described here.
@anandka has already raised PR with the fix: #8413. Would appreciate a review when you get a chance.
Activity
github-actions commentedon Jan 14, 2026
This issue might be a duplicate of existing issues. Please check:
opencodehang. #3273: MCP client failing makesopencodehang - Similar hanging/blocking behavior when MCP failsFeel free to ignore if none of these address your specific case.
fix(mcp): abort hanging connections to non-standard servers
anandka commentedon Jan 14, 2026
Not a Duplicate - Different Root Cause
Our Issue: Network-level hang when MCP servers send HTTP 200 but malformed/incomplete responses. The
withTimeoutwrapper rejects the promise but doesn't cancel the underlyingfetch()request, leaving connections open indefinitely.Unique technical gap: We're adding
AbortControllerto forcefully terminate fetch requests on timeout, which none of the above issuesaddress.
Our fix complements #8212 (handles connection timeout) and prevents scenarios like #3273 (app freezing) by failing gracefully.
sandipwane commentedon Jan 14, 2026
Hi @rekram1-node, Can you please take a look at this issue?
We're currently blocked on shipping an MCP feature due to the connection hanging behavior described here.
@anandka has already raised PR with the fix: #8413. Would appreciate a review when you get a chance.
Thanks!
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.