File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,7 +133,9 @@ function probeExactOpenShellSandboxId(
133133 const sandboxId = parseOpenShellSandboxId ( String ( result . stdout ?? "" ) ) ;
134134 return sandboxId ? { state : "identified" , sandboxId } : { state : "failed" } ;
135135 }
136- if ( result . error || result . signal || result . status === null ) return { state : "failed" } ;
136+ if ( result . error || result . status === null || ( "signal" in result && result . signal ) ) {
137+ return { state : "failed" } ;
138+ }
137139 return OPENSHELL_SANDBOX_NOT_READY . test ( normalizedOpenShellCommandOutput ( result ) )
138140 ? { state : "not_ready" }
139141 : { state : "failed" } ;
@@ -177,7 +179,9 @@ function checkSandboxExecutableReadiness(
177179 killSignal : "SIGKILL" ,
178180 } ) ;
179181 if ( result . status === 0 && ! result . error ) return "ready" ;
180- if ( result . error || result . signal || result . status === null ) return "probe_failed" ;
182+ if ( result . error || result . status === null || ( "signal" in result && result . signal ) ) {
183+ return "probe_failed" ;
184+ }
181185 return OPENSHELL_SANDBOX_NOT_READY . test ( normalizedOpenShellCommandOutput ( result ) )
182186 ? "not_ready"
183187 : "probe_failed" ;
You can’t perform that action at this time.
0 commit comments