/** * Sandbox Risk Confirmation Dialog * * Shows when the app is running outside a containerized environment. * Users must acknowledge the risks before proceeding. */ import { useState } from 'react'; import { ShieldAlert } from 'lucide-react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { Checkbox } from '@/components/ui/checkbox'; import { Label } from '@/components/ui/label'; interface SandboxRiskDialogProps { open: boolean; onConfirm: (skipInFuture: boolean) => void; onDeny: () => void; } export function SandboxRiskDialog({ open, onConfirm, onDeny }: SandboxRiskDialogProps) { const [skipInFuture, setSkipInFuture] = useState(false); const handleConfirm = () => { onConfirm(skipInFuture); // Reset checkbox state after confirmation setSkipInFuture(false); }; return ( {}}> e.preventDefault()} onEscapeKeyDown={(e) => e.preventDefault()} showCloseButton={false} > Sandbox Environment Not Detected

Warning: This application is running outside of a containerized sandbox environment. AI agents will have direct access to your filesystem and can execute commands on your system.

Potential Risks:

  • Agents can read, modify, or delete files on your system
  • Agents can execute arbitrary commands and install software
  • Agents can access environment variables and credentials
  • Unintended side effects from agent actions may affect your system

For safer operation, consider running Automaker in Docker. See the README for instructions.

Already running in Docker? Try these troubleshooting steps:

  • Ensure IS_CONTAINERIZED=true is set in your docker-compose environment
  • Verify the server container has the environment variable:{' '} docker exec automaker-server printenv IS_CONTAINERIZED
  • Rebuild and restart containers if you recently changed the configuration
  • Check the server logs for startup messages:{' '} docker-compose logs server
setSkipInFuture(checked === true)} data-testid="sandbox-skip-checkbox" />
); }