[GH-ISSUE #4240] [Issue]: Pre-processing agent context is omitted from first generation #2295

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Custom pre-processing agents and Knowledge Retrieval run and display their outputs, but those outputs are not included in the main model's assembled prompt on the first generation. The context appears only after rerolling the response. Additionally, some agents like Narrative Director miss the Add as Prompt Section toggle, allowing users to decide where to inject its output. Enabled toggled Agents, when listed in the Add Section for markers in the Prompt editor, are centered instead of being aligned to the left.

Image

Expected behavior

The initial generation should wait for all configured pre-processing agents and Knowledge Retrieval, inject their outputs into the assembled prompt in the configured order, and apply the selected Advanced Parameters. All agents that return anything to be injected into the main generation need to have the Add as Prompt Section toggle in their editors. When enabled, that way marker needs to display correctly in the Add Section in the prompt editor.

Actual behavior

On the first generation, agent outputs are visible under Agents and Actions but absent from the assembled prompt. One example showed 5 sections and approximately 6,966 tokens initially, then 12 sections and approximately 8,212 tokens after a reroll. The initial request also used an 8K maximum output instead of the configured 28K; the reroll used the agent context and configured parameter.

Steps to reproduce

  1. Install and launch Marinara Engine v2.3.4 using the Windows installer.
  2. Enable Roleplay mode and configure custom agents in the pre-processing pipeline; Knowledge Retrieval is also enabled.
  3. Create a new chat with a new character, select the character and bot, and apply the preset.
  4. Send the first message and wait for the agents and main model to finish.
  5. Confirm that agent outputs appear under Agents and Actions.
  6. Open Assembled Prompt and verify that the agent outputs are missing from the first model request.
  7. Reroll the main model response without rerunning or changing the agents.
  8. Open Assembled Prompt again and observe that the retained agent outputs are now included and the configured Advanced Parameters are applied.

Environment

  • Marinara Engine version: v2.3.4, build b7545a6
  • Install type: installer (Marinara-Engine-Installer-2.3.4.exe)
  • OS + version: Windows 11
  • Browser or app shell: Not provided

Logs, screenshots, or video

No text logs provided. Screenshots: https://cdn.discordapp.com/attachments/1531633256154267848/1531926641197056021/image.png?ex=6a6afd5d&is=6a69abdd&hm=e6f113d82a21e41d76d6f63beddae73032eaa87d47f0b0018927a17f4ed592c4& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936410909540362/image.png?ex=6a6b0676&is=6a69b4f6&hm=1b7f0f3b25e2610c2aa870b4d4ce5ea7daa22013d5b96217f2871537d9616a2e& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936411303809084/image.png?ex=6a6b0676&is=6a69b4f6&hm=be8981ce730b6d56008f89dc95fc24029729b51573041b39942a708b3cddc86d& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936411601862836/image.png?ex=6a6b0676&is=6a69b4f6&hm=51726af8a730c02138797d70eb27b7b12d5064c87603de3f6c183c51a5bb336f& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936411979223171/image.png?ex=6a6b0676&is=6a69b4f6&hm=df470b619e31af7d73d8ce9e8e9c3cb4756f47f824f46ed5431fc3f58506de99& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936412398649344/image.png?ex=6a6b0676&is=6a69b4f6&hm=76c1e1c6f5034e60c7884f24a5584900804a47cb7481d35b2290d8ddab12715c& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936412797112431/image.png?ex=6a6b0676&is=6a69b4f6&hm=2fcc13e7fafe28e2257f99c1c2537b040ef921f2005056f99ce4af760eaf5266&

Additional context

The reporter believes this worked around v2.3.2 and stopped after a later update. Their custom agents do not have explicit preset markers because they could not determine how to add them, but Knowledge Retrieval is present and reportedly has the same failure. They suspect the main generation starts before pre-processing output is inserted. Dynamic blocks such as Memory Recall and Secret Plot also appear in positions that disrupt prompt caching, but prompt-order control may be a separate issue.

Discord thread: my agents context are not injected on the first attempt.
Discord thread link: https://discord.com/channels/1417099416812392641/1531633256154267848
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (21 messages)
[2026-07-28T12:03:44.637Z] Les: Win 11
Marinara-Engine-Installer-2.3.4.exe
Roleplay mode
Release: v2.3.4
Build: b7545a6


I ran into a problem.

I send a request, the agents think, I see their context injection output in agents and actions then the main model runs, and after generation in Assembled Prompt → Live Preview:
5 sections · ~6,966 tokens

so, none of the agents' outputs were inserted.

however, if I reroll the main model without touching the agents (their outputs are kept from the previous attempt), then in Assembled Prompt → Exact Text Model Request:
12 sections · ~8,212 tokens

So, in order for the LLM to take into account my lorebooks, pre-processing agents, etc. every time, I have to do a generation and then a reroll every single time.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531633256154267848]

[2026-07-28T12:22:00.010Z] Marinara: On swipes we do not want to use the last agents' output.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531637850481758288]

[2026-07-28T12:22:15.406Z] Marinara: I mean, we want to use only the one from the previous turn, but not from the message you're rerolling.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531637915057127455]

[2026-07-29T07:19:52.183Z] Les: What do you mean?

The preprocessing agent is supposed to insert its outputs before the main model's response. But it doesn't do that. It only does it on reroll.

Literally the whole point of having a preprocessing agent – it's not working.

I have preprocessing agents: quest, worldstat, 2 custom ones, lorebooks. They all are supposed to inject data into the request before the main model replies, supplementing the query!

But for some reason, that's not happening!

As a result, the model generates a response missing half of the crucial data!!!!

Injection only triggers after a reroll! That shouldn't be the case.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924204730056724]

[2026-07-29T07:20:35.892Z] Marinara: Trackers are post-processing agents.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924388059021373]

[2026-07-29T07:20:44.607Z] Marinara: They won’t work in preprocessing pipeline.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924424612118609]

[2026-07-29T07:21:00.485Z] Marinara: If you changed the pipeline, that explains why they don’t work.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924491209412618]

[2026-07-29T07:21:37.887Z] Marinara: Changed them back to post-processing and they will work again.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924648084639794]

[2026-07-29T07:26:23.667Z] Les: What does post-processing have to do with it? I'm talking about the agent's PRE-processing. For example, I have an agent – Logic: it reads the scene, writes rules for the LLM to avoid logical errors in the response, and adds that to the prompt along with my query. The model receives instructions, chat history, the agent's OUTPUT, my query, etc. And based on all that, it generates a reply. But after some update, this stopped working.

Around version 2.3.2, I think it was fine – everything worked as expected.

But now, I send a message to the bot, the agents run, I can see their outputs, but they don't get injected into the MAIN prompt!
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531925846732968007]

[2026-07-29T07:28:03.734Z] Marinara: Ohhh, okay the custom agents don’t work.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926266444255362]

[2026-07-29T07:28:27.549Z] Marinara: Let me investigate then.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926366331736215]

[2026-07-29T07:29:06.433Z] Marinara: Prof, custom agents set to pre-processing pipeline no longer inject their context into the main generation.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926529422921760]

[2026-07-29T07:29:18.090Z] Marinara: @Professor Mari GitHub Issue
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926578316181646]

[2026-07-29T07:29:33.155Z] Les: Look, here it displays their output, but it doesn't insert it into the assembled prompt!

I believe there's an internal error happening, and the model starts generating a response without waiting for the pre-processing agents' output to be inserted into the assembled prompt.

[attached image 1: https://cdn.discordapp.com/attachments/1531633256154267848/1531926641197056021/image.png?ex=6a6afd5d&is=6a69abdd&hm=e6f113d82a21e41d76d6f63beddae73032eaa87d47f0b0018927a17f4ed592c4&]
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926641503113219]

[2026-07-29T07:31:23.175Z] Marinara: Did you add the marker in your preset where to add those outputs?
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531927102960570591]

[2026-07-29T07:38:37.629Z] Les: As for my own custom ones – no, I don't have any. BUT! I do have Knowledge Retrieval added. It's pre‑processing, but it doesn't get injected either, just like the others.

And I'll repeat the important point one more time: previously this wasn't an issue – everything worked stably, so I don't know what changed. As for adding my custom agents to the preset – I couldn't figure out how; the preset doesn't see them on its own (again, this didn't stop the agents from working properly before).

I'd like the prompt‑related issue to be looked into more thoroughly.

Another problem: I can't set up a clear order for sending (the prompt parts). I tried to configure the order in the preset, but half of Marinara's functions insert their blocks randomly, completely ignoring my settings. Because of that, my model can't reuse the cache and is forced to recalculate the entire prompt from scratch every time, which eats up time.

So yeah, that's about it. Marinara is a great app, props for that, but there are a lot of bugs.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531928925192847502]

[2026-07-29T07:40:00.928Z] Marinara: What do you mean randomly?
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531929274573914233]

[2026-07-29T07:43:19.348Z] Les: Well, for example, Memory Recall or Secret Plot – they get injected right in the middle, often right before the chat history. And since these are dynamic blocks, the cache breaks immediately after the system instructions. So the LLM is forced to recalculate everything from scratch.

If there were a way to more clearly control what exactly gets sent to the model and how, in what order, with the ability to fine‑tune it – that would be great.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531930106807975998]

[2026-07-29T07:44:06.928Z] Marinara: Yes, that’s why I asked whether you added those to the prompt as markers.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531930306372829298]

[2026-07-29T07:44:25.313Z] Marinara: Not on my laptop right now, will show you later.
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531930383485243443]

[2026-07-29T08:08:22.880Z] Les: Here's an example: the first request and a reroll right away. 
Just now I noticed a strange thing that I hadn't noticed before! Why is it that on the first send my max output is 8K, but on reroll it suddenly uses my settings from Advanced Parameters at 28K?
I created a new chat with a new character, immediately applied the preset, selected the character and the bot – same nonsense. First request is basic and at 8K output, reroll – my agents and my settings...
Alright, I'll try installing Marinara in a different folder and run it clean to figure out whether the fault lies with me, my agents, or if the error is somewhere in ME.

[attached image 1: https://cdn.discordapp.com/attachments/1531633256154267848/1531936410909540362/image.png?ex=6a6b0676&is=6a69b4f6&hm=1b7f0f3b25e2610c2aa870b4d4ce5ea7daa22013d5b96217f2871537d9616a2e&]
[attached image 2: https://cdn.discordapp.com/attachments/1531633256154267848/1531936411303809084/image.png?ex=6a6b0676&is=6a69b4f6&hm=be8981ce730b6d56008f89dc95fc24029729b51573041b39942a708b3cddc86d&]
[attached image 3: https://cdn.discordapp.com/attachments/1531633256154267848/1531936411601862836/image.png?ex=6a6b0676&is=6a69b4f6&hm=51726af8a730c02138797d70eb27b7b12d5064c87603de3f6c183c51a5bb336f&]
[attached image 4: https://cdn.discordapp.com/attachments/1531633256154267848/1531936411979223171/image.png?ex=6a6b0676&is=6a69b4f6&hm=df470b619e31af7d73d8ce9e8e9c3cb4756f47f824f46ed5431fc3f58506de99&]
[attached image 5: https://cdn.discordapp.com/attachments/1531633256154267848/1531936412398649344/image.png?ex=6a6b0676&is=6a69b4f6&hm=76c1e1c6f5034e60c7884f24a5584900804a47cb7481d35b2290d8ddab12715c&]
[attached image 6: https://cdn.discordapp.com/attachments/1531633256154267848/1531936412797112431/image.png?ex=6a6b0676&is=6a69b4f6&hm=2fcc13e7fafe28e2257f99c1c2537b040ef921f2005056f99ce4af760eaf5266&]
[Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531936413077995581]

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 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4240 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Custom pre-processing agents and Knowledge Retrieval run and display their outputs, but those outputs are not included in the main model's assembled prompt on the first generation. The context appears only after rerolling the response. Additionally, some agents like Narrative Director miss the Add as Prompt Section toggle, allowing users to decide where to inject its output. Enabled toggled Agents, when listed in the Add Section for markers in the Prompt editor, are centered instead of being aligned to the left. <img width="1710" height="993" alt="Image" src="https://github.com/user-attachments/assets/2d8dffe1-4980-4ae4-99c7-81d3264c8d2c" /> ## Expected behavior The initial generation should wait for all configured pre-processing agents and Knowledge Retrieval, inject their outputs into the assembled prompt in the configured order, and apply the selected Advanced Parameters. All agents that return anything to be injected into the main generation need to have the Add as Prompt Section toggle in their editors. When enabled, that way marker needs to display correctly in the Add Section in the prompt editor. ## Actual behavior On the first generation, agent outputs are visible under Agents and Actions but absent from the assembled prompt. One example showed 5 sections and approximately 6,966 tokens initially, then 12 sections and approximately 8,212 tokens after a reroll. The initial request also used an 8K maximum output instead of the configured 28K; the reroll used the agent context and configured parameter. ## Steps to reproduce 1. Install and launch Marinara Engine v2.3.4 using the Windows installer. 2. Enable Roleplay mode and configure custom agents in the pre-processing pipeline; Knowledge Retrieval is also enabled. 3. Create a new chat with a new character, select the character and bot, and apply the preset. 4. Send the first message and wait for the agents and main model to finish. 5. Confirm that agent outputs appear under Agents and Actions. 6. Open Assembled Prompt and verify that the agent outputs are missing from the first model request. 7. Reroll the main model response without rerunning or changing the agents. 8. Open Assembled Prompt again and observe that the retained agent outputs are now included and the configured Advanced Parameters are applied. ## Environment - Marinara Engine version: v2.3.4, build b7545a6 - Install type: installer (Marinara-Engine-Installer-2.3.4.exe) - OS + version: Windows 11 - Browser or app shell: Not provided ## Logs, screenshots, or video No text logs provided. Screenshots: https://cdn.discordapp.com/attachments/1531633256154267848/1531926641197056021/image.png?ex=6a6afd5d&is=6a69abdd&hm=e6f113d82a21e41d76d6f63beddae73032eaa87d47f0b0018927a17f4ed592c4& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936410909540362/image.png?ex=6a6b0676&is=6a69b4f6&hm=1b7f0f3b25e2610c2aa870b4d4ce5ea7daa22013d5b96217f2871537d9616a2e& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936411303809084/image.png?ex=6a6b0676&is=6a69b4f6&hm=be8981ce730b6d56008f89dc95fc24029729b51573041b39942a708b3cddc86d& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936411601862836/image.png?ex=6a6b0676&is=6a69b4f6&hm=51726af8a730c02138797d70eb27b7b12d5064c87603de3f6c183c51a5bb336f& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936411979223171/image.png?ex=6a6b0676&is=6a69b4f6&hm=df470b619e31af7d73d8ce9e8e9c3cb4756f47f824f46ed5431fc3f58506de99& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936412398649344/image.png?ex=6a6b0676&is=6a69b4f6&hm=76c1e1c6f5034e60c7884f24a5584900804a47cb7481d35b2290d8ddab12715c& ; https://cdn.discordapp.com/attachments/1531633256154267848/1531936412797112431/image.png?ex=6a6b0676&is=6a69b4f6&hm=2fcc13e7fafe28e2257f99c1c2537b040ef921f2005056f99ce4af760eaf5266& ## Additional context The reporter believes this worked around v2.3.2 and stopped after a later update. Their custom agents do not have explicit preset markers because they could not determine how to add them, but Knowledge Retrieval is present and reportedly has the same failure. They suspect the main generation starts before pre-processing output is inserted. Dynamic blocks such as Memory Recall and Secret Plot also appear in positions that disrupt prompt caching, but prompt-order control may be a separate issue. Discord thread: my agents context are not injected on the first attempt. Discord thread link: https://discord.com/channels/1417099416812392641/1531633256154267848 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (21 messages)</summary> ```text [2026-07-28T12:03:44.637Z] Les: Win 11 Marinara-Engine-Installer-2.3.4.exe Roleplay mode Release: v2.3.4 Build: b7545a6 I ran into a problem. I send a request, the agents think, I see their context injection output in agents and actions then the main model runs, and after generation in Assembled Prompt → Live Preview: 5 sections · ~6,966 tokens so, none of the agents' outputs were inserted. however, if I reroll the main model without touching the agents (their outputs are kept from the previous attempt), then in Assembled Prompt → Exact Text Model Request: 12 sections · ~8,212 tokens So, in order for the LLM to take into account my lorebooks, pre-processing agents, etc. every time, I have to do a generation and then a reroll every single time. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531633256154267848] [2026-07-28T12:22:00.010Z] Marinara: On swipes we do not want to use the last agents' output. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531637850481758288] [2026-07-28T12:22:15.406Z] Marinara: I mean, we want to use only the one from the previous turn, but not from the message you're rerolling. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531637915057127455] [2026-07-29T07:19:52.183Z] Les: What do you mean? The preprocessing agent is supposed to insert its outputs before the main model's response. But it doesn't do that. It only does it on reroll. Literally the whole point of having a preprocessing agent – it's not working. I have preprocessing agents: quest, worldstat, 2 custom ones, lorebooks. They all are supposed to inject data into the request before the main model replies, supplementing the query! But for some reason, that's not happening! As a result, the model generates a response missing half of the crucial data!!!! Injection only triggers after a reroll! That shouldn't be the case. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924204730056724] [2026-07-29T07:20:35.892Z] Marinara: Trackers are post-processing agents. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924388059021373] [2026-07-29T07:20:44.607Z] Marinara: They won’t work in preprocessing pipeline. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924424612118609] [2026-07-29T07:21:00.485Z] Marinara: If you changed the pipeline, that explains why they don’t work. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924491209412618] [2026-07-29T07:21:37.887Z] Marinara: Changed them back to post-processing and they will work again. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531924648084639794] [2026-07-29T07:26:23.667Z] Les: What does post-processing have to do with it? I'm talking about the agent's PRE-processing. For example, I have an agent – Logic: it reads the scene, writes rules for the LLM to avoid logical errors in the response, and adds that to the prompt along with my query. The model receives instructions, chat history, the agent's OUTPUT, my query, etc. And based on all that, it generates a reply. But after some update, this stopped working. Around version 2.3.2, I think it was fine – everything worked as expected. But now, I send a message to the bot, the agents run, I can see their outputs, but they don't get injected into the MAIN prompt! [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531925846732968007] [2026-07-29T07:28:03.734Z] Marinara: Ohhh, okay the custom agents don’t work. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926266444255362] [2026-07-29T07:28:27.549Z] Marinara: Let me investigate then. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926366331736215] [2026-07-29T07:29:06.433Z] Marinara: Prof, custom agents set to pre-processing pipeline no longer inject their context into the main generation. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926529422921760] [2026-07-29T07:29:18.090Z] Marinara: @Professor Mari GitHub Issue [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926578316181646] [2026-07-29T07:29:33.155Z] Les: Look, here it displays their output, but it doesn't insert it into the assembled prompt! I believe there's an internal error happening, and the model starts generating a response without waiting for the pre-processing agents' output to be inserted into the assembled prompt. [attached image 1: https://cdn.discordapp.com/attachments/1531633256154267848/1531926641197056021/image.png?ex=6a6afd5d&is=6a69abdd&hm=e6f113d82a21e41d76d6f63beddae73032eaa87d47f0b0018927a17f4ed592c4&] [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531926641503113219] [2026-07-29T07:31:23.175Z] Marinara: Did you add the marker in your preset where to add those outputs? [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531927102960570591] [2026-07-29T07:38:37.629Z] Les: As for my own custom ones – no, I don't have any. BUT! I do have Knowledge Retrieval added. It's pre‑processing, but it doesn't get injected either, just like the others. And I'll repeat the important point one more time: previously this wasn't an issue – everything worked stably, so I don't know what changed. As for adding my custom agents to the preset – I couldn't figure out how; the preset doesn't see them on its own (again, this didn't stop the agents from working properly before). I'd like the prompt‑related issue to be looked into more thoroughly. Another problem: I can't set up a clear order for sending (the prompt parts). I tried to configure the order in the preset, but half of Marinara's functions insert their blocks randomly, completely ignoring my settings. Because of that, my model can't reuse the cache and is forced to recalculate the entire prompt from scratch every time, which eats up time. So yeah, that's about it. Marinara is a great app, props for that, but there are a lot of bugs. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531928925192847502] [2026-07-29T07:40:00.928Z] Marinara: What do you mean randomly? [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531929274573914233] [2026-07-29T07:43:19.348Z] Les: Well, for example, Memory Recall or Secret Plot – they get injected right in the middle, often right before the chat history. And since these are dynamic blocks, the cache breaks immediately after the system instructions. So the LLM is forced to recalculate everything from scratch. If there were a way to more clearly control what exactly gets sent to the model and how, in what order, with the ability to fine‑tune it – that would be great. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531930106807975998] [2026-07-29T07:44:06.928Z] Marinara: Yes, that’s why I asked whether you added those to the prompt as markers. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531930306372829298] [2026-07-29T07:44:25.313Z] Marinara: Not on my laptop right now, will show you later. [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531930383485243443] [2026-07-29T08:08:22.880Z] Les: Here's an example: the first request and a reroll right away. Just now I noticed a strange thing that I hadn't noticed before! Why is it that on the first send my max output is 8K, but on reroll it suddenly uses my settings from Advanced Parameters at 28K? I created a new chat with a new character, immediately applied the preset, selected the character and the bot – same nonsense. First request is basic and at 8K output, reroll – my agents and my settings... Alright, I'll try installing Marinara in a different folder and run it clean to figure out whether the fault lies with me, my agents, or if the error is somewhere in ME. [attached image 1: https://cdn.discordapp.com/attachments/1531633256154267848/1531936410909540362/image.png?ex=6a6b0676&is=6a69b4f6&hm=1b7f0f3b25e2610c2aa870b4d4ce5ea7daa22013d5b96217f2871537d9616a2e&] [attached image 2: https://cdn.discordapp.com/attachments/1531633256154267848/1531936411303809084/image.png?ex=6a6b0676&is=6a69b4f6&hm=be8981ce730b6d56008f89dc95fc24029729b51573041b39942a708b3cddc86d&] [attached image 3: https://cdn.discordapp.com/attachments/1531633256154267848/1531936411601862836/image.png?ex=6a6b0676&is=6a69b4f6&hm=51726af8a730c02138797d70eb27b7b12d5064c87603de3f6c183c51a5bb336f&] [attached image 4: https://cdn.discordapp.com/attachments/1531633256154267848/1531936411979223171/image.png?ex=6a6b0676&is=6a69b4f6&hm=df470b619e31af7d73d8ce9e8e9c3cb4756f47f824f46ed5431fc3f58506de99&] [attached image 5: https://cdn.discordapp.com/attachments/1531633256154267848/1531936412398649344/image.png?ex=6a6b0676&is=6a69b4f6&hm=76c1e1c6f5034e60c7884f24a5584900804a47cb7481d35b2290d8ddab12715c&] [attached image 6: https://cdn.discordapp.com/attachments/1531633256154267848/1531936412797112431/image.png?ex=6a6b0676&is=6a69b4f6&hm=2fcc13e7fafe28e2257f99c1c2537b040ef921f2005056f99ce4af760eaf5266&] [Discord message: https://discord.com/channels/1417099416812392641/1531633256154267848/1531936413077995581] ``` </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:47:04 +07:00
Author
Owner

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

IMPORTANT UPDATE:

Custom pre-processing agents and Knowledge Retrieval run and display their outputs, but those outputs are not included in the main model's assembled prompt on the first generation.

About this part, the user claims it has been resolved by reinstalling ME.

<!-- gh-comment-id:5115066986 --> @SpicyMarinara commented on GitHub (Jul 29, 2026): IMPORTANT UPDATE: > Custom pre-processing agents and Knowledge Retrieval run and display their outputs, but those outputs are not included in the main model's assembled prompt on the first generation. About this part, the user claims it has been resolved by reinstalling ME.
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#2295
No description provided.