Skip to content

Desktop client connected to remote server: AI model does not respond, stuck on "thinking" #17976

Closed as not planned

Description

@wc4440222

Description

Description

When connecting the OpenCode desktop client to a remote OpenCode server, sending messages results in the AI model not responding. The UI shows "thinking..." indefinitely, but the server logs show no incoming requests.

Environment

  • Server: OpenCode running on Linux (fnOS), started via systemd service on port 4097
  • Desktop Client: OpenCode desktop app on Windows, connected to http://192.168.50.222:4097
  • Network: Same LAN, desktop client shows green connection indicator
  • API Providers: Configured both opencode and deepseek providers on the server

Steps to Reproduce

  1. Start OpenCode server on remote machine: opencode web --hostname 0.0.0.0 --port 4097
  2. Open OpenCode desktop client
  3. Connect to remote server: http://<server-ip>:4097
  4. Connection shows as successful (green indicator)
  5. Project directories are visible in the sidebar
  6. Send a message to AI
  7. UI shows "thinking..." indefinitely, no response

Expected Behavior

AI should respond using the server's configured API providers.

Actual Behavior

  • Desktop client: stuck on "thinking..."
  • Server logs: no incoming request logged
  • Server WebUI (browser): works correctly, AI responds normally
  • Desktop client local mode (no remote connection): works correctly

Workaround

Using the server's WebUI via browser works correctly.

Additional Notes

It appears that when the desktop client connects to a remote server, API requests are not being routed through the server's configuration. The desktop client seems to attempt using local configuration, but since it's connected to a remote server, the requests fail silently.

Plugins

None

OpenCode version

v.1.2.27

Steps to reproduce

  1. Start OpenCode server on remote Linux machine: opencode web --hostname 0.0.0.0 --port 4097
  2. Open OpenCode desktop client on Windows
  3. Connect to remote server: http://<server-ip>:4097
  4. Connection shows as successful (green indicator)
  5. Project directories are visible in the sidebar
  6. Send a message to AI
  7. UI shows "thinking..." indefinitely, no response

Screenshot and/or share link

N/A - Issue is about remote connection, cannot use /share from server when desktop client is stuck

Operating System

Server: Linux (fnOS, Debian-based) ,Desktop Client: Windows

Terminal

Server: systemd service,Desktop Client: N/A (GUI application)

Activity

  1. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  2. github-actions commented on Jul 3, 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