[PR #1025] [MERGED] Fix: imported presets can invisibly disable reasoning #4891

Closed
opened 2026-10-22 04:11:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1025
Author: @jake9000
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/22/2026
Merged by: @cha1latte

Base: staging ← Head: effort-fix


📝 Commits (2)

  • 2ad1ef4 fix: map ST "auto" reasoning_effort to "maximum"
  • 4997655 Merge branch 'staging' into effort-fix

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/server/src/services/import/st-prompt.importer.ts (+1 -0)

📄 Description

Linked issue

Closes #1024

Why this change

  1. If a sillytavern preset's reasoning type is set to 'auto', the Engine's importer saves it as 'null' which results in reasoning being disabled.
  2. However, the engine displays 'maximum' as the selected thinking value, which doesn't match the actual behavior.

What changed

File Change
packages/server/src/services/import/st-prompt.importer.ts toReasoningEffort() now maps "auto" → "maximum"

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Before Change

  1. Import a preset from the internet, such as 'Chatfill II' which I have provided at ~/repos/tshoot/'Chatfill II.json'
  2. Start a new chat with any character.
  3. Under 'Chat Settings', select 'Imported: Chatfill II'
  4. Send a message
  5. The response does not have any 'thinking' data in it. the brain icon is not present and it started printing the message so fast as to suggest that thinking did not occur.
  6. Under 'Chat Settings' > 'Advanced parameters' I observe that 'Reasoning Effort' is already set to 'Maximum'.
  7. Toggle reasoning effort to high and then back to Maximum.
  8. Send a message to the character.
  9. I observe that thinking occurs as expected.

After Change

  1. Import a preset from the internet, such as 'Chatfill II' which I have provided at ~/repos/tshoot/'Chatfill II.json'
  2. Start a new chat with any character.
  3. Under 'Chat Settings', select 'Imported: Chatfill II'
  4. Send a message
  5. I observe that reasoning works as usual.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

before:
Screenshot_20260519_223208
Screenshot_20260519_223324

After:
Screenshot_20260519_223357
Screenshot_20260519_223406-1


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1025 **Author:** [@jake9000](https://github.com/jake9000) **Created:** 5/20/2026 **Status:** ✅ Merged **Merged:** 5/22/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `effort-fix` --- ### 📝 Commits (2) - [`2ad1ef4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ad1ef4785d0f9aed05c2e5058a63ad7d4ecae0a) fix: map ST "auto" reasoning_effort to "maximum" - [`4997655`](https://github.com/Pasta-Devs/Marinara-Engine/commit/499765514b235d7ed87b1309ea00b1397b5f7225) Merge branch 'staging' into effort-fix ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/import/st-prompt.importer.ts` (+1 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #1024 ## Why this change 1. If a sillytavern preset's reasoning type is set to 'auto', the Engine's importer saves it as 'null' which results in reasoning being disabled. 2. However, the engine displays 'maximum' as the selected thinking value, which doesn't match the actual behavior. ## What changed | File | Change | |---|---| | `packages/server/src/services/import/st-prompt.importer.ts` | `toReasoningEffort()` now maps `"auto"` → `"maximum"` | ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes #### Before Change 1. Import a preset from the internet, such as 'Chatfill II' which I have provided at ~/repos/tshoot/'Chatfill II.json' 2. Start a new chat with any character. 3. Under 'Chat Settings', select 'Imported: Chatfill II' 4. Send a message 5. The response does not have any 'thinking' data in it. the brain icon is not present and it started printing the message so fast as to suggest that thinking did not occur. 6. Under 'Chat Settings' > 'Advanced parameters' I observe that 'Reasoning Effort' is already set to 'Maximum'. 7. Toggle reasoning effort to high and then back to Maximum. 8. Send a message to the character. 9. I observe that thinking occurs as expected. #### After Change 1. Import a preset from the internet, such as 'Chatfill II' which I have provided at ~/repos/tshoot/'Chatfill II.json' 2. Start a new chat with any character. 3. Under 'Chat Settings', select 'Imported: Chatfill II' 4. Send a message 5. I observe that reasoning works as usual. - ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) before: <img width="595" height="422" alt="Screenshot_20260519_223208" src="https://github.com/user-attachments/assets/4de43233-267f-4001-95ba-933b74820aef" /> <img width="740" height="498" alt="Screenshot_20260519_223324" src="https://github.com/user-attachments/assets/77b72e0d-92cd-49df-874b-b3b836bce0ab" /> After: <img width="335" height="356" alt="Screenshot_20260519_223357" src="https://github.com/user-attachments/assets/d581b16e-34ec-4393-b8c4-6a5ba1a0aa42" /> <img width="551" height="261" alt="Screenshot_20260519_223406-1" src="https://github.com/user-attachments/assets/300d3a47-7423-48c0-bf07-83e450c9720b" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:30 +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#4891
No description provided.