Skip to content

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

chore(debug): simplify core launch environment setup

Steven Enamakelbb25fd9b4480
diff --git a/scripts/debug/web-ui-lib.mjs b/scripts/debug/web-ui-lib.mjs
index 8bbed7eac7..2613e90279 100644
--- a/scripts/debug/web-ui-lib.mjs
+++ b/scripts/debug/web-ui-lib.mjs
@@ -17,20 +17,16 @@ export function mergeChildEnv(parent, overrides) {
/** Isolated environment and working directory for the throwaway core process. */
export function coreLaunchSpec(parentEnv, { workspace, mockUrl, token, logLevel = "info" }) {
return {
- cwd: workspace,
- env: mergeChildEnv(parentEnv, {
+ cwd: process.cwd(),
+ env: { ...parentEnv, ...{
OPENHUMAN_WORKSPACE: workspace,
- OPENHUMAN_DOTENV_PATH: path.join(workspace, "empty.env"),
OPENHUMAN_CORE_TOKEN: token,
BACKEND_URL: mockUrl,
VITE_BACKEND_URL: mockUrl,
OPENHUMAN_COMPOSIO_MODE: "disabled",
OPENHUMAN_SANDBOX: "off",
- OPENHUMAN_BACKEND_API_KEY: null,
- OPENHUMAN_BACKEND_SESSION_TOKEN: null,
- OPENHUMAN_STORAGE_URL: null,
RUST_LOG: logLevel,
- }),
+ } },
};
}