mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #332] [Issue]: Custom agent not triggered? #139
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#139
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 @somesillyusername on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/332
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Following #307 i tried to fix it with prompts, but adjusting Consistency Editor turned out to be bad idea - too much to process at same time for poor gemma 26b. I decided to just copy Consistency Editor and focus on creating single agent - the one dealing with speaker tags. Just in case, this is test one i used to start:
Enabled in agents settings, set as postprocessing, started rp using mari and anonymous to test, added my custom agent in chat settings (only one, all others were disabled) sent "test" message (btw Mari was pretty salty about it and berated me for wasting tokens), and agent isn't triggering. If i add any from official ones, they are working. If i add custom one to existing chat, it's not triggered too. Even manual trigger doesn't work.
Nothing interesting in logs as well.
Expected behavior
Custom agent should trigger
Actual behavior
Custom agent won't trigger
Steps to reproduce
Environment
Logs, screenshots, or video
Additional context
By the way, in what order agents are triggered? What if there is bunch of post-processing ones and you want them in specific order?
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@somesillyusername commented on GitHub (Apr 30, 2026):
Ok, i recreated it and it works now. Not sure what caused it to be ignored at first creation. It doesn't return output in agents block (that top left panel), but i verified it by looking at response/requests tracing. But there is indeed problem with ordering - my "speaker fixer" runs before Consistency Editor and Consistency Editor wipes out it's results, just like it does with OG tags written in initial message:
I propose introducing "weights/priority" system for agents - say in range of 1-1000 - with default agents somewhere in the middle, around 500. That way users can insert their agents before or after builtin agents, or arrange them as they want. If this propose is viable, i can create feature request - or can try doing it myself, although i'm not familiar with TS at all.
@muhammadowais0405-blip commented on GitHub (May 1, 2026):
its not a bug, custom agent start working after second message. also make sure you have chosen the right option if you select parallel. it runs parallel to your main response and if you select pre generation then the agent works first and depending on output to prompt gets send to ai when it writes the main message. the pro generation is mostly for updating the tracker after the main response.
@SpicyMarinara commented on GitHub (May 3, 2026):
Already explained, closing.