mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2262] [Issue]: 08-PRESET-COMPAT-default-alias-write-paths prompt default alias write paths #1102
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#1102
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 @Promansis on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2262
Originally assigned to: @Xelvanis on GitHub.
Summary
Surface
08-PRESET-COMPAT-default-alias-write-paths: prompt preset write paths only partially normalize the legacy-compatibledefaultflag to canonicalisDefault. Refactor update paths normalize the alias, but create/profile/import paths can persist or ignoredefaultwithout copying it intoisDefault.Expected behavior
Prompt preset create, profile import, and native/ST import paths should normalize
defaulttoisDefaultwhenisDefaultis absent, reject contradictorydefault/isDefaultvalues, or otherwise store one consistent default flag for prompt presets.Actual behavior
The refactor update schema accepts
defaultand transforms it toisDefault, but Rust storage defaults forpromptsonly addisDefault. A payload withdefault: trueand noisDefaultcan be stored withisDefault: falseplusdefault: true, and read paths that useisDefault ?? defaultcan then treat the row as non-default even though the alias was true.Steps to reproduce
default: trueand noisDefault.promptsrow after Rustwith_entity_defaults("prompts", ...)normalization.isDefaultis defaulted independently instead of inheriting thedefaultalias.Impact area
Environment
refactorstatic trace, local checkout trackingupstream/refactorLogs, screenshots, or video
Parity proof from Target 8 batch, linked from #2259:
isDefaulton create andsetDefault; no promptdefaultalias was found in the legacy prompt preset schema.updatePromptPresetSchemaacceptsdefaultand maps it toisDefault, butcreatePromptPresetSchemahas onlyisDefault; Rust prompt defaults add onlyisDefault; profile import normalizes typed JSON fields but does not copy promptdefaultintoisDefault.src/engine/contracts/schemas/prompt.schema.tssrc/features/catalog/presets/components/CreatePresetModal.tsxsrc/features/catalog/presets/hooks/use-presets.tssrc/engine/generation/prompt-assembly.tssrc-tauri/src/commands/storage/contracts.rssrc-tauri/src/commands/storage/shared.rssrc-tauri/src/commands/storage/profile.rssrc-tauri/src/commands/storage/imports/marinara.rssrc-tauri/src/commands/storage/imports/st_preset.rsmain:packages/shared/src/schemas/prompt.schema.tsmain:packages/server/src/services/storage/prompts.storage.tsmain:packages/server/src/routes/prompts.routes.tsmain:packages/server/src/services/import/marinara.importer.tsRegression notes
This is a confirmed parity gap from upstream parity tracker issue #2259 for
08-PRESET-COMPAT-default-alias-write-paths. Target 1 covered update/default lookup only; this issue tracks the missing create/profile/import write-path normalization.Additional context
Acceptance criteria:
defaultas an alias forisDefaultwhenisDefaultis absent.default/isDefaultconsistently before replacingprompts.defaultandisDefaultvalues.default.Linked tracker: #2259.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: