🎬 Open-source, self-hosted AI agent that runs a YouTube channel end to end: researches topics, writes scripts, generates narration, visuals and video, optimizes SEO, and publishes after your approval, then learns from analytics. Works with Gemini, OpenAI, OpenRouter, DeepSeek and more.
JavaScript ai-agentsautomationcontent-automationcontent-creationcontent-strategygoogle-geminijavascriptnodejsopenaiself-hostedseo-optimizationsocial-media-automationthumbnail-generatorvideo-generationyoutube-apiyoutube-automationyoutube-botyoutube-channelyoutube-shortsyoutube-uploader
fix: narrow the reply-draft focus guard to the edited textarea
darkzOGxc228fa00edad
diff --git a/dashboard/app.js b/dashboard/app.jsindex a019432..e460a45 100644--- a/dashboard/app.js+++ b/dashboard/app.js@@ -472,7 +472,11 @@ function renderEngagementDetail() {</div></article>`;}).join('') : empty('No reply drafts for this video yet.');- if (!draftsContainer.contains(document.activeElement)) draftsContainer.innerHTML = draftsHTML;+ // Guard the focused textarea only: a clicked action button also holds focus, and skipping+ // the rebuild for it would leave the panel showing pre-action state.+ const editingReply = draftsContainer.contains(document.activeElement)+ && document.activeElement.matches('[data-reply-text]');+ if (!editingReply) draftsContainer.innerHTML = draftsHTML;const attention = Array.isArray(insight.attentionFlags) ? insight.attentionFlags : [];$('#engagement-attention').innerHTML = attention.length ? attention.map(flag => {