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): enforce action directory for image roundtrips
Steven Enamakela307e587bc50
diff --git a/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjs b/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjsindex 5f7ff2a718..57cbf1beeb 100644--- a/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjs+++ b/scripts/debug/web-scripts/queued-image-attachment-roundtrip.mjs@@ -54,6 +54,8 @@ export default async function queuedImageAttachmentRoundtrip({log,logDir,}) {+ const actionDir = process.env.OPENHUMAN_ACTION_DIR;+ if (!actionDir) throw new Error("OPENHUMAN_ACTION_DIR must isolate staged uploads");const rpcCalls = [];const rpcResponses = [];let rpcUrl;@@ -310,7 +312,7 @@ export default async function queuedImageAttachmentRoundtrip({) {throw new Error(`queued image did not persist as an opaque typed ref: ${JSON.stringify(reference)}`);}- if (!findStoredBytes(join(logDir, "workspace"), IMAGE_BYTES)) {+ if (!findStoredBytes(actionDir, IMAGE_BYTES)) {throw new Error("queued model image bytes differ from the browser upload");}diff --git a/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjs b/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjsindex a32a4dc7d8..cae13d9697 100644--- a/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjs+++ b/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjs@@ -42,6 +42,8 @@ export default async function typedImageAttachmentRoundtrip({log,logDir,}) {+ const actionDir = process.env.OPENHUMAN_ACTION_DIR;+ if (!actionDir) throw new Error("OPENHUMAN_ACTION_DIR must isolate staged uploads");const rpcCalls = [];let rpcUrl;let authorization;@@ -151,7 +153,7 @@ export default async function typedImageAttachmentRoundtrip({}if (persisted.content !== USER_TEXT)throw new Error("persisted user text differs from clean composer text");- const stagedBytes = findStoredBytes(join(logDir, "workspace"), IMAGE_BYTES);+ const stagedBytes = findStoredBytes(actionDir, IMAGE_BYTES);if (!stagedBytes)throw new Error("staged image bytes differ from the browser upload");log(