From b3f40cf437385b15d1714e9792f7e26559fbbeaa Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 26 Mar 2026 20:59:37 -0400 Subject: [PATCH] fix: message input placeholder uses active persona name Hardcoded 'Inara' replaced with CORTEX_PERSONA in all placeholder strings (chat mode and agent task mode). Co-Authored-By: Claude Sonnet 4.6 --- cortex/static/app.js | 9 +++++---- cortex/static/index.html | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cortex/static/app.js b/cortex/static/app.js index 08b67d1..6181d12 100644 --- a/cortex/static/app.js +++ b/cortex/static/app.js @@ -18,6 +18,7 @@ const CORTEX_USER = (window.CORTEX_CONFIG || {}).user || 'scott'; const CORTEX_PERSONA = (window.CORTEX_CONFIG || {}).persona || 'inara'; const CORTEX_EMOJI = (window.CORTEX_CONFIG || {}).emoji || '✨'; + const personaLabel = CORTEX_PERSONA.charAt(0).toUpperCase() + CORTEX_PERSONA.slice(1); const _fileParams = `user=${encodeURIComponent(CORTEX_USER)}&persona=${encodeURIComponent(CORTEX_PERSONA)}`; if (headerEmoji) headerEmoji.textContent = CORTEX_EMOJI; @@ -121,12 +122,12 @@ : 'Private note — only you see this…'; } else if (agentMode) { inputEl.placeholder = ctrlEnterMode - ? 'Task for Inara… (Gemini tool loop — Ctrl+Enter to run)' - : 'Task for Inara… (Gemini tool loop)'; + ? `Task for ${personaLabel}… (Gemini tool loop — Ctrl+Enter to run)` + : `Task for ${personaLabel}… (Gemini tool loop)`; } else { inputEl.placeholder = ctrlEnterMode - ? 'Message Inara… (Ctrl+Enter to send)' - : 'Message Inara…'; + ? `Message ${personaLabel}… (Ctrl+Enter to send)` + : `Message ${personaLabel}…`; } } diff --git a/cortex/static/index.html b/cortex/static/index.html index 72ff01a..6c52c50 100644 --- a/cortex/static/index.html +++ b/cortex/static/index.html @@ -116,7 +116,7 @@
- +