mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3124] [Issue]: Prompt Preset choices are not respected when using setting presets #1674
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#1674
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?
Originally created by @calmcacil on GitHub (Jul 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3124
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Quick Setup / Use Settings Presets ignores saved prompt-preset variable defaults. If the selected chat/settings preset includes a prompt preset with saved non-first variable defaults, generation can still resolve those variables to the first option.
Expected behavior
When a chat/settings preset selects a prompt preset, that prompt preset’s saved
defaultChoicesshould be used unless the chat has explicitpresetChoicesalready saved.Actual behavior
Quick Setup applies the chat/settings preset and closes without opening the preset variable modal. The chat preset saves
promptPresetIdbut excludespresetChoices, and generation only reads prompt-presetdefaultChoicesfor non-chat override presets. As a result, empty chat choices reach the prompt assembler, which falls back to the first option.Steps to reproduce
Environment
Logs, screenshots, or video
Relevant code path:
packages/client/src/components/chat/ChatSetupWizard.tsxpackages/server/src/services/storage/chat-presets.storage.tspromptPresetId.packages/shared/src/types/chat-preset.tspresetChoices.packages/server/src/routes/generate.routes.tsdefaultChoicesare only used when the effective preset differs from the chat’s prompt preset.packages/server/src/services/prompt/assembler.tsAdditional context
Likely fix: when
chat.promptPresetIdis selected butchatMeta.presetChoicesdoes not contain a value for a variable, merge in that prompt preset’s saveddefaultChoicesbefore assembling the prompt.Regression coverage should verify that Quick Setup with a chat/settings preset selecting a prompt preset uses the prompt preset’s saved defaults rather than option 1.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 2, 2026):
Codex is taking this in branch codex/issue-sweep-3119-3135 for a staging-targeted fix sweep.
@SpicyMarinara commented on GitHub (Jul 2, 2026):
Fix is ready in PR #3138 with CI passing. This issue will close automatically when the PR merges into staging.