MCPcopy
hub / github.com/codeaashu/claude-code / isSandboxingEnabled

Function isSandboxingEnabled

src/utils/sandbox/sandbox-adapter.ts:532–547  ·  view source on GitHub ↗

* Check if sandboxing is enabled * This checks the user's enabled setting, platform support, and enabledPlatforms restriction

()

Source from the content-addressed store, hash-verified

530 * This checks the user's enabled setting, platform support, and enabledPlatforms restriction
531 */
532function isSandboxingEnabled(): boolean {
533 if (!isSupportedPlatform()) {
534 return false
535 }
536
537 if (checkDependencies().errors.length > 0) {
538 return false
539 }
540
541 // Check if current platform is in the enabledPlatforms list (undocumented setting)
542 if (!isPlatformInEnabledList()) {
543 return false
544 }
545
546 return getSandboxEnabledSetting()
547}
548
549/**
550 * If the user explicitly enabled sandbox (sandbox.enabled: true in settings)

Callers 3

wrapWithSandboxFunction · 0.85
initializeFunction · 0.85
refreshConfigFunction · 0.85

Calls 3

isPlatformInEnabledListFunction · 0.85
getSandboxEnabledSettingFunction · 0.85
isSupportedPlatformFunction · 0.50

Tested by

no test coverage detected