mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2267] [MERGED] Fix prompt preset import compatibility #5521
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#5521
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/2267
Author: @Xelvanis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/prompt-preset-import-compat📝 Commits (1)
aa58edbFix prompt preset import compatibility📊 Changes
8 files changed (+443 additions, -56 deletions)
View changed files
📝
src-tauri/src/commands/storage/contracts.rs(+2 -0)📝
src-tauri/src/commands/storage/imports/marinara_tests.rs(+60 -0)📝
src-tauri/src/commands/storage/imports/service_tests.rs(+84 -0)📝
src-tauri/src/commands/storage/imports/st_preset.rs(+42 -36)📝
src-tauri/src/commands/storage/profile.rs(+90 -0)📝
src-tauri/src/commands/storage/shared.rs(+96 -0)📝
src-tauri/src/state.rs(+38 -1)📝
src/engine/contracts/schemas/prompt.schema.ts(+31 -19)📄 Description
Linked issue
Closes https://github.com/Pasta-Devs/Marinara-Engine/issues/2263 and https://github.com/Pasta-Devs/Marinara-Engine/issues/2262
Why this change
defaultflags that were not normalized consistently withisDefault.reasoning_effort: "auto"should preserve automatic provider behavior instead of forcing maximum reasoning.What changed
autoimports to storenull.defaultalias.Refactor impact
Primary owner:
Rust storage and imports, with a matching engine prompt schema update.
Impact areas reviewed:
Boundary notes:
src/engine/contracts.Pressure points touched:
src-tauri/src/commands/storage/imports.src-tauri/src/state.rs.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
Local validation run:
cargo test --manifest-path src-tauri/Cargo.toml app_state_startup_repairs_legacy_prompt_default_conflictscargo test --manifest-path src-tauri/Cargo.toml import_st_preset_keeps_reasoning_effort_auto_unset_and_keeps_fallbackscargo test --manifest-path src-tauri/Cargo.toml default_aliascargo test --manifest-path src-tauri/Cargo.toml conflicting_defaultcargo check --manifest-path src-tauri/Cargo.tomlpnpm typecheckpnpm checkgit diff --checkNo native Tauri manual QA was run; this is covered by focused storage/import tests and the full local PR gate.
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, media capability, or advanced tool.Reason:
Compatibility bugfix for existing prompt preset import and startup repair behavior; no new discoverable user surface.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdDocs/release notes: no tracked changelog, release-note, or changeset file exists; no docs changes needed for this compatibility bugfix.
UI evidence
N/A - no visible UI changes.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.