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

use the runtime-projected provider consistently in the untrusted-content floor check

[._.]/ Adam Eivya5d0125d60ec
diff --git a/server/services/untrustedContent.js b/server/services/untrustedContent.js
index 7e7a7e1875..3e3fd32b17 100644
--- a/server/services/untrustedContent.js
+++ b/server/services/untrustedContent.js
@@ -75,7 +75,7 @@ export async function runUntrustedContentAnalysis({ provider, model, content, pr
// that must stay conservative, not a budgeting nicety. Preserved verbatim
// from the pre-#7473 behavior; it only ever LOWERS the shared ladder's
// answer, so it never re-opens the catalog-window blind spot #7472 closed.
- const contextWindow = local && !(Number(selected.numCtx) > 0) ? Math.min(claimedWindow, 4096) : claimedWindow;
+ const contextWindow = local && !(Number(runtimeProvider.numCtx) > 0) ? Math.min(claimedWindow, 4096) : claimedWindow;
const maxTokens = Math.min(8192, config.maxOutputChars, Math.floor(contextWindow / 4));
// UTF-8 bytes are a conservative upper bound for byte-fallback text tokens.
// Never clip evidence to make an undersized context appear successful.