mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4240] [Issue]: Pre-processing agent context is omitted from first generation #2295
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#2295
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 (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.
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
Environment
b7545a6Logs, 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)
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 (Jul 29, 2026):
IMPORTANT UPDATE:
About this part, the user claims it has been resolved by reinstalling ME.