Skip to content

Desktop app (Windows, v1.15.12): sidecar server exits on startup — "Unexpected server error", models/providers missing #29932

@dadaddfadaf

Description

@dadaddfadaf

Description

Summary

On Windows, the desktop app launches but the local sidecar server fails right after startup. Every request returns "Unexpected server error. Check server logs for details." The project won't open, and the models/providers list is empty (I also can't add new ones).

Environment

  • App version: 1.15.12 (packaged)
  • OS: Windows
  • Install type: official desktop build

Steps to reproduce

  1. Launch the OpenCode desktop app.
  2. App starts and reports "server ready".
  3. UI fails to load sessions / bootstrap; models and providers are empty.

What I expected

The project opens normally and the configured models/providers are available.

What actually happens

  • The sidecar server starts ("server ready") but then exits (sidecar exited { code: 0 }) a few seconds later.
  • All requests fail with "Unexpected server error".
  • Models/providers are missing and can't be added.

Troubleshooting already tried

  • Fully quit + relaunch, ended leftover processes in Task Manager.
  • Reset local data by renaming %AppData%\ai.opencode.desktop (a fresh tauri migration ran) — issue persists.
  • Confirmed app is already on the latest version (1.15.12); no update available.

Logs

main.log
[17:02:49] app starting { version: '1.15.12', packaged: true }
[17:02:49] tauri migration: starting → complete
[17:02:49] spawning sidecar { url: 'http://127.0.0.1:51873/' }
[17:02:52] server ready { url: 'http://127.0.0.1:51873/' }

server.log

[17:02:50] [warn] (server) stderr {
message: '(node:23936) ExperimentalWarning: SQLite is an experimental feature and might change at any time'
}

renderer.log

[17:04:02] [error] Failed to load sessions Error: Unexpected server error. Check server logs for details.
[17:04:02] [error] Failed to finish bootstrap instance Error: Unexpected server error. Check server logs for details.

utility.log

[17:04:13] [warn] (utility) sidecar exited { code: 0 }

Note

The only server-side hint is an experimental SQLite warning, and the first failure is "Failed to load sessions" — this looks like the sidecar can't operate its SQLite database, which also explains the missing models/providers. Happy to provide the full server log from %AppData%\ai.opencode.desktop\logs\ if useful.

crash.log
main.log
network.log
renderer.log
server.log
utility.log

Plugins

No response

OpenCode version

Desktop

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions