mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7940] [MERGED] fix: remove preset token caps and inherit connection send switches #8015
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#8015
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/7940
Author: @SpicyMarinara
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/preset-caps-and-reasoning-defaults📝 Commits (3)
3d5dbeechore: track parameter inheritance fixes04ed6eafix: keep token limits outside presets and inherit connection toggles10679c9test: verify inherited game connection controls through public APIs📊 Changes
15 files changed (+250 additions, -63 deletions)
View changed files
📝
docs/prompts/generation-parameters.md(+4 -4)📝
e2e/generation-parameter-controls.e2e.ts(+102 -1)📝
packages/client/src/components/presets/PresetEditor.tsx(+3 -2)📝
packages/client/src/components/ui/GenerationParametersEditor.tsx(+4 -1)📝
packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx(+11 -4)📝
packages/client/src/localization/locales/en.json(+1 -1)📝
packages/server/src/db/default-preset.json(+1 -1)📝
packages/server/src/routes/game.routes.ts(+3 -3)📝
packages/server/src/routes/generate.routes.ts(+1 -13)📝
packages/server/src/routes/generate/dry-run-route.ts(+2 -9)📝
packages/server/src/routes/generate/parameter-preview-route.ts(+8 -12)📝
packages/server/src/services/prompt/assembler.ts(+10 -5)📝
packages/server/src/services/storage/prompts.storage.ts(+9 -7)📝
packages/shared/src/types/prompt.ts(+15 -0)➕
scripts/regressions/preset-token-limits.regression.ts(+76 -0)📄 Description
Linked issue
Closes #7937.
Closes #7939.
Why this change
The maintainer requested that token limits belong in Connections and chat Advanced Parameters, rather than presets. The bundled preset still stored a 128k context value and an 8192-token output value. Separately, Game creation copied connection defaults into chat overrides, and editing any chat parameter saved every inherited Send switch as an explicit override. Those snapshots could keep the reasoning toggle from following a newly selected connection.
What changed
Validation
At
10679c9ccae1006e70c92a3a8133b9ce099d4324:Combined desktop Chromium smoke and focused parameter suite: 9/9 passed (7 smoke, 2 focused), one worker on isolated ports 7850/7851.
preset-token-limits,prompt,prompt-attachments,context-fit,game-generation-parameters, andstock-preset-protectionregressions passed.Final
pnpm checkand repeatedpnpm regression:promptpassed. The check reports one existingHomeProfessorMariChathook dependency warning, with no errors.First local CodeRabbit pass: no findings. Completed follow-up review reported two findings: a shorter hint (fixed) and translated documentation (included in #7946). No substantive code findings remain.
pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedThe generation-parameters guide translation is included in docs-i18n PR #7946, tracking #7917. No release metadata or changelog changes.
UI evidence
Automated desktop Chromium coverage checks preset controls and actual Game creation, unrelated parameter editing, connection switches, and explicit Send overrides. Physical Android/Samsung Browser verification remains a manual check.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.