mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1404] [MERGED] Restore custom agent run interval parity #5071
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#5071
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/1404
Author: @Xelvanis
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/custom-agent-runinterval-parity📝 Commits (2)
6b45916Restore custom agent run interval gating843c006Harden custom agent cadence edge cases📊 Changes
4 files changed (+415 additions, -28 deletions)
View changed files
📝
src/engine/generation/agent-runner.test.ts(+283 -0)📝
src/engine/generation/agent-runner.ts(+89 -28)📝
src/engine/generation/start-generation.test.ts(+41 -0)📝
src/engine/generation/start-generation.ts(+2 -0)📄 Description
Linked issue
No linked issue found. This PR comes from the local refactor parity audit chore for custom agent cadence/runtime
runIntervalbehavior.Why this change
Custom agents exposed a Trigger Cadence /
settings.runIntervalcontrol, but the refactor runtime only enforced automatic interval gating for Illustrator. That meant custom agents could run every generation even when configured to wait several user messages, regressing legacy 1.6.1 behavior.What changed
runIntervalgating for non-built-in custom agents using user-message cadence.agentConfigIdwhenagentTypeis absent.Refactor impact
Primary owner:
engine generation
Impact areas reviewed:
startGenerationnormal send and regenerate paths.agent-runscompatibility for current and legacy/imported row shapes.Boundary notes:
cadenceMessagesis an engine runtime input used only to evaluate historical cadence anchors while keeping prompt context sliced.Pressure points touched:
src/engine/generation/agent-runner.tssrc/engine/generation/start-generation.tsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Commands run locally:
pnpm test src/engine/generation/agent-runner.test.tspnpm test src/engine/generation/start-generation.test.tspnpm typecheckpnpm check:architecturegit diff --checkNo native Tauri/manual UI pass was run because this is engine-runtime cadence behavior covered by focused tests.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or changelog update was made. The repository does not currently have a changelog/release-notes file, and this change restores persisted/runtime behavior without changing visible UI copy.
UI evidence
No UI screenshots. This PR does not change rendered UI.
Summary by CodeRabbit
New Features
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.