Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: don't cache a skipped (not-probed) runtime status

[._.]/ Adam Eivyd2a0bdc70ea2
diff --git a/server/services/providerRuntimeInstaller.js b/server/services/providerRuntimeInstaller.js
index 835fea11aa..e7d821ed05 100644
--- a/server/services/providerRuntimeInstaller.js
+++ b/server/services/providerRuntimeInstaller.js
@@ -375,7 +375,13 @@ export async function getProviderRuntimeStatus(id, { findCommand, probeCommand,
probeCommand || (skip ? NEVER_FOUND : commandOutput),
skip,
);
- statusCache.set(runtime.id, { at: Date.now(), status });
+ // A skipped probe is NOT PROBED, not "not installed" — the same distinction
+ // `codexOssSupport.js`'s own probe cache draws — so it must not sit in the
+ // TTL cache pretending to be a real answer a LATER call (one that injects
+ // real `findCommand`/`probeCommand`, e.g. a `hasCli()`-gated integration
+ // test that shares this module instance) would otherwise read back verbatim
+ // instead of getting its own real probe.
+ if (!skip) statusCache.set(runtime.id, { at: Date.now(), status });
return status;
}