From d524309e3c66a0c1f2e0a5038c204735eb81683b Mon Sep 17 00:00:00 2001
From: Olcan <olcans@gmail.com>
Date: Wed, 7 May 2025 20:03:29 -0700
Subject: use seatbelt on macos, with two profiles: minimal (default) which
 only restricts writes, and strict, which is deny-by-default and only allows
 specific operations (#283)

---
 packages/cli/src/ui/components/Footer.tsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'packages/cli/src/ui/components/Footer.tsx')

diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx
index b23d5b16..71a8823e 100644
--- a/packages/cli/src/ui/components/Footer.tsx
+++ b/packages/cli/src/ui/components/Footer.tsx
@@ -45,10 +45,14 @@ export const Footer: React.FC<FooterProps> = ({
       justifyContent="center"
       display="flex"
     >
-      {process.env.SANDBOX ? (
+      {process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? (
         <Text color="green"> {process.env.SANDBOX} </Text>
+      ) : process.env.SANDBOX === 'sandbox-exec' ? (
+        <Text color={Colors.AccentYellow}>
+          using macos seatbelt ({process.env.SANDBOX_EXEC_PROFILE})
+        </Text>
       ) : (
-        <Text color={Colors.AccentRed}> WARNING: OUTSIDE SANDBOX </Text>
+        <Text color={Colors.AccentRed}> WARNING: SANDBOX NOT ENABLED </Text>
       )}
     </Box>
 
-- 
cgit v1.2.3

