mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #45] [MERGED] refactor: split retry-agents out of generate route #4415
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#4415
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/45
Author: @TheLonelyDevil9
Created: 4/2/2026
Status: ✅ Merged
Merged: 4/2/2026
Merged by: @SpicyMarinara
Base:
main← Head:pr/generate-route-decomposition📝 Commits (4)
897be5cchore: finish config and release hygiene follow-ups62d9379feat: harden update checks and release guardrails4d191fcrefactor: extract retry agent route from generate monolith0de6ecdMerge branch 'main' into pr/generate-route-decomposition📊 Changes
17 files changed (+968 additions, -660 deletions)
View changed files
📝
.env.example(+2 -0)➕
.github/workflows/publish-github-release.yml(+62 -0)📝
.github/workflows/pull-request-checks.yml(+3 -0)📝
CHANGELOG.md(+3 -0)📝
CONTRIBUTING.md(+7 -3)📝
README.md(+2 -1)➖
installer/Marinara-Engine-Installer-1.4.7.exe(+0 -0)📝
package.json(+2 -0)📝
packages/server/src/config/runtime-config.ts(+8 -0)📝
packages/server/src/routes/admin.routes.ts(+3 -2)📝
packages/server/src/routes/generate.routes.ts(+22 -612)➕
packages/server/src/routes/generate/retry-agents-route.ts(+641 -0)➕
packages/server/src/routes/generate/sse.ts(+24 -0)📝
packages/server/src/routes/updates.routes.ts(+96 -41)📝
packages/server/src/utils/crypto.ts(+2 -1)➕
scripts/check-tracked-installers.mjs(+34 -0)➕
scripts/render-release-notes.mjs(+57 -0)📄 Description
Summary
/api/generate/retry-agentsSSE handler into its own route moduleroutes/generatehelpergenerate.routes.tsfocused on the main/api/generatepath plus route registrationWhy
generate.routes.tsis still one of the highest-risk files in the repo because too many unrelated behaviors live in one place. Even small changes become harder to review, harder to test mentally, and easier to break.This PR is intentionally narrow. The core objective is to carve out one complete route boundary without changing its external behavior, so future fixes in the generation stack are safer and the remaining monolith becomes easier to decompose in smaller reviewable steps.
Notes
Validation
pnpm checkResult
packages/server/src/routes/generate.routes.tsdrops from 5,712 lines before extraction to 4,770 lines on this branch./retry-agentskeeps the same route path, SSE event shapes, and persistence behavior.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.