fix: avoid imessage rpc restart loop

This commit is contained in:
Peter Steinberger committed 2026-01-17 00:35:24 +00:00
1 parent 64a2ef4a18
commit 6e5eddf292
4 files changed
+99

No files matched your search

+3
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" };
},
});