fix: use windows sandbox fallback for harness
This commit is contained in:
+5
-4
@@ -251,9 +251,10 @@ class StepExecutor:
|
||||
sys.exit(1)
|
||||
|
||||
prompt = preamble + step_file.read_text(encoding="utf-8")
|
||||
command = [
|
||||
"codex",
|
||||
"exec",
|
||||
command = ["codex", "exec"]
|
||||
if os.name == "nt":
|
||||
command.extend(["-c", 'windows.sandbox="unelevated"'])
|
||||
command.extend([
|
||||
"--json",
|
||||
"--sandbox",
|
||||
"workspace-write",
|
||||
@@ -261,7 +262,7 @@ class StepExecutor:
|
||||
"--cd",
|
||||
self._root,
|
||||
"-",
|
||||
]
|
||||
])
|
||||
try:
|
||||
result = subprocess.run(
|
||||
command,
|
||||
|
||||
Reference in New Issue
Block a user