Environment
- OS: Windows 11
- opencode-mobile version: 1.4.0
- OpenCode CLI version: 1.17.3
- Node.js: v22.16.0
- Tunnel provider: Cloudflare (via winget)
Steps to reproduce
pm install -g opencode-ai → OK
2.
pm install -g opencode-mobile → OK
3.
px opencode-mobile install → OK (config updated, /mobile command created)
4. opencode serve → Server starts on 127.0.0.1:4096
Expected behavior
Plugin server should start on port 4097, auto-start a tunnel, and display QR code.
Actual behavior
- OpenCode server starts on 127.0.0.1:4096 ✓
- Plugin server on port 4097 never starts (no process listening)
- /push-token endpoint returns connection refused
- ~/.config/opencode/tunnel.json NOT created automatically
- Manually registering push token via /mobile ExponentPushToken[xxx] does not work because the plugin tool is not loaded
What works
- Cloudflare tunnel can be started manually and points to 4096
- But OpenCode server returns 401 on all endpoints (no auth-free endpoints for mobile registration)
Suspected root cause
The plugin does not initialize during opencode serve. The config correctly references opencode-mobile@latest in the plugins array, but the plugin code appears to never execute (no [opencode-mobile] log output, no port 4097 listener).
Environment
Steps to reproduce
pm install -g opencode-ai → OK
2.
pm install -g opencode-mobile → OK
3.
px opencode-mobile install → OK (config updated, /mobile command created)
4. opencode serve → Server starts on 127.0.0.1:4096
Expected behavior
Plugin server should start on port 4097, auto-start a tunnel, and display QR code.
Actual behavior
What works
Suspected root cause
The plugin does not initialize during opencode serve. The config correctly references opencode-mobile@latest in the plugins array, but the plugin code appears to never execute (no [opencode-mobile] log output, no port 4097 listener).