improve sandboxing status message, update README, remove dead code from a previous change to build_sandbox.sh (#346)

This commit is contained in:
Olcan 2025-05-14 11:23:06 -07:00 committed by GitHub
parent bfda4295c9
commit 1fa40405ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 14 deletions

View file

@ -46,13 +46,15 @@ export const Footer: React.FC<FooterProps> = ({
display="flex"
>
{process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? (
<Text color="green"> {process.env.SANDBOX} </Text>
<Text color="green">
{process.env.SANDBOX.replace(/^gemini-(?:code-)?/, '')}
</Text>
) : process.env.SANDBOX === 'sandbox-exec' ? (
<Text color={Colors.AccentYellow}>
using macos seatbelt ({process.env.SEATBELT_PROFILE})
sandbox-exec ({process.env.SEATBELT_PROFILE})
</Text>
) : (
<Text color={Colors.AccentRed}> WARNING: OUTSIDE SANDBOX </Text>
<Text color={Colors.AccentRed}>no sandbox (see README)</Text>
)}
</Box>