fix(tmux): use correct health check endpoint /global/health

The server health check was using /health which returns HTTP 403 since
the endpoint doesn't exist in OpenCode. The correct endpoint is
/global/health as defined in OpenCode's server routes.

Fixes #2260
This commit is contained in:
MoerAI
2026-03-04 10:17:12 +09:00
parent 42641a9922
commit d6fe9aa123

View File

@@ -10,7 +10,7 @@ export async function isServerRunning(serverUrl: string): Promise<boolean> {
return true
}
const healthUrl = new URL("/health", serverUrl).toString()
const healthUrl = new URL("/global/health", serverUrl).toString()
const timeoutMs = 3000
const maxAttempts = 2