We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95bf01a commit 90f39bfCopy full SHA for 90f39bf
packages/opencode/src/env/index.ts
@@ -2,7 +2,9 @@ import { Instance } from "../project/instance"
2
3
export namespace Env {
4
const state = Instance.state(() => {
5
- return process.env as Record<string, string | undefined>
+ // Create a shallow copy to isolate environment per instance
6
+ // Prevents parallel tests from interfering with each other's env vars
7
+ return { ...process.env } as Record<string, string | undefined>
8
})
9
10
export function get(key: string) {
0 commit comments