[GH-ISSUE #2263] [Issue]: 08-PRESET-COMPAT-st-reasoning-effort-auto drops ST auto reasoning effort #1106

Closed
opened 2026-10-21 05:26:43 +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/2263

Originally assigned to: @Xelvanis on GitHub.

Summary

08-PRESET-COMPAT-st-reasoning-effort-auto: SillyTavern prompt preset import loses reasoning_effort: "auto" on the refactor branch. Legacy imports that value as reasoningEffort: "maximum", while the refactor Rust importer treats it as unknown and stores null.

Tracked from upstream Target 8 parity inventory: #2259.

Expected behavior

Importing a SillyTavern prompt preset with:

{
  "reasoning_effort": "auto"
}

should preserve legacy compatibility by mapping auto to Marinara prompt preset parameter reasoningEffort: "maximum".

Legacy behavior:

  • main:packages/server/src/services/import/st-prompt.importer.ts:29 defines toReasoningEffort.
  • main:packages/server/src/services/import/st-prompt.importer.ts:30 maps auto to maximum.
  • main:packages/server/src/services/import/st-prompt.importer.ts:101 writes the mapped value to reasoningEffort.

Actual behavior

The refactor ST preset importer accepts low, medium, high, xhigh, and maximum, but not auto. Any non-matching value becomes null, so imported ST presets lose the legacy auto mapping.

Refactor behavior:

  • src-tauri/src/commands/storage/imports/st_preset.rs:50 defines st_reasoning_effort.
  • src-tauri/src/commands/storage/imports/st_preset.rs:52 accepts only low, medium, high, xhigh, and maximum.
  • src-tauri/src/commands/storage/imports/st_preset.rs:55 falls back to Value::Null.
  • src-tauri/src/commands/storage/imports/st_preset.rs:289 writes that result to reasoningEffort.

Steps to reproduce

  1. On the refactor branch, import a SillyTavern prompt preset JSON containing "reasoning_effort": "auto".
  2. Inspect the created Marinara prompt preset parameters.
  3. Observe reasoningEffort is null instead of "maximum".

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor branch static trace on 2026-06-05
  • Run mode: Tauri desktop import path / storage importer
  • OS + version: not relevant; static parity trace
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not checked
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: SillyTavern prompt preset import

Logs, screenshots, or video

Parity proof used static trace only; no runtime logs or screenshots.

Files inspected:

  • Legacy: main:packages/server/src/services/import/st-prompt.importer.ts:29, :30, :101
  • Refactor: src-tauri/src/commands/storage/imports/st_preset.rs:50, :52, :55, :289

Regression notes

Legacy main maps ST reasoning_effort: "auto" to "maximum". Refactor currently drops it to null. This is a confirmed parity regression for surface 08-PRESET-COMPAT-st-reasoning-effort-auto.

Additional context

Acceptance criteria:

  • ST prompt preset import maps reasoning_effort: "auto" to reasoningEffort: "maximum".
  • Existing accepted values keep current behavior.
  • Unknown values still fail closed to null.
  • Add or update focused proof for the ST preset import mapping.
  • Update #2259 coverage notes if/when fixed.

Related:

  • Parent parity inventory: #2259
  • Surface ID: 08-PRESET-COMPAT-st-reasoning-effort-auto

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2263 Originally assigned to: @Xelvanis on GitHub. ## Summary `08-PRESET-COMPAT-st-reasoning-effort-auto`: SillyTavern prompt preset import loses `reasoning_effort: "auto"` on the refactor branch. Legacy imports that value as `reasoningEffort: "maximum"`, while the refactor Rust importer treats it as unknown and stores `null`. Tracked from upstream Target 8 parity inventory: #2259. ## Expected behavior Importing a SillyTavern prompt preset with: ```json { "reasoning_effort": "auto" } ``` should preserve legacy compatibility by mapping `auto` to Marinara prompt preset parameter `reasoningEffort: "maximum"`. Legacy behavior: - `main:packages/server/src/services/import/st-prompt.importer.ts:29` defines `toReasoningEffort`. - `main:packages/server/src/services/import/st-prompt.importer.ts:30` maps `auto` to `maximum`. - `main:packages/server/src/services/import/st-prompt.importer.ts:101` writes the mapped value to `reasoningEffort`. ## Actual behavior The refactor ST preset importer accepts `low`, `medium`, `high`, `xhigh`, and `maximum`, but not `auto`. Any non-matching value becomes `null`, so imported ST presets lose the legacy `auto` mapping. Refactor behavior: - `src-tauri/src/commands/storage/imports/st_preset.rs:50` defines `st_reasoning_effort`. - `src-tauri/src/commands/storage/imports/st_preset.rs:52` accepts only `low`, `medium`, `high`, `xhigh`, and `maximum`. - `src-tauri/src/commands/storage/imports/st_preset.rs:55` falls back to `Value::Null`. - `src-tauri/src/commands/storage/imports/st_preset.rs:289` writes that result to `reasoningEffort`. ## Steps to reproduce 1. On the refactor branch, import a SillyTavern prompt preset JSON containing `"reasoning_effort": "auto"`. 2. Inspect the created Marinara prompt preset parameters. 3. Observe `reasoningEffort` is `null` instead of `"maximum"`. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor branch static trace on 2026-06-05 - Run mode: Tauri desktop import path / storage importer - OS + version: not relevant; static parity trace - Node + pnpm versions: not relevant - Rust version, if relevant: not checked - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: SillyTavern prompt preset import ## Logs, screenshots, or video Parity proof used static trace only; no runtime logs or screenshots. Files inspected: - Legacy: `main:packages/server/src/services/import/st-prompt.importer.ts:29`, `:30`, `:101` - Refactor: `src-tauri/src/commands/storage/imports/st_preset.rs:50`, `:52`, `:55`, `:289` ## Regression notes Legacy `main` maps ST `reasoning_effort: "auto"` to `"maximum"`. Refactor currently drops it to `null`. This is a confirmed parity regression for surface `08-PRESET-COMPAT-st-reasoning-effort-auto`. ## Additional context Acceptance criteria: - ST prompt preset import maps `reasoning_effort: "auto"` to `reasoningEffort: "maximum"`. - Existing accepted values keep current behavior. - Unknown values still fail closed to `null`. - Add or update focused proof for the ST preset import mapping. - Update #2259 coverage notes if/when fixed. Related: - Parent parity inventory: #2259 - Surface ID: `08-PRESET-COMPAT-st-reasoning-effort-auto` ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:26:43 +07:00
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#1106
No description provided.