fix: avoid imessage rpc restart loop

This commit is contained in:
Peter Steinberger
2026-01-17 00:34:44 +00:00
parent 64a2ef4a18
commit 6e5eddf292
4 changed files with 99 additions and 0 deletions

View File

@@ -472,6 +472,9 @@ export async function monitorIMessageProvider(opts: MonitorIMessageOpts = {}): P
check: async () => {
const probe = await probeIMessage(2000, { cliPath, dbPath, runtime });
if (probe.ok) return { ok: true };
if (probe.fatal) {
throw new Error(probe.error ?? "imsg rpc unavailable");
}
return { ok: false, error: probe.error ?? "unreachable" };
},
});