[GH-ISSUE #3209] [Issue]: Impersonate mode strips non-marker prompt sections, breaking impersonation presets #1723

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

Originally created by @SpicyMarinara on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3209

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Marinara Engine 2.0.9, impersonate mode skips every prompt section that is not a marker due to a change in packages/server/src/services/prompt/assembler.ts. This breaks dedicated impersonation presets that rely on normal prompt sections.

Expected behavior

Dedicated impersonation presets should still be able to send their normal prompt sections when impersonate mode is active, or there should be an explicit opt-in setting to allow this behavior.

Actual behavior

When input.impersonate === true, Marinara skips all prompt sections where section.isMarker !== "true", causing impersonation presets to lose the main prompt content.

Steps to reproduce

  1. Create or use an Impersonate preset that directs the AI to act as {{user}} and relies on normal prompt sections.
  2. Enable impersonate mode.
  3. Generate an impersonate response.
  4. Observe that non-marker prompt sections from the preset are not included.

Environment

  • Marinara Engine version: 2.0.9
  • Install type: other
  • OS + version: Linux
  • Browser or app shell: Not provided

Logs, screenshots, or video

Relevant code path reported: Marinara-Engine/packages/server/src/services/prompt/assembler.ts contains if (input.impersonate === true && section.isMarker !== "true") continue;.

Additional context

Maintainer indicated the current behavior is intended, but discussed adding an off-by-default checkbox/toggle to still send the preset during impersonate mode. User suggested only skipping normal sections when impersonating without a dedicated impersonation preset, such as when falling back to the chat preset.

Discord thread: Impersonate Prompt Change
Discord thread link: https://discord.com/channels/1417099416812392641/1523009678584451305
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (5 messages)
[2026-07-04T16:56:43.526Z] Vintage: - Linux
- Installed as a systemmd service
- 2.0.9

I have an Impersonate preset that directs the AI to act as {{user}}. A recent update seems to have added a line to the following file: 

Marinara-Engine/packages/server/src/services/prompt/assembler.ts

The change is:

if (input.impersonate === true && section.isMarker !== "true") continue;

As a result of this change, when impersonate mode is active, Marinara skips every prompt section that is not a marker. This may be intended behaviour given most presets likely strictly direct the AI not to act as {{user}}, but it does break any impersonate presets completely.

Suggested change: 

Only skip normal sections when impersonating without a dedicated impersonation preset, i.e. when falling back to the chat preset.
[Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523009678584451305]

[2026-07-04T16:59:25.077Z] Marinara: Intended.
[Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523010356178452662]

[2026-07-04T17:10:06.030Z] Vintage: Understood. Is the intention to remove the option to change your preset for Impresonate responses then? There's not a lot of point if the meat of the prompts get stripped out anyways
[Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523013044530319431]

[2026-07-04T17:14:10.597Z] Marinara: Hm, I guess I can add a toggle that if toggled on, sends the preset still?
[Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523014070318534657]

[2026-07-04T17:14:24.107Z] Marinara: Would that work?
Well, a checkbox really, off by default.
[Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523014126983581697]

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 @SpicyMarinara on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3209 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Marinara Engine 2.0.9, impersonate mode skips every prompt section that is not a marker due to a change in `packages/server/src/services/prompt/assembler.ts`. This breaks dedicated impersonation presets that rely on normal prompt sections. ## Expected behavior Dedicated impersonation presets should still be able to send their normal prompt sections when impersonate mode is active, or there should be an explicit opt-in setting to allow this behavior. ## Actual behavior When `input.impersonate === true`, Marinara skips all prompt sections where `section.isMarker !== "true"`, causing impersonation presets to lose the main prompt content. ## Steps to reproduce 1. Create or use an Impersonate preset that directs the AI to act as `{{user}}` and relies on normal prompt sections. 2. Enable impersonate mode. 3. Generate an impersonate response. 4. Observe that non-marker prompt sections from the preset are not included. ## Environment - Marinara Engine version: 2.0.9 - Install type: other - OS + version: Linux - Browser or app shell: Not provided ## Logs, screenshots, or video Relevant code path reported: `Marinara-Engine/packages/server/src/services/prompt/assembler.ts` contains `if (input.impersonate === true && section.isMarker !== "true") continue;`. ## Additional context Maintainer indicated the current behavior is intended, but discussed adding an off-by-default checkbox/toggle to still send the preset during impersonate mode. User suggested only skipping normal sections when impersonating without a dedicated impersonation preset, such as when falling back to the chat preset. Discord thread: Impersonate Prompt Change Discord thread link: https://discord.com/channels/1417099416812392641/1523009678584451305 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-07-04T16:56:43.526Z] Vintage: - Linux - Installed as a systemmd service - 2.0.9 I have an Impersonate preset that directs the AI to act as {{user}}. A recent update seems to have added a line to the following file: Marinara-Engine/packages/server/src/services/prompt/assembler.ts The change is: if (input.impersonate === true && section.isMarker !== "true") continue; As a result of this change, when impersonate mode is active, Marinara skips every prompt section that is not a marker. This may be intended behaviour given most presets likely strictly direct the AI not to act as {{user}}, but it does break any impersonate presets completely. Suggested change: Only skip normal sections when impersonating without a dedicated impersonation preset, i.e. when falling back to the chat preset. [Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523009678584451305] [2026-07-04T16:59:25.077Z] Marinara: Intended. [Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523010356178452662] [2026-07-04T17:10:06.030Z] Vintage: Understood. Is the intention to remove the option to change your preset for Impresonate responses then? There's not a lot of point if the meat of the prompts get stripped out anyways [Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523013044530319431] [2026-07-04T17:14:10.597Z] Marinara: Hm, I guess I can add a toggle that if toggled on, sends the preset still? [Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523014070318534657] [2026-07-04T17:14:24.107Z] Marinara: Would that work? Well, a checkbox really, off by default. [Discord message: https://discord.com/channels/1417099416812392641/1523009678584451305/1523014126983581697] ``` </details> ## 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:42:02 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Jul 4, 2026):

Addressed in ready PR #3218 targeting staging.

<!-- gh-comment-id:4884070419 --> @SpicyMarinara commented on GitHub (Jul 4, 2026): Addressed in ready PR #3218 targeting staging.
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#1723
No description provided.