mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2171] [Issue]: Agent injection-review trigger lost three guards (writer-only filter, regenerate skip, mode gate) #1080
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#1080
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 @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2171
Originally assigned to: @cha1latte on GitHub.
Summary
The Writer Agent Review (agent injection review) feature lost three guards that the legacy app enforced on the server: (1) the reviewable list was filtered to writer-category pre-generation agents (excluding knowledge-retrieval / knowledge-router and HTML/static-context injections); (2) the pause was skipped on regenerate/swipe; (3) the pause only fired in roleplay/visual_novel modes. The refactor's
shouldPauseForAgentInjectionReviewchecks none of these.Expected behavior
Actual behavior
runtime.preInjectionsis passed to the modal unfiltered, so knowledge-retrieval/router and the HTML/static injection surface as editable "writer guidance" textareas.regenerateMessageId, so with the setting on, every swipe/regenerate re-opens the review modal.Steps to reproduce
Impact area
Environment
93555d4bRegression notes
Worked in legacy (main @
c49f1d95). main:packages/server/src/routes/generate.routes.ts:783-790,6500-6504(REVIEWABLE_WRITER_AGENT_TYPES filter),:6497(mode gateroleplay||visual_novel),:6500(!input.regenerateMessageId). refactor @93555d4b:src/engine/generation/start-generation.ts:210-218(shouldPauseForAgentInjectionReview checks only overrides + non-empty + reviewWriterAgentOutputs flag) +:2687-2698(event maps runtime.preInjections directly, no filter). All three guards absent.