mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3094] [Issue]: Immersive HTML agent appears to inject preset text into chat history instead of acting as post-processing #1655
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1655
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jun 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3094
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The immersive HTML agent appears to be implemented as copied preset text appended into chat history, rather than as a visual post-processing layer. This means the main model may see the immersive instructions instead of only a separate rendering agent.
Expected behavior
Immersive HTML should behave as a post-processing effect: read recent messages, render/decorate the chat with HTML/CSS, and not affect the main model’s input context.
Actual behavior
The immersive HTML agent looks like it is just a Marinara preset block injected into the end of chat history as instruction text, similar to a preset on/off toggle, rather than a separate rendering layer.
Steps to reproduce
Environment
Logs, screenshots, or video
Attached screenshot in Discord: image.png.
Additional context
Reporter suggests the feature should be split into two models/roles: model A for RP generation and model B for visual HTML/CSS decoration, with model A not seeing the immersive instructions.
Discord message: Discord message from Loinne
Discord message link: https://discord.com/channels/1417099416812392641/1495493775617687775/1521516010858086511
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord message transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 30, 2026):
It's not really a bug, rather a cool idea to rework the agent.
Change processing to post-processing. It should have the same ability to edit the output, aka work the same way as Prose Guardian and Continuity Checker do. It should analyze the output and based on it, either decide not to create any immersive HTML elements (if the scene doesn't allow for them, e.g.,: during a dialogue) or create them. For example, if the narration mentions the protagonist looking at a poster, it can create a poster. If they're reading a letter, the agent can generate it with CSS/HTML. It's crucial that this agent does not change the meaning of the output, only enhance it visually; so perhaps, if a character is reading a letter, it should be formatted like an actual letter.
We could even expand it to more advanced visual effects, maybe the entire box of the message being changed or a screen going dark. Anyway, yeah, agent rework.
@SpicyMarinara commented on GitHub (Jun 30, 2026):
Confirmed the report: Immersive HTML is currently a static pre-generation prompt injection, not a runtime post-processing agent. I did not convert it in the v2.0.9 lag hotfix because the requested behavior is a feature rework: it should become a post-processing visual enhancer with text-rewrite style review/edit safety, and it must avoid changing the story meaning.\n\nLeaving this open as enhancement/scope-risk so it can be designed and tested separately instead of being slipped into the emergency agent/lag patch.
@SpicyMarinara commented on GitHub (Jun 30, 2026):
We can do it, pookie.
@SpicyMarinara commented on GitHub (Jun 30, 2026):
Addressed in draft PR #3109. Immersive HTML is now a post-processing
text_rewritevisual enhancer instead of a static main-prompt injection, with regression coverage keeping it out of pre-generation runtime sections.