The best way to control Claude Code, Codex and more from any computer or phone
| 1 | // @effect-diagnostics nodeBuiltinImport:off - runs once at test setup, outside any Effect runtime. |
| 2 | import * as NodeFS from "node:fs"; |
| 3 | import * as NodeOS from "node:os"; |
| 4 | import * as HostProcess from "../HostProcess.ts"; |
| 5 | |
| 6 | // Windows runner temp paths use 8.3 names; canonicalize to long names before equality checks. |
| 7 | if (HostProcess.Platform.defaultValue() === "win32") { |
| 8 | try { |
| 9 | const longForm = NodeFS.realpathSync.native(NodeOS.tmpdir()); |
| 10 | process.env.TEMP = longForm; |
| 11 | process.env.TMP = longForm; |
| 12 | } catch {} |
| 13 | } |