import { FolderOpen, Globe2, Terminal, TriangleAlert } from "lucide-react";
import { ConfirmationDialog } from "@tutti-os/ui-system";
import { useTranslation } from "../../i18n/index";
import type { WorkspaceLinkAction } from "../../actions/workspaceLinkActions";
export const CODEX_FULL_ACCESS_SAFETY_URL =
"https://deploymentsafety.openai.com/gpt-5-6";
export function AgentFullAccessWarningDialog({
onConfirm,
onLinkAction,
onOpenChange,
open
}: {
onConfirm: () => void;
onLinkAction?: (action: WorkspaceLinkAction) => void;
onOpenChange: (open: boolean) => void;
open: boolean;
}): React.JSX.Element {
const { t } = useTranslation();
return (
{t("agentHost.agentGui.fullAccessWarning.riskDescription")}{" "}
{
onOpenChange(false);
if (!onLinkAction) {
return;
}
event.preventDefault();
onLinkAction({
source: "agent-full-access-warning",
type: "open-url",
url: CODEX_FULL_ACCESS_SAFETY_URL
});
}}
>
{t("agentHost.agentGui.fullAccessWarning.learnMore")}