Skip to content

Conversation

@usvimal
Copy link
Contributor

@usvimal usvimal commented Jan 13, 2026

Summary

Fixes the desktop app failing to start with "Failed to spawn OpenCode Server" even though the server is running and listening.

Root cause: The Tauri desktop app was checking /health for server readiness, but the actual endpoint in server.ts is /global/health.

Changes

  • Updated check_server_health() in lib.rs to use /global/health instead of /health

Fixes

Error Message (before fix)

Error: Failed to spawn OpenCode Server. Logs:
[STDOUT] opencode server listening on http://127.0.0.1:2731

    at castError (http://tauri.localhost/assets/index-DT7g4zby.js:2:11968)
    at http://tauri.localhost/assets/index-DT7g4zby.js:2:4662

The logs show the server is listening, but the health check was hitting the wrong endpoint, causing a 30-second timeout and the error.

The desktop app was checking /health for server health, but the
actual endpoint in server.ts is /global/health. This caused the
desktop app to fail with 'Failed to spawn OpenCode Server' even
though the server was running and listening.

This fixes issues anomalyco#8149, anomalyco#8200, anomalyco#8206 and related spawn failures
on Windows and other platforms.
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@adamdotdevin adamdotdevin merged commit 2b77a84 into anomalyco:dev Jan 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants