Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: supply local backend key in published prompt e2e

Steven Enamakeld74c30bc3c27
diff --git a/tests/tinyflows_published_prompt_e2e.rs b/tests/tinyflows_published_prompt_e2e.rs
index bddbbbf4ff..c3725f610d 100644
--- a/tests/tinyflows_published_prompt_e2e.rs
+++ b/tests/tinyflows_published_prompt_e2e.rs
@@ -35,7 +35,10 @@ fn dump_published_prompt(
.env("OPENHUMAN_MODULE_PATH", module_search_path)
.env_remove("BACKEND_URL")
.env_remove("VITE_BACKEND_URL")
- .env_remove("OPENHUMAN_BACKEND_API_KEY")
+ // Building the session agent resolves a backend credential before it
+ // renders a prompt (`SESSION_EXPIRED` otherwise). A fixed local key
+ // satisfies that without reaching any backend: `api_url` is unroutable.
+ .env("OPENHUMAN_BACKEND_API_KEY", "th_test_local_only")
.env_remove("OPENHUMAN_BACKEND_SESSION_TOKEN")
.env_remove("OPENHUMAN_STORAGE_URL")
.env_remove("OPENHUMAN_MODULE_SOURCE")