mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2256] [MERGED] Fix reroll seed reuse #5516
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#5516
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/2256
Author: @cha1latte
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2243-reroll-seed📝 Commits (6)
a6a0408Fix reroll seed reuse07461bbRecord PR metadata for issue 2243018b69dMerge remote-tracking branch 'upstream/refactor' into fix/issue-2243-reroll-seedceeef9eTighten reroll seed normalization scopef7b9fabCover reroll seed parameter variantsb246113Merge remote-tracking branch 'upstream/refactor' into fix/issue-2243-reroll-seed📊 Changes
5 files changed (+209 additions, -7 deletions)
View changed files
📝
src/engine/contracts/schemas/prompt.schema.ts(+2 -0)📝
src/engine/contracts/types/prompt.ts(+4 -0)📝
src/engine/generation/generate-route-utils.ts(+8 -1)📝
src/engine/generation/start-generation.test.ts(+141 -4)📝
src/engine/generation/start-generation.ts(+54 -2)📄 Description
Linked issue
Closes #2243
Why this change
What changed
seedvalues in top-level parameters,customParameters, andcustom_paramswith one fresh 32-bit seed before the provider call.seedandcustom_paramsinputs instead of dropping them before runtime normalization.startGenerationstream parameters for regenerate, non-regenerate, integer, and nested non-integer seed paths.scratch/bugfix-verification.jsonproof file; currentrefactorenforces clean tracked scratch state.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
src/engineand engine contract types/schemas.Pressure points touched:
src/engine/generation/start-generation.tssrc/engine/generation/generate-route-utils.tssrc/engine/contracts/schemas/prompt.schema.tssrc/engine/contracts/types/prompt.tsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm test src/engine/generation/start-generation.test.ts: passed, 12 tests.pnpm typecheck: passed.pnpm check: passed line endings, scratch cleanliness, architecture, frontend typecheck, Rust check, docs, discovery, launcher safety, and unused-code checks.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. This is engine request-parameter normalization with focused request-path proof rather than a visible UI change.
Summary by CodeRabbit
New Features
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.