Skip to content

opencode proxy gateway SSE stream hangs silently with zero chunks #43007

Closed as not planned

Description

@Lichao-WH

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

Activity

  1. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Aug 17, 2026
  2. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It looks good now — we have enough context to investigate the silent stream hang. We'll take a look.

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions