fix(PromptComposer): clear empty editor fillers before chip insertion

Insert a helper that strips filler-only editor content (stray <br> and
caret-anchor text nodes) before inserting reference/annotation chips and
on paste, so chips no longer land after an empty line. Also anchor the
caret after each inserted/updated chip and reorder focus/insert so the
caret reliably follows the new chip.
This commit is contained in:
2026-07-07 23:18:29 +08:00
parent 44406b72db
commit bb7fce9171
5 changed files with 27 additions and 8 deletions
+1
Submodule .tools/mcp-zero added at 6e87a88044