MCPcopy Index your code
hub / github.com/codeaashu/claude-code / SandboxModeTab

Function SandboxModeTab

src/components/sandbox/SandboxSettings.tsx:222–295  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

220 return t17;
221}
222function SandboxModeTab(t0) {
223 const $ = _c(16);
224 const {
225 showSocketWarning,
226 options,
227 onSelect,
228 onComplete
229 } = t0;
230 const {
231 headerFocused,
232 focusHeader
233 } = useTabHeaderFocus();
234 let t1;
235 if ($[0] !== showSocketWarning) {
236 t1 = showSocketWarning && <Box marginBottom={1}><Text color="warning">Cannot block unix domain sockets (see Dependencies tab)</Text></Box>;
237 $[0] = showSocketWarning;
238 $[1] = t1;
239 } else {
240 t1 = $[1];
241 }
242 let t2;
243 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
244 t2 = <Box marginBottom={1}><Text bold={true}>Configure Mode:</Text></Box>;
245 $[2] = t2;
246 } else {
247 t2 = $[2];
248 }
249 let t3;
250 if ($[3] !== onComplete) {
251 t3 = () => onComplete(undefined, {
252 display: "skip"
253 });
254 $[3] = onComplete;
255 $[4] = t3;
256 } else {
257 t3 = $[4];
258 }
259 let t4;
260 if ($[5] !== focusHeader || $[6] !== headerFocused || $[7] !== onSelect || $[8] !== options || $[9] !== t3) {
261 t4 = <Select options={options} onChange={onSelect} onCancel={t3} onUpFromFirstItem={focusHeader} isDisabled={headerFocused} />;
262 $[5] = focusHeader;
263 $[6] = headerFocused;
264 $[7] = onSelect;
265 $[8] = options;
266 $[9] = t3;
267 $[10] = t4;
268 } else {
269 t4 = $[10];
270 }
271 let t5;
272 if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
273 t5 = <Text dimColor={true}><Text bold={true} dimColor={true}>Auto-allow mode:</Text>{" "}Commands will try to run in the sandbox automatically, and attempts to run outside of the sandbox fallback to regular permissions. Explicit ask/deny rules are always respected.</Text>;
274 $[11] = t5;
275 } else {
276 t5 = $[11];
277 }
278 let t6;
279 if ($[12] === Symbol.for("react.memo_cache_sentinel")) {

Callers

nothing calls this directly

Calls 1

useTabHeaderFocusFunction · 0.85

Tested by

no test coverage detected