Skip to content

autoHoldReason

autoHoldReason(profile, backend, egressBackend?): string | null

Defined in: src/sandbox.ts:474

Returns a hold reason when an auto=true spawn must be refused, else null. trusted -> null (legacy: caller shows an “unconfined autonomy” banner) standard -> ALWAYS refuse autonomous + backend null -> refuse (no FS backend) autonomous + egressBackend null (explicitly passed) -> refuse (no egress backend) autonomous + backend present + egressBackend present-or-omitted -> null

egressBackend is OPTIONAL for backward compatibility: existing callers that pass only two args get identical behavior to before (undefined = “not considered”). Only an explicit null triggers the egress refuse path.

SandboxProfile

SandboxBackend

EgressBackend

string | null