From 61a33a7891c95749b08aac0961d45129cf2e4b6a Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Sat, 12 Sep 2026 21:55:22 -0400 Subject: [PATCH] fix(alpine): resolve console errors on editor and agent panel Initialize coverOpen/coverLoading in editorState, render import file info with x-if instead of x-show (null deref), split x-if/x-for on the agent mention menu, guard m.steps.length and use unique keys for the icon picker. Also reduce htmx swap responses to .main-wrapper so shell scripts (agent panel, base inline) are not re-executed on partial navigation. --- app/templates/_page_editor_content.html | 12 +++++++----- app/templates/_page_editor_scripts.html | 2 ++ app/templates/agent_panel.html | 24 +++++++++++++----------- static/js/app.js | 16 ++++++++++++++++ 4 files changed, 38 insertions(+), 16 deletions(-) diff --git a/app/templates/_page_editor_content.html b/app/templates/_page_editor_content.html index 68141b1..bbece88 100644 --- a/app/templates/_page_editor_content.html +++ b/app/templates/_page_editor_content.html @@ -284,7 +284,7 @@
-