The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(debug): isolate core launch environment and working directory
Steven Enamakel6b27fcee7cb4
diff --git a/scripts/debug/web-ui-lib.mjs b/scripts/debug/web-ui-lib.mjsindex 2613e90279..df8c3d5f3d 100644--- a/scripts/debug/web-ui-lib.mjs+++ b/scripts/debug/web-ui-lib.mjs@@ -17,19 +17,34 @@ 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: process.cwd(),- env: { ...parentEnv, ...{+ cwd: workspace,+ env: mergeChildEnv(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,- } },+ }),};}+/** Pass the isolated launch specification through to the child process launcher. */+export function startCoreChild(startChild, core, corePort, launchSpec) {+ return startChild(+ "core",+ core,+ ["serve", "--port", String(corePort)],+ launchSpec.env,+ launchSpec.cwd,+ );+}+export const USAGE = `Usage: pnpm debug web [options]Boots a throwaway stack — mock backend, a fresh \`openhuman-core serve\` on a