Skip to content

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

fix(debug): pass repo path into core launch spec

Steven Enamakelaf863609f8a6
diff --git a/scripts/__tests__/debug-web-ui.test.mjs b/scripts/__tests__/debug-web-ui.test.mjs
index ed552c10f5..31ee55dc0f 100644
--- a/scripts/__tests__/debug-web-ui.test.mjs
+++ b/scripts/__tests__/debug-web-ui.test.mjs
@@ -24,6 +24,7 @@ test("coreLaunchSpec isolates the core from operator credentials, storage, and d
RUST_LOG: "trace",
},
{
+ repo: "/checkout/openhuman",
workspace: "/private/run/workspace",
mockUrl: "http://127.0.0.1:18500",
token: "test-core-token",
diff --git a/scripts/debug/web-ui-lib.mjs b/scripts/debug/web-ui-lib.mjs
index df8c3d5f3d..341d98d1bb 100644
--- a/scripts/debug/web-ui-lib.mjs
+++ b/scripts/debug/web-ui-lib.mjs
@@ -15,7 +15,7 @@ export function mergeChildEnv(parent, overrides) {
}
/** Isolated environment and working directory for the throwaway core process. */
-export function coreLaunchSpec(parentEnv, { workspace, mockUrl, token, logLevel = "info" }) {
+export function coreLaunchSpec(parentEnv, { repo, workspace, mockUrl, token, logLevel = "info" }) {
return {
cwd: workspace,
env: mergeChildEnv(parentEnv, {
diff --git a/scripts/debug/web-ui.mjs b/scripts/debug/web-ui.mjs
index e7cd0ba84d..6dfe134455 100644
--- a/scripts/debug/web-ui.mjs
+++ b/scripts/debug/web-ui.mjs
@@ -165,6 +165,7 @@ async function main() {
log(`mock backend ${mockUrl}`);
const coreLaunch = coreLaunchSpec(process.env, {
+ repo,
workspace,
mockUrl,
token,