Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

fix(opencode): snapshot invocation environments

haelyraf67387e83605
diff --git a/scripts/lib/invocation-environment.js b/scripts/lib/invocation-environment.js
index 33cf45dab..f36a09252 100644
--- a/scripts/lib/invocation-environment.js
+++ b/scripts/lib/invocation-environment.js
@@ -2,14 +2,14 @@
function resolveInvocationEnvironment(options = {}) {
if (Object.prototype.hasOwnProperty.call(options, 'env')) {
- return options.env || {};
+ return { ...(options.env || {}) };
}
if (typeof options.homeDir === 'string' && options.homeDir.trim() !== '') {
return {};
}
- return process.env;
+ return { ...process.env };
}
module.exports = {