fix: restore OpenCode health compatibility for startup (#1542)

This commit is contained in:
Bohdan Triapitsyn
2026-06-05 18:43:13 +03:00
parent 0f6602aabd
commit 3e0a105dfe
5 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -567,8 +567,8 @@ async function waitForReady(
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), 3000);
// OpenCode readiness check.
const url = new URL(`${baseUrl}/api/health`);
// OpenCode readiness check. Use /global/health for OpenCode 1.15.x compatibility.
const url = new URL(`${baseUrl}/global/health`);
const res = await fetch(url.toString(), {
method: 'GET',
headers: { Accept: 'application/json', ...authHeaders },