[GH-ISSUE #1945] [Issue]: Consistency Editor strips HTML/CSS or refuses useful edits on HTML-heavy messages #951

Closed
opened 2026-10-21 05:24:01 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @cha1latte on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1945

Originally assigned to: @cha1latte on GitHub.

Summary

Consistency Editor does not handle HTML-heavy / visual chat messages reliably. It either strips the HTML/CSS and returns plain text, or preserves the HTML/CSS but decides no edits are needed.

Expected behavior

Consistency Editor should edit the message text while preserving the surrounding HTML/CSS structure where possible.

Actual behavior

With visual HTML-style replies, the editor has two reported failure modes:

  1. It edits the content but strips divs, HTML, and CSS, returning plain text.
  2. It preserves HTML/CSS but reports that no edits are needed, so the message content is not improved.

Steps to reproduce

  1. Use a preset that generates visual HTML/CSS chat output.
  2. Generate an HTML-heavy message, such as UI/social-app style output.
  3. Run Consistency Editor on the message.
  4. Observe whether the edited result preserves HTML/CSS while applying useful edits.

Environment

  • Marinara Engine version: 1.61
  • Install type: not specified
  • OS + version: not specified
  • Browser or app shell: not specified
  • Models/providers tested: GLM 5.1, GLM 5, Kimi 2.5, DS4 via official API and NanoGPT
  • Assets/presets: tested with both SillyTavern-imported and M.E-created assets
  • Agent prompts: default prompts

Logs, screenshots, or video

Reporter provided screenshots showing HTML/UI-style output and a result where Consistency Editor reduced the message to plain text.

Image Image

Additional context

Reporter wants to use visual HTML/color chat output and Consistency Editor together, but currently feels forced to choose between preserved visuals or useful editing.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (Jun 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1945 Originally assigned to: @cha1latte on GitHub. ## Summary Consistency Editor does not handle HTML-heavy / visual chat messages reliably. It either strips the HTML/CSS and returns plain text, or preserves the HTML/CSS but decides no edits are needed. ## Expected behavior Consistency Editor should edit the message text while preserving the surrounding HTML/CSS structure where possible. ## Actual behavior With visual HTML-style replies, the editor has two reported failure modes: 1. It edits the content but strips divs, HTML, and CSS, returning plain text. 2. It preserves HTML/CSS but reports that no edits are needed, so the message content is not improved. ## Steps to reproduce 1. Use a preset that generates visual HTML/CSS chat output. 2. Generate an HTML-heavy message, such as UI/social-app style output. 3. Run Consistency Editor on the message. 4. Observe whether the edited result preserves HTML/CSS while applying useful edits. ## Environment - Marinara Engine version: 1.61 - Install type: not specified - OS + version: not specified - Browser or app shell: not specified - Models/providers tested: GLM 5.1, GLM 5, Kimi 2.5, DS4 via official API and NanoGPT - Assets/presets: tested with both SillyTavern-imported and M.E-created assets - Agent prompts: default prompts ## Logs, screenshots, or video Reporter provided screenshots showing HTML/UI-style output and a result where Consistency Editor reduced the message to plain text. <img width="920" height="1648" alt="Image" src="https://github.com/user-attachments/assets/d922a773-e5f2-4043-a01d-726e3118cf6d" /> <img width="351" height="942" alt="Image" src="https://github.com/user-attachments/assets/43915bd8-57c6-47df-92e1-c077f7658b72" /> ## Additional context Reporter wants to use visual HTML/color chat output and Consistency Editor together, but currently feels forced to choose between preserved visuals or useful editing. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:24:01 +07:00
Author
Owner

@cha1latte commented on GitHub (Jun 2, 2026):

fixed in #1961

<!-- gh-comment-id:4604860039 --> @cha1latte commented on GitHub (Jun 2, 2026): fixed in #1961
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#951
No description provided.