From 6b617f9cad91866e8c62f3bee4db5059672785f7 Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Sun, 28 Jun 2026 14:27:52 +0000 Subject: [PATCH] Move email writing style into AI settings --- static/index.html | 24 ++++++++++-------------- static/js/settings.js | 18 ------------------ 2 files changed, 10 insertions(+), 32 deletions(-) diff --git a/static/index.html b/static/index.html index 6c9887945..ffeafa183 100644 --- a/static/index.html +++ b/static/index.html @@ -1591,8 +1591,16 @@ settings backup. Re-add this card to surface the toggle again once the core experience is faster. -->
-

Email Safety

-
When on, agent send_email / reply_to_email tools stage a draft for your approval (in the chat) instead of SMTPing immediately. Stops models from inventing a signature and sending it to a real recipient before you can review.
+

Writing Style

+
Used when AI drafts email replies. Keep this email-specific: greetings, sign-off, tone, and length.
+
+ +
+ + + +
+
@@ -1999,18 +2007,6 @@ -
-

Writing Style

-
AI-extracted from your sent emails. Used when AI drafts replies.
-
- -
- - - -
-
-
diff --git a/static/js/settings.js b/static/js/settings.js index 0f5f71d85..4bff7ad8c 100644 --- a/static/js/settings.js +++ b/static/js/settings.js @@ -1722,24 +1722,6 @@ async function initAgentSettings() { (curR != null ? ' · ' + curR + ' steps/message' : '') + (supInput && supInput.checked ? ' · supervisor on' : ''); - // Standalone Email Safety toggle (separate card on the AI Defaults tab). - // Default to ON if the setting isn't present so a fresh install is safe. - var emailConfirm = el('set-agentEmailConfirm'); - if (emailConfirm) { - try { - var s = await fetch('/api/auth/settings', { credentials: 'same-origin' }).then(r => r.json()); - emailConfirm.checked = s.agent_email_confirm !== false; - } catch (_) {} - emailConfirm.addEventListener('change', async () => { - try { - await fetch('/api/auth/settings', { - method: 'POST', credentials: 'same-origin', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ agent_email_confirm: !!emailConfirm.checked }), - }); - } catch (_) {} - }); - } } /* ═══════════════════════════════════════════