test(sandbox): pin runner argv forms

This commit is contained in:
Hypatia May
2026-08-04 17:19:19 +08:00
parent c4e9893a87
commit ea762e3962
3 changed files with 34 additions and 21 deletions
+2
View File
@@ -124,6 +124,8 @@ export class SandboxBashExecutor extends LocalBashExecutor {
try {
proc = this.startArgv(spec, confined.argv)
} catch (error) {
// LocalSubprocessService reports provenanced ENOENT/EACCES through async
// `done` rejection; this covers alternatives that throw that shape synchronously.
if (isRunnerSpawnFailure(error, confined.argv[0], spec.workdir)) {
throw new SandboxUnavailableError(mode, String(error))
}