-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Common issues and how to fix them.
Symptom: The extension shows "Could not start opencode" or the connection banner stays red.
Fix:
- Install opencode from opencode.ai
- Verify:
opencode --versionin your terminal - If installed but not on PATH, set
opencode.binaryPathin settings - Note: If primary spawn fails, the extension tries an SDK fallback launcher automatically
Symptom: Chat shows a red error banner with a Retry button.
Cause: This comes from the AI model provider, not the extension. Common reasons:
- 💳 Rate limited — you've exceeded API quota
- 🔑 Auth failure — API key is invalid or expired
- 💰 No credits — account balance is zero
- 🔌 Provider outage — the service is temporarily down
Fix:
- Check your API key and credits with the provider
- Switch to a different model from the header dropdown
- Click ↻ Retry once the issue is resolved
The extension automatically retries transient errors (502/503/504, timeouts, rate limits) up to 3 times with exponential backoff before showing the error.
Symptom: Connection banner shows "Server exited (code X). Restarting…" repeatedly.
How it works: The extension auto-restarts the server up to 5 times with backoff (1s → 2s → 4s → 8s → 15s). After 5 failures, it stops and shows: "Server crashed repeatedly."
Fix:
- Check Output panel → opencode server for crash logs
- Run
opencode servedirectly in your terminal to see the error - After fixing the issue, use
opencode: Restart Serverfrom the command palette (this resets the crash counter)
Symptom: "Timed out after 60s waiting for the server to print its URL."
Fix:
- Ensure
opencodebinary is correct: tryopencode servein terminal - Check if another process is blocking
- On Windows, the extension uses
shell: true— check for antivirus interference - Try setting
opencode.serverUrlto a manually started server:opencode serve --print-logs
Symptom: The sidebar opens but shows nothing.
Fix:
-
Developer: Reload Windowfrom the command palette - Check Developer Tools Console (
Help → Toggle Developer Tools) for errors - Disable other extensions that might conflict
Symptom: Images or files can't be attached.
Fix:
- Make sure you're pasting/dropping into the input area (look for the dashed drop zone)
- Check file size — very large files may fail to convert to base64
- Verify the file type is supported (images, text, code, data files)
Symptom: In Manual or Auto mode, tool actions run without asking.
Check:
- Verify your mode in the header dropdown — ⏩ Bypass auto-approves everything
- In Auto mode, only risky actions (shell, network, delete, install) prompt
-
Plan mode uses the
planagent which may not trigger tool calls
Symptom: Extension doesn't work over SSH or Remote.
Fix:
- Install opencode on the remote machine
- Set
opencode.serverUrlto point to a server running on the remote - The extension runs in the remote extension host, so opencode must be accessible there
- 🐛 Open an issue with reproduction steps
- 💬 Ask in Discussions
- 📋 Include the Output panel logs (Output → opencode server)