Skip to content

The agent that grows with you

test(desktop-core): keep the external tirith scanner out of the sandbox

teknium13ed7faa88d27
diff --git a/apps/desktop/e2e/core/harness.ts b/apps/desktop/e2e/core/harness.ts
index 9dfe9c3f1e1..eab9f29ff66 100644
--- a/apps/desktop/e2e/core/harness.ts
+++ b/apps/desktop/e2e/core/harness.ts
@@ -77,6 +77,13 @@ export function createCoreSandbox(label: string): CoreSandbox {
}
}
+/**
+ * Sandbox config: only the scripted provider. The external tirith scanner is
+ * off: with none on PATH the backend downloads it from GitHub on the first
+ * terminal command (network in a required lane), and with one on PATH it
+ * fetched a 12 MB threat DB that was still being written after quit. The
+ * approval prompts under test come from Hermes's own detector.
+ */
export function providerConfigYaml(providerUrl: string, extra = '', approvals: 'manual' | 'off' = 'off'): string {
return `model:
default: mock-model
@@ -93,6 +100,8 @@ providers:
auxiliary:
title_generation:
enabled: false
+security:
+ tirith_enabled: false
approvals:
mode: "${approvals}"
${extra}`