mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7304] [MERGED] feat(illustrator): Run Interval per chat #7674
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#7674
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7304
Author: @SpicyMarinara
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/illustrator-chat-run-interval📝 Commits (5)
d9cda66feat(illustrator): set Run Interval per chatef28521fix(illustrator): read a Run Interval saved as text, and say this chat's interval in /illustrate copy9d366ccMerge origin/staging into feat/illustrator-chat-run-interval18444cffix(illustrator): keep the per-chat Run Interval to Roleplay; restore the /illustrate copy392dddbMerge origin/staging into feat/illustrator-chat-run-interval📊 Changes
17 files changed (+348 additions, -48 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/agents/built-in-agents.md(+2 -2)📝
docs/media/illustrator-agent.md(+5 -3)📝
e2e/illustrator-manual-cadence.e2e.ts(+56 -0)📝
e2e/roleplay-commands.e2e.ts(+14 -0)📝
packages/client/src/components/agents/AgentEditor.tsx(+3 -0)📝
packages/client/src/components/chat/AgentAddSetupFields.tsx(+9 -4)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+68 -18)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+23 -15)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/routes/agents.routes.ts(+12 -3)📝
packages/server/src/routes/chats.routes.ts(+5 -0)📝
packages/server/src/routes/generate.routes.ts(+10 -2)📝
packages/server/src/services/generation/agent-cadence.ts(+17 -0)📝
packages/shared/src/types/chat.ts(+5 -0)📝
packages/shared/src/utils/illustrator-generation-count.ts(+10 -0)📝
scripts/regressions/illustrator-manual-cadence.regression.ts(+106 -1)📄 Description
Linked issue
Closes #7299
Why this change
Illustrator's Run Interval (messages between automatic images; 0 means only when you ask) could only be set in the Agent Editor, so one value applied to every chat. People want different rhythms per chat: every message in one, every 5 in another, manual only in a third. The add-agent window showed the field, but changing it there silently changed the Agent Editor value for every chat. Mari asked for the interval to be a per-chat setting, with the Agent Editor value as the default.
What changed
illustratorRunInterval(whole number 0–100; 0 = only when you ask; missing or null = the Agent Editor value), normalized bynormalizeIllustratorRunIntervalnext to the images-per-generation normalizer. Numbers and numeric text are both accepted, as the server already did for agent settings.PATCH /chats/:id/metadataclamps the field. One helper,applyIllustratorChatRunIntervalinagent-cadence.ts, is applied at the only automatic Illustrator gate (skipAutomaticIllustratoringenerate.routes.ts) and in the unused cadence status route. It applies the chat value only in Roleplay chats: Game orders its illustrations by scenes and asset needs, so a value carried over by a settings profile can't change Game. 0 still means never automatic. Gallery Illustrate and slash commands go through the retry route, which has no cadence check, so they ignore the interval.runIntervalinto the global agent config, which used to change every other chat. In a Game chat, the add window doesn't show Illustrator's Run Interval. Other agents are unchanged."0", from older or imported settings) is now read the way the server reads it, instead of showing 5 (CodeRabbit thread).illustrator-manual-cadenceregression covers the normalizer, the chat value winning over the agent value in Roleplay and being ignored in Game, null fallback, 0/1/3 cadence decisions and the add-window patch.e2e/illustrator-manual-cadence.e2e.tsdrives the card field, reset, the add window and an agent value saved as text, and checks that the agent config is never changed.e2e/roleplay-commands.e2e.tsproves through real generate runs that the chat value wins in both directions and that null falls back.docs/media/illustrator-agent.md,docs/agents/built-in-agents.md. CHANGELOG entry under[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not a substitute for the boxes above):
pnpm checkon the final head (18444cfba): exit 0.illustrator-*(6/6),open-issues,manual-agent-retry-resolution,agent-runtime,chat-window-icons,localization-key-references: all pass.e2e/illustrator-manual-cadence.e2e.ts: desktop-chromium and mobile-webkit pass. With the drawer change reverted, the new text-value step fails (Expected "3",Received "5").e2e/roleplay-commands.e2e.ts"forward Illustrator settings" ande2e/core-flows.e2e.ts"Illustrator and Storyboard keep separate visual settings cards": pass on desktop-chromium on the final head. On mobile-webkit it passed 12 of 13 repeated runs; the 1 failure was a 10 s timeout opening Chat Settings at an existing step (roleplay-commands.e2e.ts:2201), before this PR's assertions. The same test passed 4/4 on unchanged staging, which is too few runs to tell whether that timeout is new./illustratecommand description is unchanged from staging. A separate verifier traced every serverrunIntervalread and agreed that the automatic Illustrator gate is the only cadence check.listMessagescall. GitHub CodeRabbit's text-value finding is fixed inef285215c.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Translation follow-up: #7305.
UI evidence (if applicable)
None yet.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.