[GH-ISSUE #2259] 8. Presets and prompt settings #1103

Closed
opened 2026-10-21 05:26:41 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2259

Originally assigned to: @Promansis on GitHub.

Target 8: Presets And Prompt Settings

target: 8
name: Presets and prompt settings
scan_status: reported
parity_verdict: on_par
proof_level: static_trace
scan_refactor: origin/refactor@62332414
legacy_ref: origin/main@9e960485
report: https://github.com/Pasta-Devs/Marinara-Engine/issues/1904#issuecomment-4608864275
last_refreshed: 2026-06-05

Scope

Included:

  • Prompt preset precedence.
  • Selected preset parameters, wrap format, and choice variables.
  • ST preset import mapping.
  • Chat-settings preset import/export.
  • Game preset-parameter behavior.

Not checked:

  • App/Tauri runtime proof; this refresh is static trace only.

Closure Refresh - 2026-06-05

Static trace refreshed on origin/refactor@62332414 against origin/main@9e960485.

Result: no open blocking Target 8 follow-ups remain after the current refactor branch. The target verdict is upgraded to on_par for static-trace coverage.

Checked closure rows:

Row Result Evidence
08-PRESET-COMPAT-native-order-remap / #2000 fixed Native import patches groupOrder, sectionOrder, and variableOrder through remap_imported_child_order in src-tauri/src/commands/storage/imports/marinara.rs; focused coverage in marinara_tests.rs rejects stale old IDs.
08-PRESET-COMPAT-default-alias-write-paths / #2262 fixed Prompt preset create/update schemas normalize default to isDefault; Rust storage normalization covers create, native/ST import, profile import, and startup repair, with conflict rejection on import/create paths.
08-PRESET-COMPAT-st-reasoning-effort-auto / #2263 accepted divergence Legacy main mapped ST reasoning_effort: "auto" to maximum; #2267 intentionally stores null on refactor so provider/model automatic behavior stays automatic.
08-PRESET-CONTRACT-advanced-generation-params / #2264 fixed Provider request mapping now preserves xhigh / resolves maximum to xhigh for supported OpenAI/OpenRouter models and degrades unsupported models to valid lower efforts.
08-CHATPRESET-RUNTIME-new-chat-starred-apply / #2265 fixed Shared new-chat, connection-gate, and mode-home quick-start paths call useApplyUserStarredChatPreset({ mode, chatId }), and chat presets include canonical game.
08-PRESET-RUNTIME-choice-variable-selection / #2266 fixed with narrow accepted behavior change Runtime and preview sanitize selections against current options, preserve explicit empty/off selections, keep multi-select/random/separator handling, and resolve nested macros in selected choice values. This intentionally preserves explicit empty choices instead of always reselecting the first option.
08-PRESET-COMPAT-profile-preset-table-snapshot / #2262 fixed Same prompt default alias normalizer now covers profile/table import; chat-preset typed JSON/default/active aliases remain preserved.

Remaining risk: no native Tauri/manual app pass was run for this refresh; proof is static code trace plus the merged PR proof recorded in the linked follow-ups.

Surface Inventory Additions

Surface ID Surface Bucket Source Legacy owner Refactor owner In scope Notes
08-PRESET-COMPAT-default-alias-write-paths Prompt preset default to isDefault normalization on create/profile/import paths. COMPAT both packages/shared/src/schemas/prompt.schema.ts; legacy preset import/storage routes src/engine/contracts/schemas/prompt.schema.ts; src-tauri/src/commands/storage/imports/st_preset.rs; src-tauri/src/commands/storage/profile.rs yes Closure refresh found #2262 fixed on origin/refactor@62332414; prompt preset default alias write paths now normalize or reject default / isDefault consistently.
08-PRESET-COMPAT-native-order-remap Native preset sectionOrder, groupOrder, and variableOrder remap on import. COMPAT both legacy/native preset export-import envelope src-tauri/src/commands/storage/imports/st_preset.rs; src-tauri/src/commands/storage/profile.rs; prompt storage commands yes Closure refresh found #2000 fixed on origin/refactor@62332414; native import remaps section/group/variable order IDs and drops stale exported IDs.
08-PRESET-STORAGE-child-copy-cascade Prompt preset duplicate/delete child copy, remap, and cascade behavior. STORAGE both packages/server/src/services/storage/prompts.storage.ts; legacy prompt routes src-tauri/src/commands/storage/prompts.rs; src-tauri/src/commands/storage/commands/entities.rs yes Batch 4 static trace found no gap; duplicate/delete child copy, remap, and cascade are preserved. No new issue.
08-PRESET-STORAGE-default-seed-repair First-boot default prompt preset seed/repair, bundled preset hierarchy, and legacy Default by Marinara rename behavior. STORAGE both packages/server/src/db/seed.ts; packages/server/src/db/default-preset.json; packages/server/src/app.ts src-tauri/src/seed_defaults.rs; src-tauri/resources/default-data/db/default-preset.json yes Batch 4 static trace found refactor better; refactor seeds/repairs bundled preset hierarchy and preserves legacy Default rename. No new issue.
08-PRESET-UI-library-manage-assign-export Prompt preset library workflow: search, create, import, set default, duplicate, delete, bulk export, assign/unassign active chat. UI both packages/client/src/components/panels/PresetsPanel.tsx; packages/client/src/hooks/use-presets.ts; legacy prompt routes src/features/catalog/presets/components/PresetsPanel.tsx; src/features/catalog/presets/hooks/use-presets.ts; src/shared/api/export-api.ts yes Batch 6 static trace found refactor better; library manage/assign/export workflow is preserved via focused wrappers, and assignment clears stale choices/opens choice selection. No new issue.
08-PRESET-UI-editor-structure-order Prompt preset editor workflow for metadata, wrap format, parameters, marker sections, groups, choice variables, and manual order persistence. UI both packages/client/src/components/presets/PresetEditor.tsx; packages/client/src/hooks/use-presets.ts; legacy prompt routes src/features/catalog/presets/components/PresetEditor.tsx; src/features/catalog/presets/hooks/use-presets.ts; src-tauri/src/commands/storage/contracts.rs yes Batch 6 static trace found refactor better; editor metadata, wrap, section, group, choice-variable, and live order workflows are preserved. No new issue. Parameter-control visibility was parity-equal and not chased beyond this UI batch.
08-PRESET-CONTRACT-advanced-generation-params Prompt preset generation-parameter contract for reasoning, verbosity, service tier, assistant prefill, custom parameters, max context, stop sequences, thoughts, strict role, and single-user-message flags. CONTRACT both packages/shared/src/schemas/prompt.schema.ts; legacy generation parameter editor/provider paths src/engine/contracts/schemas/prompt.schema.ts; src/engine/generation/generate-route-utils.ts; src-tauri/crates/llm/src/lib.rs yes Closure refresh found #2264 fixed on origin/refactor@62332414; provider mapping preserves supported xhigh/maximum and safely degrades unsupported models.
08-PRESET-COMPAT-st-reasoning-effort-auto ST preset reasoning_effort: "auto" import mapping. COMPAT both packages/server/src/services/import/st-prompt.importer.ts src-tauri/src/commands/storage/imports/st_preset.rs yes Closure refresh reclassified #2263 as accepted divergence via #2267: ST reasoning_effort: "auto" now stores null to preserve automatic provider behavior instead of forcing legacy maximum.
08-PRESET-COMPAT-st-bulk-preset-discovery ST bulk import preset folder discovery, built-in detection, selection defaults, and import of presets, TextGen Settings, and OpenAI Settings. COMPAT both packages/server/src/services/import/st-bulk.importer.ts; packages/client/src/components/modals/STBulkImportModal.tsx; packages/server/src/services/import/st-prompt.importer.ts src-tauri/src/commands/storage/imports/bulk_imports.rs; src/features/shell/imports/components/STBulkImportModal.tsx; src/shared/api/import-api.ts yes Batch 3 static trace found no gap; refactor scans presets, TextGen Settings, and OpenAI Settings, leaves built-ins unchecked by default, and imports selected presets.
08-PRESET-COMPAT-native-preset-child-envelope Native marinara_preset export/import preserves prompt preset child envelope: sections, groups, choice blocks/variables, and group/section parent links. COMPAT both packages/server/src/routes/prompts.routes.ts; packages/server/src/services/import/marinara.importer.ts src-tauri/src/commands/storage/exports.rs; src-tauri/src/commands/storage/imports/marinara.rs yes Batch 2 static trace found no gap; child envelope and parent links are preserved. Complements #2000 order remap.
08-PRESET-ERROR-import-validation-rollback Prompt preset import validation, unsupported-envelope errors, and rollback/partial-write recovery for ST and native preset imports. ERROR both packages/server/src/routes/import.routes.ts; packages/server/src/services/import/marinara.importer.ts src/features/catalog/presets/components/ImportPresetModal.tsx; src-tauri/src/commands/storage/imports/marinara.rs; src-tauri/src/commands/storage/imports/st_preset.rs yes Batch 2 static trace found refactor better; unsupported native envelopes route to native importer and ST/native preset partial writes roll back. No issue.
08-CHATPRESET-COMPAT-envelope-import-export marinara_chat_preset export/import envelope for chat-settings presets. COMPAT both packages/server/src/routes/chat-presets.routes.ts; packages/server/src/services/storage/chat-presets.storage.ts src/features/catalog/chat-presets/hooks/use-chat-presets.ts; src-tauri/src/commands/storage/commands/entities.rs yes Batch 7 static trace found refactor better; envelope shape is preserved, imported settings are sanitized, and chat-preset create defaults fill default/active flags. No issue.
08-CHATPRESET-COMPAT-mode-alias-defaults Chat-settings preset mode compatibility and defaults across conversation, roleplay, legacy visual_novel, and current game. COMPAT both packages/shared/src/schemas/chat.schema.ts; packages/server/src/services/storage/chat-presets.storage.ts src/engine/contracts/schemas/chat.schema.ts; src-tauri/src/seed_defaults.rs; src/features/catalog/chat-presets/hooks/use-chat-presets.ts yes Batch 7 static trace found refactor better; visual_novel normalizes to roleplay per documented intentional divergence and defaults seed for conversation/roleplay/game. No issue.
08-CHATPRESET-UI-manager-workflow Chat Settings drawer preset manager: apply, mark default/starred, save current settings, rename, duplicate, import/export, delete, and default lock states. UI both packages/client/src/components/chat/ChatSettingsDrawer.tsx; packages/client/src/hooks/use-chat-presets.ts; packages/server/src/routes/chat-presets.routes.ts src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx; src/features/catalog/chat-presets/hooks/use-chat-presets.ts yes Batch 9 static trace found no gap; drawer manager workflow and default lock states are preserved. No issue.
08-CHATPRESET-STORAGE-save-apply-active-default Chat-settings preset save/apply contract stores sanitized settings, preserves chat-specific metadata on apply, enforces one active preset per mode, and protects/defaults fallback presets. STORAGE both packages/shared/src/types/chat-preset.ts; packages/server/src/services/storage/chat-presets.storage.ts; packages/server/src/routes/chat-presets.routes.ts src/features/catalog/chat-presets/hooks/use-chat-presets.ts; src-tauri/src/commands/storage/commands/entities.rs; src-tauri/src/seed_defaults.rs yes Batch 8 static trace found no gap; save/apply sanitization, chat-specific metadata preservation, one-active-per-mode behavior, default protection, and fallback default activation are preserved. No issue.
08-CHATPRESET-RUNTIME-new-chat-starred-apply Active/starred chat-settings presets apply when starting new chats, character-start chats, setup wizard flows, and connection-gated roleplay/game starts. RUNTIME both packages/client/src/components/layout/ChatSidebar.tsx; packages/client/src/components/chat/NewChatConnectionGate.tsx; packages/client/src/hooks/use-start-chat-from-character.ts src/app/shell/useStartNewChat.ts; src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx; src/features/catalog/characters/hooks/use-start-chat-from-character.ts; src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx yes Closure refresh found #2265 fixed on origin/refactor@62332414; new-chat, connection-gate, and mode-home quick-start paths all apply active/starred presets for the selected mode, including game.
08-PRESET-RUNTIME-choice-variable-selection Choice variable selection and resolution: preset defaults, per-chat choices, invalid-choice sanitization, single/multi-select, random pick, separator, first-option fallback, and macro substitution. RUNTIME both packages/client/src/components/presets/ChoiceSelectionModal.tsx; packages/server/src/services/prompt/assembler.ts; packages/shared/src/utils/macro-engine.ts src/features/catalog/presets/components/ChoiceSelectionModal.tsx; src/features/catalog/presets/lib/choice-selections.ts; src/engine/generation/prompt-assembly.ts yes Closure refresh found #2266 fixed with a narrow accepted behavior change on origin/refactor@62332414; runtime/preview sanitize choices, preserve explicit empty/off selections, keep multi-select behavior, and resolve macros inside selected choice values.
08-PRESET-RUNTIME-marker-section-injection Prompt preset marker sections inject dynamic character, persona, lorebook, history, summary, memory, tool, and agent context instead of only static text. RUNTIME both packages/server/src/services/prompt/assembler.ts; legacy preset editor marker config src/engine/generation/prompt-assembly.ts; src/features/catalog/presets/components/PresetEditor.tsx; src/engine/contracts/types/prompt.ts yes Batch 11 static trace found no gap; marker sections inject dynamic character, persona, lorebook, history, summary, and agent context. Memory/tool context is runtime assembly/snapshot behavior, not a preset marker type in legacy or refactor. No issue.
08-PRESET-RUNTIME-prompt-preview-snapshots Prompt preview and prompt inspector replay selected preset, choices, parameters, generated messages, and saved per-swipe prompt snapshots/legacy cached prompts. RUNTIME both packages/server/src/routes/prompts.routes.ts; packages/server/src/routes/chats.routes.ts; packages/client/src/components/chat/PeekPromptModal.tsx src/engine/generation/prompt-preview.ts; src/features/modes/shared/chat-ui/components/PeekPromptModal.tsx; src/features/modes/shared/chat-ui/lib/prompt-snapshot.ts; src-tauri/src/commands/storage/shared.rs yes Batch 11 static trace found refactor better; preview and inspector preserve selected preset, choices, parameters, generated messages, saved per-swipe snapshots, legacy cached prompts, preview messages, and tool definitions. No issue.
08-PRESET-REMOTE-crud-import-export-coverage Hostable remote runtime exposes prompt/chat preset CRUD, duplicate, ST/native import, prompt export, bulk export, and storage wrappers on the same behavior path as embedded Tauri. REMOTE refactor_only legacy server REST routes by design src/shared/api/remote-runtime.ts; src-tauri/src/http_dispatch.rs; src/shared/api/storage-api.ts; src/shared/api/storage-commands-api.ts; src/shared/api/import-api.ts; src/shared/api/export-api.ts yes Batch 12 static trace found no gap; remote hostable path exposes prompt/chat preset CRUD, duplicate, ST/native import, prompt export, bulk export, and storage wrappers through the same command helpers as embedded Tauri. No issue.
08-GAME-RUNTIME-generation-param-source-separation Game setup and runtime generation parameters stay separated from chat prompt preset controls and come from setup metadata, GM connection defaults, or explicit generation requests. RUNTIME both packages/shared/src/types/game.ts; packages/client/src/components/game/GameSetupWizard.tsx; packages/client/src/components/game/GameSurface.tsx; packages/client/src/hooks/use-game.ts src/features/modes/game/components/GameSetupWizard.tsx; src/features/modes/game/components/GameSurface.tsx; src/features/modes/game/hooks/use-game.ts; src/engine/generation/prompt-assembly.ts yes Batch 13 static trace found no gap; game setup/runtime params stay separated from prompt preset controls and come from setup metadata, GM connection defaults, or explicit generation requests. No issue.
08-PRESET-COMPAT-profile-preset-table-snapshot Profile export/import carries prompt preset and chat preset tables with typed JSON fields and default/active aliases. COMPAT both packages/server/src/routes/backup.routes.ts; legacy file-backed store/profile backup paths src-tauri/src/commands/storage/profile.rs; src-tauri/src/commands/storage/profile/legacy.rs; src-tauri/src/commands/storage/contracts.rs yes Closure refresh found #2262 fixed on origin/refactor@62332414; profile/table import now normalizes prompt preset default aliases while chat preset typed JSON/default/active aliases remain preserved.

Coverage Matrix

Surface Status Proof Follow-up
Native marinara_preset import order IDs refactor_better static trace (Batch 1, 2026-06-05) no issue
Prompt/chat settings parity batch covered_static current static trace refresh plus existing issue coverage #1784 closed
Prompt preset precedence covered_static static trace
Selected preset params, wrap format, choice variables covered_static static trace
ST preset import core mappings covered_static static trace
Game forced generation defaults covered_static static trace
Prompt preset default alias create/profile/import write paths covered_static static trace refresh (2026-06-05) #2262 closed
Prompt preset duplicate/delete child cascade behavior covered_static static trace (Batch 4, 2026-06-05) no issue
08-PRESET-STORAGE-default-seed-repair refactor_better static trace (Batch 4, 2026-06-05) no issue
08-PRESET-UI-library-manage-assign-export refactor_better static trace (Batch 6, 2026-06-05) no issue
08-PRESET-UI-editor-structure-order refactor_better static trace (Batch 6, 2026-06-05) no issue
08-PRESET-CONTRACT-advanced-generation-params covered_static static trace refresh (2026-06-05) #2264 closed
08-PRESET-COMPAT-st-reasoning-effort-auto intentional_divergence static trace refresh (2026-06-05) #2263 closed by #2267
08-PRESET-COMPAT-st-bulk-preset-discovery refactor_better static trace (Batch 3, 2026-06-05) no issue
08-PRESET-COMPAT-native-preset-child-envelope covered_static static trace (Batch 2, 2026-06-05) no issue
08-PRESET-ERROR-import-validation-rollback refactor_better static trace (Batch 2, 2026-06-05) no issue
08-CHATPRESET-COMPAT-envelope-import-export refactor_better static trace (Batch 7, 2026-06-05) no issue
08-CHATPRESET-COMPAT-mode-alias-defaults refactor_better static trace (Batch 7, 2026-06-05) no issue
08-CHATPRESET-UI-manager-workflow covered_static static trace (Batch 9, 2026-06-05) no issue
08-CHATPRESET-STORAGE-save-apply-active-default covered_static static trace (Batch 8, 2026-06-05) no issue
08-CHATPRESET-RUNTIME-new-chat-starred-apply covered_static static trace refresh (2026-06-05) #2265 closed
08-PRESET-RUNTIME-choice-variable-selection covered_static static trace refresh (2026-06-05) #2266 closed by #2299
08-PRESET-RUNTIME-marker-section-injection covered_static static trace (Batch 11, 2026-06-05) no issue
08-PRESET-RUNTIME-prompt-preview-snapshots refactor_better static trace (Batch 11, 2026-06-05) no issue
08-PRESET-REMOTE-crud-import-export-coverage covered_static static trace (Batch 12, 2026-06-05) no issue
08-GAME-RUNTIME-generation-param-source-separation covered_static static trace (Batch 13, 2026-06-05) no issue
08-PRESET-COMPAT-profile-preset-table-snapshot covered_static static trace refresh (2026-06-05) #2262 closed

Follow-Ups

Issue State Why it matters
#2000 CLOSED Native preset import order IDs fixed by remapping child order arrays.
#1784 CLOSED Existing prompt/chat settings preset parity batch coverage.
#2262 CLOSED Prompt preset default alias write paths and profile import fixed.
#2263 CLOSED ST reasoning_effort: "auto" accepted as refactor automatic-provider divergence via #2267.
#2264 CLOSED Supported xhigh / maximum reasoning effort provider mapping fixed.
#2265 CLOSED Active/starred chat presets now apply on new-chat and quick-start paths.
#2266 CLOSED Choice-variable sanitizer and nested macro resolution fixed with explicit-empty behavior preserved.

Rescan Result

  • #2000 and all Target 8 follow-ups are fixed, closed, or explicitly accepted as refactor divergences.
  • Fresh static parityscan ran against origin/refactor@62332414 on 2026-06-05.
  • Verdict upgraded to on_par for static-trace coverage.
  • Remaining risk: no native Tauri/manual app proof was run for this tracker refresh.
Originally created by @Promansis on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2259 Originally assigned to: @Promansis on GitHub. # Target 8: Presets And Prompt Settings ```yaml target: 8 name: Presets and prompt settings scan_status: reported parity_verdict: on_par proof_level: static_trace scan_refactor: origin/refactor@62332414 legacy_ref: origin/main@9e960485 report: https://github.com/Pasta-Devs/Marinara-Engine/issues/1904#issuecomment-4608864275 last_refreshed: 2026-06-05 ``` ## Scope Included: - Prompt preset precedence. - Selected preset parameters, wrap format, and choice variables. - ST preset import mapping. - Chat-settings preset import/export. - Game preset-parameter behavior. Not checked: - App/Tauri runtime proof; this refresh is static trace only. ## Closure Refresh - 2026-06-05 Static trace refreshed on `origin/refactor@62332414` against `origin/main@9e960485`. Result: no open blocking Target 8 follow-ups remain after the current `refactor` branch. The target verdict is upgraded to `on_par` for static-trace coverage. Checked closure rows: | Row | Result | Evidence | | --- | --- | --- | | `08-PRESET-COMPAT-native-order-remap` / #2000 | fixed | Native import patches `groupOrder`, `sectionOrder`, and `variableOrder` through `remap_imported_child_order` in `src-tauri/src/commands/storage/imports/marinara.rs`; focused coverage in `marinara_tests.rs` rejects stale old IDs. | | `08-PRESET-COMPAT-default-alias-write-paths` / #2262 | fixed | Prompt preset create/update schemas normalize `default` to `isDefault`; Rust storage normalization covers create, native/ST import, profile import, and startup repair, with conflict rejection on import/create paths. | | `08-PRESET-COMPAT-st-reasoning-effort-auto` / #2263 | accepted divergence | Legacy `main` mapped ST `reasoning_effort: "auto"` to `maximum`; #2267 intentionally stores `null` on `refactor` so provider/model automatic behavior stays automatic. | | `08-PRESET-CONTRACT-advanced-generation-params` / #2264 | fixed | Provider request mapping now preserves `xhigh` / resolves `maximum` to `xhigh` for supported OpenAI/OpenRouter models and degrades unsupported models to valid lower efforts. | | `08-CHATPRESET-RUNTIME-new-chat-starred-apply` / #2265 | fixed | Shared new-chat, connection-gate, and mode-home quick-start paths call `useApplyUserStarredChatPreset({ mode, chatId })`, and chat presets include canonical `game`. | | `08-PRESET-RUNTIME-choice-variable-selection` / #2266 | fixed with narrow accepted behavior change | Runtime and preview sanitize selections against current options, preserve explicit empty/off selections, keep multi-select/random/separator handling, and resolve nested macros in selected choice values. This intentionally preserves explicit empty choices instead of always reselecting the first option. | | `08-PRESET-COMPAT-profile-preset-table-snapshot` / #2262 | fixed | Same prompt default alias normalizer now covers profile/table import; chat-preset typed JSON/default/active aliases remain preserved. | Remaining risk: no native Tauri/manual app pass was run for this refresh; proof is static code trace plus the merged PR proof recorded in the linked follow-ups. ## Surface Inventory Additions | Surface ID | Surface | Bucket | Source | Legacy owner | Refactor owner | In scope | Notes | | --- | --- | --- | --- | --- | --- | --- | --- | | 08-PRESET-COMPAT-default-alias-write-paths | Prompt preset `default` to `isDefault` normalization on create/profile/import paths. | COMPAT | both | `packages/shared/src/schemas/prompt.schema.ts`; legacy preset import/storage routes | `src/engine/contracts/schemas/prompt.schema.ts`; `src-tauri/src/commands/storage/imports/st_preset.rs`; `src-tauri/src/commands/storage/profile.rs` | yes | Closure refresh found #2262 fixed on `origin/refactor@62332414`; prompt preset default alias write paths now normalize or reject `default` / `isDefault` consistently. | | 08-PRESET-COMPAT-native-order-remap | Native preset `sectionOrder`, `groupOrder`, and `variableOrder` remap on import. | COMPAT | both | legacy/native preset export-import envelope | `src-tauri/src/commands/storage/imports/st_preset.rs`; `src-tauri/src/commands/storage/profile.rs`; prompt storage commands | yes | Closure refresh found #2000 fixed on `origin/refactor@62332414`; native import remaps section/group/variable order IDs and drops stale exported IDs. | | 08-PRESET-STORAGE-child-copy-cascade | Prompt preset duplicate/delete child copy, remap, and cascade behavior. | STORAGE | both | `packages/server/src/services/storage/prompts.storage.ts`; legacy prompt routes | `src-tauri/src/commands/storage/prompts.rs`; `src-tauri/src/commands/storage/commands/entities.rs` | yes | Batch 4 static trace found no gap; duplicate/delete child copy, remap, and cascade are preserved. No new issue. | | 08-PRESET-STORAGE-default-seed-repair | First-boot default prompt preset seed/repair, bundled preset hierarchy, and legacy `Default` by Marinara rename behavior. | STORAGE | both | `packages/server/src/db/seed.ts`; `packages/server/src/db/default-preset.json`; `packages/server/src/app.ts` | `src-tauri/src/seed_defaults.rs`; `src-tauri/resources/default-data/db/default-preset.json` | yes | Batch 4 static trace found refactor better; refactor seeds/repairs bundled preset hierarchy and preserves legacy `Default` rename. No new issue. | | 08-PRESET-UI-library-manage-assign-export | Prompt preset library workflow: search, create, import, set default, duplicate, delete, bulk export, assign/unassign active chat. | UI | both | `packages/client/src/components/panels/PresetsPanel.tsx`; `packages/client/src/hooks/use-presets.ts`; legacy prompt routes | `src/features/catalog/presets/components/PresetsPanel.tsx`; `src/features/catalog/presets/hooks/use-presets.ts`; `src/shared/api/export-api.ts` | yes | Batch 6 static trace found refactor better; library manage/assign/export workflow is preserved via focused wrappers, and assignment clears stale choices/opens choice selection. No new issue. | | 08-PRESET-UI-editor-structure-order | Prompt preset editor workflow for metadata, wrap format, parameters, marker sections, groups, choice variables, and manual order persistence. | UI | both | `packages/client/src/components/presets/PresetEditor.tsx`; `packages/client/src/hooks/use-presets.ts`; legacy prompt routes | `src/features/catalog/presets/components/PresetEditor.tsx`; `src/features/catalog/presets/hooks/use-presets.ts`; `src-tauri/src/commands/storage/contracts.rs` | yes | Batch 6 static trace found refactor better; editor metadata, wrap, section, group, choice-variable, and live order workflows are preserved. No new issue. Parameter-control visibility was parity-equal and not chased beyond this UI batch. | | 08-PRESET-CONTRACT-advanced-generation-params | Prompt preset generation-parameter contract for reasoning, verbosity, service tier, assistant prefill, custom parameters, max context, stop sequences, thoughts, strict role, and single-user-message flags. | CONTRACT | both | `packages/shared/src/schemas/prompt.schema.ts`; legacy generation parameter editor/provider paths | `src/engine/contracts/schemas/prompt.schema.ts`; `src/engine/generation/generate-route-utils.ts`; `src-tauri/crates/llm/src/lib.rs` | yes | Closure refresh found #2264 fixed on `origin/refactor@62332414`; provider mapping preserves supported `xhigh`/`maximum` and safely degrades unsupported models. | | 08-PRESET-COMPAT-st-reasoning-effort-auto | ST preset `reasoning_effort: "auto"` import mapping. | COMPAT | both | `packages/server/src/services/import/st-prompt.importer.ts` | `src-tauri/src/commands/storage/imports/st_preset.rs` | yes | Closure refresh reclassified #2263 as accepted divergence via #2267: ST `reasoning_effort: "auto"` now stores `null` to preserve automatic provider behavior instead of forcing legacy `maximum`. | | 08-PRESET-COMPAT-st-bulk-preset-discovery | ST bulk import preset folder discovery, built-in detection, selection defaults, and import of `presets`, `TextGen Settings`, and `OpenAI Settings`. | COMPAT | both | `packages/server/src/services/import/st-bulk.importer.ts`; `packages/client/src/components/modals/STBulkImportModal.tsx`; `packages/server/src/services/import/st-prompt.importer.ts` | `src-tauri/src/commands/storage/imports/bulk_imports.rs`; `src/features/shell/imports/components/STBulkImportModal.tsx`; `src/shared/api/import-api.ts` | yes | Batch 3 static trace found no gap; refactor scans `presets`, `TextGen Settings`, and `OpenAI Settings`, leaves built-ins unchecked by default, and imports selected presets. | | 08-PRESET-COMPAT-native-preset-child-envelope | Native `marinara_preset` export/import preserves prompt preset child envelope: sections, groups, choice blocks/variables, and group/section parent links. | COMPAT | both | `packages/server/src/routes/prompts.routes.ts`; `packages/server/src/services/import/marinara.importer.ts` | `src-tauri/src/commands/storage/exports.rs`; `src-tauri/src/commands/storage/imports/marinara.rs` | yes | Batch 2 static trace found no gap; child envelope and parent links are preserved. Complements #2000 order remap. | | 08-PRESET-ERROR-import-validation-rollback | Prompt preset import validation, unsupported-envelope errors, and rollback/partial-write recovery for ST and native preset imports. | ERROR | both | `packages/server/src/routes/import.routes.ts`; `packages/server/src/services/import/marinara.importer.ts` | `src/features/catalog/presets/components/ImportPresetModal.tsx`; `src-tauri/src/commands/storage/imports/marinara.rs`; `src-tauri/src/commands/storage/imports/st_preset.rs` | yes | Batch 2 static trace found refactor better; unsupported native envelopes route to native importer and ST/native preset partial writes roll back. No issue. | | 08-CHATPRESET-COMPAT-envelope-import-export | `marinara_chat_preset` export/import envelope for chat-settings presets. | COMPAT | both | `packages/server/src/routes/chat-presets.routes.ts`; `packages/server/src/services/storage/chat-presets.storage.ts` | `src/features/catalog/chat-presets/hooks/use-chat-presets.ts`; `src-tauri/src/commands/storage/commands/entities.rs` | yes | Batch 7 static trace found refactor better; envelope shape is preserved, imported settings are sanitized, and chat-preset create defaults fill default/active flags. No issue. | | 08-CHATPRESET-COMPAT-mode-alias-defaults | Chat-settings preset mode compatibility and defaults across `conversation`, `roleplay`, legacy `visual_novel`, and current `game`. | COMPAT | both | `packages/shared/src/schemas/chat.schema.ts`; `packages/server/src/services/storage/chat-presets.storage.ts` | `src/engine/contracts/schemas/chat.schema.ts`; `src-tauri/src/seed_defaults.rs`; `src/features/catalog/chat-presets/hooks/use-chat-presets.ts` | yes | Batch 7 static trace found refactor better; `visual_novel` normalizes to `roleplay` per documented intentional divergence and defaults seed for conversation/roleplay/game. No issue. | | 08-CHATPRESET-UI-manager-workflow | Chat Settings drawer preset manager: apply, mark default/starred, save current settings, rename, duplicate, import/export, delete, and default lock states. | UI | both | `packages/client/src/components/chat/ChatSettingsDrawer.tsx`; `packages/client/src/hooks/use-chat-presets.ts`; `packages/server/src/routes/chat-presets.routes.ts` | `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx`; `src/features/catalog/chat-presets/hooks/use-chat-presets.ts` | yes | Batch 9 static trace found no gap; drawer manager workflow and default lock states are preserved. No issue. | | 08-CHATPRESET-STORAGE-save-apply-active-default | Chat-settings preset save/apply contract stores sanitized settings, preserves chat-specific metadata on apply, enforces one active preset per mode, and protects/defaults fallback presets. | STORAGE | both | `packages/shared/src/types/chat-preset.ts`; `packages/server/src/services/storage/chat-presets.storage.ts`; `packages/server/src/routes/chat-presets.routes.ts` | `src/features/catalog/chat-presets/hooks/use-chat-presets.ts`; `src-tauri/src/commands/storage/commands/entities.rs`; `src-tauri/src/seed_defaults.rs` | yes | Batch 8 static trace found no gap; save/apply sanitization, chat-specific metadata preservation, one-active-per-mode behavior, default protection, and fallback default activation are preserved. No issue. | | 08-CHATPRESET-RUNTIME-new-chat-starred-apply | Active/starred chat-settings presets apply when starting new chats, character-start chats, setup wizard flows, and connection-gated roleplay/game starts. | RUNTIME | both | `packages/client/src/components/layout/ChatSidebar.tsx`; `packages/client/src/components/chat/NewChatConnectionGate.tsx`; `packages/client/src/hooks/use-start-chat-from-character.ts` | `src/app/shell/useStartNewChat.ts`; `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx`; `src/features/catalog/characters/hooks/use-start-chat-from-character.ts`; `src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx` | yes | Closure refresh found #2265 fixed on `origin/refactor@62332414`; new-chat, connection-gate, and mode-home quick-start paths all apply active/starred presets for the selected mode, including `game`. | | 08-PRESET-RUNTIME-choice-variable-selection | Choice variable selection and resolution: preset defaults, per-chat choices, invalid-choice sanitization, single/multi-select, random pick, separator, first-option fallback, and macro substitution. | RUNTIME | both | `packages/client/src/components/presets/ChoiceSelectionModal.tsx`; `packages/server/src/services/prompt/assembler.ts`; `packages/shared/src/utils/macro-engine.ts` | `src/features/catalog/presets/components/ChoiceSelectionModal.tsx`; `src/features/catalog/presets/lib/choice-selections.ts`; `src/engine/generation/prompt-assembly.ts` | yes | Closure refresh found #2266 fixed with a narrow accepted behavior change on `origin/refactor@62332414`; runtime/preview sanitize choices, preserve explicit empty/off selections, keep multi-select behavior, and resolve macros inside selected choice values. | | 08-PRESET-RUNTIME-marker-section-injection | Prompt preset marker sections inject dynamic character, persona, lorebook, history, summary, memory, tool, and agent context instead of only static text. | RUNTIME | both | `packages/server/src/services/prompt/assembler.ts`; legacy preset editor marker config | `src/engine/generation/prompt-assembly.ts`; `src/features/catalog/presets/components/PresetEditor.tsx`; `src/engine/contracts/types/prompt.ts` | yes | Batch 11 static trace found no gap; marker sections inject dynamic character, persona, lorebook, history, summary, and agent context. Memory/tool context is runtime assembly/snapshot behavior, not a preset marker type in legacy or refactor. No issue. | | 08-PRESET-RUNTIME-prompt-preview-snapshots | Prompt preview and prompt inspector replay selected preset, choices, parameters, generated messages, and saved per-swipe prompt snapshots/legacy cached prompts. | RUNTIME | both | `packages/server/src/routes/prompts.routes.ts`; `packages/server/src/routes/chats.routes.ts`; `packages/client/src/components/chat/PeekPromptModal.tsx` | `src/engine/generation/prompt-preview.ts`; `src/features/modes/shared/chat-ui/components/PeekPromptModal.tsx`; `src/features/modes/shared/chat-ui/lib/prompt-snapshot.ts`; `src-tauri/src/commands/storage/shared.rs` | yes | Batch 11 static trace found refactor better; preview and inspector preserve selected preset, choices, parameters, generated messages, saved per-swipe snapshots, legacy cached prompts, preview messages, and tool definitions. No issue. | | 08-PRESET-REMOTE-crud-import-export-coverage | Hostable remote runtime exposes prompt/chat preset CRUD, duplicate, ST/native import, prompt export, bulk export, and storage wrappers on the same behavior path as embedded Tauri. | REMOTE | refactor_only | legacy server REST routes by design | `src/shared/api/remote-runtime.ts`; `src-tauri/src/http_dispatch.rs`; `src/shared/api/storage-api.ts`; `src/shared/api/storage-commands-api.ts`; `src/shared/api/import-api.ts`; `src/shared/api/export-api.ts` | yes | Batch 12 static trace found no gap; remote hostable path exposes prompt/chat preset CRUD, duplicate, ST/native import, prompt export, bulk export, and storage wrappers through the same command helpers as embedded Tauri. No issue. | | 08-GAME-RUNTIME-generation-param-source-separation | Game setup and runtime generation parameters stay separated from chat prompt preset controls and come from setup metadata, GM connection defaults, or explicit generation requests. | RUNTIME | both | `packages/shared/src/types/game.ts`; `packages/client/src/components/game/GameSetupWizard.tsx`; `packages/client/src/components/game/GameSurface.tsx`; `packages/client/src/hooks/use-game.ts` | `src/features/modes/game/components/GameSetupWizard.tsx`; `src/features/modes/game/components/GameSurface.tsx`; `src/features/modes/game/hooks/use-game.ts`; `src/engine/generation/prompt-assembly.ts` | yes | Batch 13 static trace found no gap; game setup/runtime params stay separated from prompt preset controls and come from setup metadata, GM connection defaults, or explicit generation requests. No issue. | | 08-PRESET-COMPAT-profile-preset-table-snapshot | Profile export/import carries prompt preset and chat preset tables with typed JSON fields and default/active aliases. | COMPAT | both | `packages/server/src/routes/backup.routes.ts`; legacy file-backed store/profile backup paths | `src-tauri/src/commands/storage/profile.rs`; `src-tauri/src/commands/storage/profile/legacy.rs`; `src-tauri/src/commands/storage/contracts.rs` | yes | Closure refresh found #2262 fixed on `origin/refactor@62332414`; profile/table import now normalizes prompt preset `default` aliases while chat preset typed JSON/default/active aliases remain preserved. | ## Coverage Matrix | Surface | Status | Proof | Follow-up | | --- | --- | --- | --- | | Native `marinara_preset` import order IDs | refactor_better | static trace (Batch 1, 2026-06-05) | no issue | | Prompt/chat settings parity batch | covered_static | current static trace refresh plus existing issue coverage | #1784 closed | | Prompt preset precedence | covered_static | static trace | | | Selected preset params, wrap format, choice variables | covered_static | static trace | | | ST preset import core mappings | covered_static | static trace | | | Game forced generation defaults | covered_static | static trace | | | Prompt preset `default` alias create/profile/import write paths | covered_static | static trace refresh (2026-06-05) | #2262 closed | | Prompt preset duplicate/delete child cascade behavior | covered_static | static trace (Batch 4, 2026-06-05) | no issue | | 08-PRESET-STORAGE-default-seed-repair | refactor_better | static trace (Batch 4, 2026-06-05) | no issue | | 08-PRESET-UI-library-manage-assign-export | refactor_better | static trace (Batch 6, 2026-06-05) | no issue | | 08-PRESET-UI-editor-structure-order | refactor_better | static trace (Batch 6, 2026-06-05) | no issue | | 08-PRESET-CONTRACT-advanced-generation-params | covered_static | static trace refresh (2026-06-05) | #2264 closed | | 08-PRESET-COMPAT-st-reasoning-effort-auto | intentional_divergence | static trace refresh (2026-06-05) | #2263 closed by #2267 | | 08-PRESET-COMPAT-st-bulk-preset-discovery | refactor_better | static trace (Batch 3, 2026-06-05) | no issue | | 08-PRESET-COMPAT-native-preset-child-envelope | covered_static | static trace (Batch 2, 2026-06-05) | no issue | | 08-PRESET-ERROR-import-validation-rollback | refactor_better | static trace (Batch 2, 2026-06-05) | no issue | | 08-CHATPRESET-COMPAT-envelope-import-export | refactor_better | static trace (Batch 7, 2026-06-05) | no issue | | 08-CHATPRESET-COMPAT-mode-alias-defaults | refactor_better | static trace (Batch 7, 2026-06-05) | no issue | | 08-CHATPRESET-UI-manager-workflow | covered_static | static trace (Batch 9, 2026-06-05) | no issue | | 08-CHATPRESET-STORAGE-save-apply-active-default | covered_static | static trace (Batch 8, 2026-06-05) | no issue | | 08-CHATPRESET-RUNTIME-new-chat-starred-apply | covered_static | static trace refresh (2026-06-05) | #2265 closed | | 08-PRESET-RUNTIME-choice-variable-selection | covered_static | static trace refresh (2026-06-05) | #2266 closed by #2299 | | 08-PRESET-RUNTIME-marker-section-injection | covered_static | static trace (Batch 11, 2026-06-05) | no issue | | 08-PRESET-RUNTIME-prompt-preview-snapshots | refactor_better | static trace (Batch 11, 2026-06-05) | no issue | | 08-PRESET-REMOTE-crud-import-export-coverage | covered_static | static trace (Batch 12, 2026-06-05) | no issue | | 08-GAME-RUNTIME-generation-param-source-separation | covered_static | static trace (Batch 13, 2026-06-05) | no issue | | 08-PRESET-COMPAT-profile-preset-table-snapshot | covered_static | static trace refresh (2026-06-05) | #2262 closed | ## Follow-Ups | Issue | State | Why it matters | | --- | --- | --- | | #2000 | CLOSED | Native preset import order IDs fixed by remapping child order arrays. | | #1784 | CLOSED | Existing prompt/chat settings preset parity batch coverage. | | #2262 | CLOSED | Prompt preset `default` alias write paths and profile import fixed. | | #2263 | CLOSED | ST `reasoning_effort: "auto"` accepted as refactor automatic-provider divergence via #2267. | | #2264 | CLOSED | Supported `xhigh` / `maximum` reasoning effort provider mapping fixed. | | #2265 | CLOSED | Active/starred chat presets now apply on new-chat and quick-start paths. | | #2266 | CLOSED | Choice-variable sanitizer and nested macro resolution fixed with explicit-empty behavior preserved. | ## Rescan Result - #2000 and all Target 8 follow-ups are fixed, closed, or explicitly accepted as refactor divergences. - Fresh static parityscan ran against `origin/refactor@62332414` on 2026-06-05. - Verdict upgraded to `on_par` for static-trace coverage. - Remaining risk: no native Tauri/manual app proof was run for this tracker refresh.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1103
No description provided.