diff options
| -rw-r--r-- | packages/cli/src/ui/components/Footer.tsx | 30 | ||||
| -rwxr-xr-x | scripts/start_sandbox.sh | 6 |
2 files changed, 33 insertions, 3 deletions
diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index 35ed6910..6b8a0fec 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -19,8 +19,14 @@ export const Footer: React.FC<FooterProps> = ({ debugMode, debugMessage, }) => ( - <Box marginTop={1} justifyContent="space-between"> - <Box minWidth={15}> + <Box + marginTop={1} + display="flex" + justifyContent="space-between" + width="100%" + > + {/* Left Section: Help/DebugMode */} + <Box> <Text color={Colors.SubtleComment}> {queryLength === 0 ? '? for shortcuts' : ''} {debugMode && ( @@ -28,6 +34,24 @@ export const Footer: React.FC<FooterProps> = ({ )} </Text> </Box> - <Text color={Colors.AccentBlue}>Gemini</Text> + + {/* Middle Section: Centered Sandbox Info */} + <Box + flexGrow={1} + alignItems="center" + justifyContent="center" + display="flex" + > + {process.env.SANDBOX ? ( + <Text color="green"> {process.env.SANDBOX} </Text> + ) : ( + <Text color="red"> WARNING: OUTSIDE SANDBOX </Text> + )} + </Box> + + {/* Right Section: Gemini Label */} + <Box> + <Text color={Colors.AccentBlue}>Gemini</Text> + </Box> </Box> ); diff --git a/scripts/start_sandbox.sh b/scripts/start_sandbox.sh index 04f3a55f..9a79319b 100755 --- a/scripts/start_sandbox.sh +++ b/scripts/start_sandbox.sh @@ -36,6 +36,9 @@ run_args=(-it --rm) # mount current directory as $WORKDIR inside container run_args+=(-v "$PWD:$WORKDIR") +# mount $TMPDIR as /tmp inside container +run_args+=(-v "$TMPDIR:/tmp") + # name container after image, plus numeric suffix to avoid conflicts INDEX=0 while $CMD ps -a --format "{{.Names}}" | grep -q "$IMAGE-$INDEX"; do @@ -46,6 +49,9 @@ run_args+=(--name "$IMAGE-$INDEX" --hostname "$IMAGE-$INDEX") # also set SANDBOX environment variable as container name run_args+=(--env "SANDBOX=$IMAGE-$INDEX") +# pass TERM and COLORTERM to container to maintain terminal colors +run_args+=(--env "TERM=$TERM" --env "COLORTERM=$COLORTERM") + # enable debugging via node --inspect-brk (and $DEBUG_PORT) if DEBUG is set node_args=() if [ -n "${DEBUG:-}" ]; then |
