anomalyco / anomalyco/opencode

opencode proxy gateway SSE stream hangs silently with zero chunks

Open
#43,007 1 comment 0 reactions 1 assignee View on GitHub

@neriousy is already working on this.

Since Aug 17, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Model: deepseek-v4-flash-free via providerID=opencode
Symptom: Stream connection established successfully, but server sends zero data for 29s, then CLI exits loop silently with no error. Next request in a new session works fine.
Evidence: See timestamps 06:44:24.868 (stream start) → 06:44:54.330 (silent exit) vs healthy session starting at 06:46:47.005
Expected: Gateway should enforce first-chunk timeout and return an error instead of hanging indefinitely

Plugins

No response

OpenCode version

1.18.18

Steps to reproduce

restart computer
open poweshell,
change to work folder
opencode

then say hello, always loading, I changed the model to any opencode Zen/GO model, always, loading .

If I change to other providers and model, it works.

only happend on TUI, my desktop version works ok

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

my opencode log here:

timestamp=2026-08-17T06:44:22.621Z level=INFO run=289a9120 message=cancel session.id=ses_001ff0fa3ffe9LslzFrYsm2oW6
timestamp=2026-08-17T06:44:22.626Z level=ERROR run=289a9120 message=process session.id=ses_001ff0fa3ffe9LslzFrYsm2oW6 messageID=msg_00e764893002VX4jghHNKYEBu0 error=Aborted stack=undefined
timestamp=2026-08-17T06:44:24.342Z level=INFO run=289a9120 message=loop session.id=ses_001ff0fa3ffe9LslzFrYsm2oW6 step=0
timestamp=2026-08-17T06:44:24.815Z level=INFO run=289a9120 message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:44:24.867Z level=INFO run=289a9120 message=process session.id=ses_001ff0fa3ffe9LslzFrYsm2oW6 messageID=msg_00e76d6ba00249uTY76NETzGue
timestamp=2026-08-17T06:44:24.868Z level=INFO run=289a9120 message=stream providerID=opencode modelID=deepseek-v4-flash-free session.id=ses_001ff0fa3ffe9LslzFrYsm2oW6 small=false agent=plan mode=primary
timestamp=2026-08-17T06:44:24.869Z level=INFO run=289a9120 message="llm runtime selected" llm.runtime=ai-sdk llm.provider=opencode llm.model=deepseek-v4-flash-free
timestamp=2026-08-17T06:44:32.250Z level=INFO run=289a9120 message=cleanup prune=7.days
timestamp=2026-08-17T06:44:53.831Z level=INFO run=289a9120 message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:44:54.295Z level=INFO run=289a9120 message=loop session.id=ses_001ff0fa3ffe9LslzFrYsm2oW6 step=1
timestamp=2026-08-17T06:44:54.330Z level=INFO run=289a9120 message="exiting loop" session.id=ses_001ff0fa3ffe9LslzFrYsm2oW6
timestamp=2026-08-17T06:46:45.698Z level=INFO run=0e0c8e8d message=replied requestID=que_00e72d2ad001ONU5q00uO7eCK3 answers="[["Option A (Recommended)"],["Option B (Recommended)"],["Option C (Recommended)"],["Option D (Recommended)"]]"
timestamp=2026-08-17T06:46:46.122Z level=INFO run=0e0c8e8d message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:46:46.560Z level=INFO run=0e0c8e8d message=loop session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx step=3
timestamp=2026-08-17T06:46:46.995Z level=INFO run=0e0c8e8d message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:46:47.004Z level=INFO run=0e0c8e8d message=process session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx messageID=msg_00e790224002rRZwDOHDSdWt7B
timestamp=2026-08-17T06:46:47.005Z level=INFO run=0e0c8e8d message=stream providerID=opencode modelID=deepseek-v4-flash-free session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx small=false agent=plan mode=primary
timestamp=2026-08-17T06:46:47.006Z level=INFO run=0e0c8e8d message="llm runtime selected" llm.runtime=ai-sdk llm.provider=opencode llm.model=deepseek-v4-flash-free
timestamp=2026-08-17T06:47:27.929Z level=INFO run=0e0c8e8d message=evaluated permission=grep pattern= action.permission=* action.action=allow action.pattern=*
timestamp=2026-08-17T06:47:28.154Z level=INFO run=0e0c8e8d message=evaluated permission=grep pattern= action.permission=* action.action=allow action.pattern=*
timestamp=2026-08-17T06:47:29.983Z level=INFO run=0e0c8e8d message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:47:30.500Z level=INFO run=0e0c8e8d message=loop session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx step=4
timestamp=2026-08-17T06:47:30.983Z level=INFO run=0e0c8e8d message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:47:30.995Z level=INFO run=0e0c8e8d message=process session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx messageID=msg_00e79adc7002ziMRN6Umwx12YG
timestamp=2026-08-17T06:47:30.995Z level=INFO run=0e0c8e8d message=stream providerID=opencode modelID=deepseek-v4-flash-free session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx small=false agent=plan mode=primary
timestamp=2026-08-17T06:47:30.996Z level=INFO run=0e0c8e8d message="llm runtime selected" llm.runtime=ai-sdk llm.provider=opencode llm.model=deepseek-v4-flash-free
timestamp=2026-08-17T06:47:47.401Z level=INFO run=0e0c8e8d message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:47:47.858Z level=INFO run=0e0c8e8d message=loop session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx step=5
timestamp=2026-08-17T06:47:47.861Z level=INFO run=0e0c8e8d message="exiting loop" session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx
timestamp=2026-08-17T06:51:10.389Z level=INFO run=0e0c8e8d message=loop session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx step=0
timestamp=2026-08-17T06:51:10.823Z level=INFO run=0e0c8e8d message=tracking hash=f9682d965ffcdc2dc7d5b68dde95af5466388cd3 cwd="" git=""
timestamp=2026-08-17T06:51:10.831Z level=INFO run=0e0c8e8d message=process session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx messageID=msg_00e7d08b80029L9rueOSBoEUnn
timestamp=2026-08-17T06:51:10.832Z level=INFO run=0e0c8e8d message=stream providerID=opencode modelID=deepseek-v4-flash-free session.id=ses_ff19c9c64ffe7CGLdt1bqxO7zx small=false agent=plan mode=primary
timestamp=2026-08-17T06:51:10.833Z level=INFO run=0e0c8e8d message="llm runtime selected" llm.runtime=ai-sdk llm.provider=opencode llm.model=deepseek-v4-flash-free

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.