Skip to content

OpenCode Desktop App Goes Offline After Consistent Time Period #21199

Closed as not planned

Description

@ozcan81

Description

The local server connection drops consistently after a short period of time (every session). The app requires restarting to reconnect. This happens on WiFi network.

Technical Details:

Connection type: Local server (SSE)
Power settings: Sleep/hibernation disabled (not the issue)
Memory usage: Normal (not the issue)
Additional Context:

Happens consistently on WiFi
Not related to computer sleep
Not related to memory usage

Plugins

No response

OpenCode version

No response

Steps to reproduce

1- Start OpenCode desktop app
2- Have a conversation for a few minutes
3- Connection drops - app shows offline/disconnected

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Activity

  1. github-actions commented on Apr 6, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. ozcan81 commented on Apr 6, 2026

    @ozcan81
    Author

    I figured out the issue. It was about the the capacity of all sessions for the changes that should be commit via git. When I commit all changes server issue solved. Thanks.

    Update:

    • I think the problem is related to git changes.
  3. ozcan81 commented on Apr 6, 2026

    @ozcan81
    Author

    I thought it was fixed but now instead of a a short time period, local server goes offline after a long time period. Please solve this issue quickly.

  4. ozcan81 commented on Apr 6, 2026

    @ozcan81
    Author

    I found the bug, when ai model changes onlly 1 line of a document, instead of 1 line it records like it changed the whole doc which makes it getting stuck at the limits. Check the image url I have shared with you at the end of the page:

    https://prnt.sc/yIFMYAROG5kc

  5. herjarsa commented on Apr 25, 2026

    @herjarsa

    Update: PR #19116 appears to fix this exact issue

    I've confirmed that PR #19116 (fix/vpn-switch-reconnect branch) addresses the exact problem described here:

    • Network error retry loop with bounded 5 attempts + exponential backoff
    • MCP tool auto-reconnect for remote servers
    • Better network error detection (ETIMEDOUT, ECONNRESET, ENETUNREACH, etc.)
    • 30s SSE chunk timeout default
    • UI reconnecting status indicator

    The PR is currently in draft state but all CI checks pass (8/8).

    Link to PR: #19116

    I'll be testing this PR locally and will report back with results.

  6. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  7. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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