+ {connections.map((conn) => (
+
+ {connectionLabel(conn)}
+ onToggle(conn.id, value)}
+ disabled={savingId === conn.id}
+ ariaLabel={t("codexAutoPingToggleAria", { connection: connectionLabel(conn) })}
+ />
+
+ ))}
+
+ );
+}
+
+export default function CodexAutoPingTab() {
+ const t = useTranslations("settings");
+ const { connections, enabledMap, loading, savingId, status, toggleConnection } =
+ useCodexAutoPingSettings();
+
+ if (!loading && connections.length === 0) return null;
+
+ return (
+