fix(opencode): snapshot invocation environments

This commit is contained in:
haelyra
2026-08-25 12:37:53 -04:00
parent 5aa660219e
commit f67387e836
+2 -2
View File
@@ -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 = {