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
- Start OpenCode server on remote machine:
opencode web --hostname 0.0.0.0 --port 4097
- Open OpenCode desktop client
- Connect to remote server:
http://<server-ip>:4097
- Connection shows as successful (green indicator)
- Project directories are visible in the sidebar
- Send a message to AI
- 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
- Start OpenCode server on remote Linux machine:
opencode web --hostname 0.0.0.0 --port 4097
- Open OpenCode desktop client on Windows
- Connect to remote server:
http://<server-ip>:4097
- Connection shows as successful (green indicator)
- Project directories are visible in the sidebar
- Send a message to AI
- 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)
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
http://192.168.50.222:4097opencodeanddeepseekproviders on the serverSteps to Reproduce
opencode web --hostname 0.0.0.0 --port 4097http://<server-ip>:4097Expected Behavior
AI should respond using the server's configured API providers.
Actual Behavior
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
opencode web --hostname 0.0.0.0 --port 4097http://<server-ip>:4097Screenshot 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)