mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3299] [Issue]: Autonomous messages in merged (default) group conversations count against the first character, so per-character caps never bind #1787
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#1787
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 @Magiwarriorx on GitHub (Jul 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3299
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In a merged-mode group Conversation (the default), every autonomous message is saved and
counted against
characterIds[0]regardless of which character the poller selected. Theper-character follow-up cap and daily budget are keyed to the selected character, whose
counter never moves — so neither cap binds. With schedules disabled (no offline gate),
autonomous messaging becomes unbounded.
Expected behavior
The poller selects one character X per trigger; the follow-up cap (stop after 2–3 until the
user replies) and the daily budget (5–8/day) then throttle X. The message and both counters
should be attributed to X.
Actual behavior
Here "attribution" means both (a) the saved message's
characterIdand (b) thefollow-up/budget counters — both go to
characterIds[0], not X. The visible dialogue is stillvoiced as X (the prompt is scoped to X, and merged
<speaker>tags label the lines), so this isa bookkeeping bug, not a wrong-speaker-in-chat bug.
Merged generation hardcodes the responder to
characterIds[0](packages/server/src/routes/generate.routes.ts:7927);input.forCharacterId(the selected X) scopes only the prompt (:2502), never the save (:7627)or the counters (
:7636-7637). So every character other than[0]never accumulates a count: itsfollow-up count and budget stay 0, so it stays eligible and is never capped
(
services/conversation/autonomous.service.ts:356,360; the budget check reads the selected char atroutes/conversation.routes.ts:161andgenerate.routes.ts:2925).[0]absorbs the counts and doesget capped, but the priority sort ranks un-throttled characters above it (
autonomous.service.ts:376vs
:391), so the poller keeps picking a fresh one and the chat never falls silent.Steps to reproduce
generate.routes.ts:5058-5063).first character in the group.
Environment
staging@4499d4e3Logs, screenshots, or video
None.
Additional context
generate.routes.ts:5058-5063). Manual order usesthe individual loop, which honors
forCharacterId(:6725-6727); DMs are unaffected ([0]is theselected character).
git blameputs:7927at881aff26(2026-05-17).targetCharIdfromforCharacterIdin the merged branch, falling back to[0]: The @mention and regen paths reassigntargetCharIdafter this line, so they are unaffected.Not verified against a running server.
Template check
@SpicyMarinara commented on GitHub (Jul 6, 2026):
Fixed in staging via #3305.