mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7874
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/7676
Author: @Gunterlie
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @Gunterlie
Base:
staging← Head:chore/7573-generation-info-extra📝 Commits (2)
e8166d5refactor(generate): build the saved message's generation info in saved-message-extra.ts0ed1a19Merge remote-tracking branch 'origin/staging' into chore/7573-generation-info-extra📊 Changes
4 files changed (+374 additions, -65 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+35 -60)➕
packages/server/src/routes/generate/saved-message-extra.ts(+138 -0)➕
scripts/regressions/generate-saved-message-extra.regression.ts(+192 -0)📝
scripts/regressions/roleplay-streaming.regression.ts(+9 -5)📄 Description
Linked issue
Part of #7573 (fifth slice). Stacked on #7674: merge it first; GitHub retargets this PR to
stagingwhen its base branch is deleted.Why this change
Every saved reply stores a
generationInforecord: usage, timing, limits, preset values, thinking, Gemini parts, reasoning metadata and context injections. It was a 60-line object literal plus five follow-up assignments in the middle of the save step ofgenerateForCharacter. One rule in it is easy to break silently: an absent value must be stored asnull, not left out, so a regenerated swipe clears the previous swipe's thinking, Gemini parts and reasoning. As a pure function with its own regression, that rule is now pinned.No behaviour change.
What changed
packages/server/src/routes/generate/saved-message-extra.ts:buildGenerationInfoExtra(options)builds the same object, with the same keys in the same order and the same value expressions.generate.routes.ts(now about 14,970 lines) calls it where the literal was and keeps every later change to the object, the DB writes and the SSE events.scripts/regressions/generate-saved-message-extra.regression.ts: all-absent inputs give explicitnullkeys (strictdeepEqual), present values pass through, the Game-mode keys and market-place clear, tool-planning needs both the plan and its connection, themaxContextfallback and itsnullundersuppressModelParameters, and thereasoningEffortfallback.roleplay-streamingpins now check that the route passesstreamOutput.reasoningDurationMsand that the helper stores it next tofinishReason.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results (not a substitute for the boxes above):
pnpm check: passed.generate.routes.ts, and every one that covers generation info, reasoning duration, Gemini parts or encrypted reasoning.generationInfokeys and the five follow-up assignments with the old code and found no change.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)Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.