* feat(sandbox): add KVM-backed agent sandboxing via microsandbox * feat(sandbox): route host-shell surfaces into microVM via shell wrapper * feat(sandbox): route host-shell surfaces into microVM via shell wrapper * fix(sandbox): harden enforcement validation and backup handling * fix(sandbox): bound lifecycle queue and harden install/backup paths Bound the OpenCode supervisor lifecycle queue to one running plus one pending operation so repeated restarts cannot stack unbounded HTTP requests, while exempting stop() so shutdown is never dropped. Reject enforcement backups that carry no recoverable removed sections, matching the existing fail-closed handling of unparseable backups. Install OpenCode through a private mktemp staging directory instead of the predictable /tmp/opencode path. Use named path/os imports in the files added by this branch. * refactor(sandbox): remove OpenCode version allowlist gating under enforcement * fix(settings): use resolved opencode binary and verify installed version * refactor(sandbox): scope enforcement to agent bash tool only * fix(sandbox): plan bash against factory directory and attest runtime tmpfs; align permission reply API * fix(sandbox): pin neutral entrypoint and persist opencode upgrades across rebuilds * fix(sandbox): align canonical spec with msb 0.6.8 runtime defaults * feat(sandbox): show unwrapped sandboxed bash commands in message UI * refactor(sandbox): pin shell shim to sandbox agent bash without rewriting commands * feat(sandbox): route notifications through a host-side manager tool * feat(sandbox): route all assistant capabilities through the ocm tool Add an allow-listed request action to the generated ocm plugin so agents reach settings, assistant reload, repos, git-info, workspaces, and schedules through the tool instead of curling the internal API with a bearer token, which is impossible under sandboxing. Rewrite the curl-based skills to use the ocm request action and drop the apiBaseUrl plumbing. Remove the now-unread .opencode/internal-token file and the sandbox tmpfs mask that hid it; attestation now rejects any tmpfs other than the runtime /tmp mount. * fix(sidebar): wire new-session and new-schedule actions to every page AssistantRedirect never registered a listener for the sidebar's new-session event, so the desktop sidebar CTA on /assistant was a no-op; the Schedules pages had the same gap for new-schedule. Make useSidebarAction the single source of truth for action keys and event dispatch, and warn when an action is dispatched with no mounted handler so an unhandled CTA fails loudly instead of silently. Wire the missing listeners to the existing per-page handlers. * feat(sandbox): forward git credentials into the microVM and add sandbox guest image * feat(sandbox): add git credential forwarding toggle to settings
5.3 KiB
Troubleshooting
Common issues and their solutions.
Installation Issues
Docker Container Won't Start
Symptoms: Container exits immediately or fails health check
Solutions:
- Check logs:
docker-compose logs -f
-
Verify Docker resources (2GB RAM minimum)
-
Check ports aren't in use:
lsof -i :5003
- Rebuild without cache:
docker-compose build --no-cache
Reset a Broken OpenCode Binary
Symptoms: Container won't start after an OpenCode upgrade, or the OpenCode settings show a malformed binary
The OpenCode binary lives in its own named volume (opencode-bin). To remove only that volume and let the entrypoint reinstall the pinned bundled version on next start, without touching the workspace or database volumes:
docker-compose down
# <project> is the Compose project name, usually the directory containing docker-compose.yml
docker volume rm <project>_opencode-bin
docker-compose up -d
Or via the package scripts:
pnpm docker:down
docker volume rm <project>_opencode-bin
pnpm docker:up
Do not use docker-compose down -v (or pnpm docker:reset) here: that also deletes the workspace and database volumes.
Port Already in Use
Symptoms: Error about port 5003 being in use
Solutions:
- Find process using port:
lsof -i :5003
- Stop the process or change port in
docker-compose.yml:
ports:
- "8080:5003" # Use different host port
Permission Denied Errors
Symptoms: Container can't write to volumes
Startup tolerates workspace directories that already exist with wrong ownership; permission errors then appear on the first write into the directory rather than at startup.
Solutions:
- Fix ownership:
sudo chown -R $(id -u):$(id -g) ./workspace ./data
Authentication Issues
Can't Log In
Solutions:
- Clear browser cookies
- Try incognito/private mode
- Check
AUTH_SECRETis set in production - Verify
AUTH_TRUSTED_ORIGINSincludes your URL
Session Keeps Expiring
Solutions:
- Ensure
AUTH_SECRETis persistent across restarts - Check browser isn't blocking cookies
- Verify
AUTH_SECURE_COOKIES=falseif using HTTP
OAuth Redirect Error
Solutions:
- Verify callback URL matches exactly in provider settings
- Check for trailing slashes
- Ensure protocol matches (http vs https)
Passkey Not Working
Solutions:
- Verify
PASSKEY_RP_IDmatches your domain - Check
PASSKEY_ORIGINincludes correct protocol and port - Try a different browser
- Ensure WebAuthn is supported
Password Reset Not Working
Solutions:
- Set all required variables:
ADMIN_EMAIL=your@email.com
ADMIN_PASSWORD=new-password
ADMIN_PASSWORD_RESET=true
- Restart container
- Remove
ADMIN_PASSWORD_RESET=trueafter reset
Git Issues
Clone Fails for Private Repository
Solutions:
- Configure GitHub PAT in Settings > Git > Credentials
- Ensure PAT has
reposcope - Check PAT hasn't expired
Push/Pull Fails
Solutions:
- Verify GitHub PAT is valid
- Check PAT has write permissions
- Verify remote URL:
git remote -v
Worktree Creation Fails
Solutions:
- Ensure branch doesn't already exist
- Check disk space
- Verify repo isn't in detached HEAD state
Chat Issues
Messages Not Sending
Solutions:
- Check OpenCode server is running:
docker exec opencode-manager ps aux | grep opencode
- Verify model is configured
- Check API key is valid
Streaming Stops Unexpectedly
Solutions:
- Check network connection
- Look for errors in browser console (F12)
- Check container logs for errors
File Mentions Not Working
Solutions:
- Ensure repository is selected
- Check file exists
- Refresh the file browser
File Browser Issues
Files Not Loading
Solutions:
- Refresh the page
- Check repository is properly cloned
- Verify workspace volume is mounted
Upload Fails
Solutions:
- Check file size
- Verify write permissions
- Check browser console for errors
Performance Issues
Slow Response Times
Solutions:
- Check Docker resources:
docker stats
- Clear old sessions
- Use
/compactto reduce session size
High Memory Usage
Solutions:
- Limit session count
- Delete unused sessions
- Restart container:
docker-compose restart
Database Errors
Solutions:
- Stop container
- Backup database:
cp ./data/opencode.db ./data/opencode.db.bak
- Restart container
Mobile Issues
Keyboard Doesn't Close
Solutions:
- Tap outside input field
- Update device OS
- Try Safari on iOS
PWA Won't Install
Solutions:
- iOS: Must use Safari
- Android: Must use Chrome
- Check HTTPS is enabled
Touch Gestures Not Working
Solutions:
- Swipe from screen edge
- Swipe faster (within 300ms)
- Check no UI element is blocking
Getting More Help
If your issue isn't covered:
- Check GitHub Issues
- Search GitHub Discussions
- Open a new issue with:
- Steps to reproduce
- Expected vs actual behavior
- Container logs:
docker-compose logs - Browser console errors
- Environment info (OS, browser, Docker version)