voice: emotion-neutral restatement prompt (the 'steered' framing made it invent distress from an unsteered reply); page voice on for beta.wirehead.agency, off in prod

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EandClaude Opus 5.5 committed 2026-10-02 16:51:07 -04:00
1 parent 0ccc97164a
commit 359fac4047
2 files changed
+13 -11

No files matched your search

+4 -2
View File
@@ -880,8 +880,10 @@ function clearVoice(outEl){
const v = outEl && outEl.nextElementSibling;
if (v && v.classList.contains("voice")) v.remove();
}
// under test: off unless the page is opened with ?voice=1
const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1";
// under test: on for the beta site (beta.wirehead.agency) or with ?voice=1;
// off in production until it's promoted
const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1"
|| location.hostname.startsWith("beta.");
function showVoice(outEl, text){
if (!VOICE_ON || !outEl || !text || text.trim().length < 30) return;
const esc = t => String(t ?? "").replace(/[&<>"]/g, c =>