MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getCurrentMode

Function getCurrentMode

src/components/sandbox/SandboxSettings.tsx:42–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 const allowAllUnixSockets = settings.sandbox?.network?.allowAllUnixSockets;
41 const showSocketWarning = hasWarnings && !allowAllUnixSockets;
42 const getCurrentMode = () => {
43 if (!currentEnabled) {
44 return "disabled";
45 }
46 if (currentAutoAllow) {
47 return "auto-allow";
48 }
49 return "regular";
50 };
51 const currentMode = getCurrentMode();
52 let t2;
53 if ($[1] !== theme) {

Callers 1

SandboxSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected