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:
@@ -10,7 +10,7 @@ export async function isServerRunning(serverUrl: string): Promise<boolean> {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
const healthUrl = new URL("/health", serverUrl).toString()
|
const healthUrl = new URL("/global/health", serverUrl).toString()
|
||||||
const timeoutMs = 3000
|
const timeoutMs = 3000
|
||||||
const maxAttempts = 2
|
const maxAttempts = 2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user