[GH-ISSUE #2544] [Issue]: [THINK] tags not parsed as thinking #1260

Closed
opened 2026-10-21 05:30:08 +07:00 by bsakaguchi · 4 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Mistral 3.5 uses [THINK] [/THINK] tags for thinking. The tags and thinking text is shown as plain text in the chat.
https://unsloth.ai/docs/models/mistral-3.5

Expected behavior

The [THINK] ... [/THINK] tags and contents should be hidden because it is thinking and not the actual reply.

Actual behavior

The [THINK] ... [/THINK] tags and thinking text is shown as plain text in the chat.

Steps to reproduce

  1. Load Mistral-Medium-3.5-128B gguf in Koboldcpp with thinking enabled
  2. Start some kind of chat with a connection to koboldcpp
  3. Send a message
  4. Watch the reply

Environment

  • Marinara Engine version: Release: v1.6.1 Build: 3663484
  • Install type: docker
  • OS + version: Ubuntu WSL
  • Browser or app shell: Chromium

Logs, screenshots, or video

Image

Additional context

Template check

Please uncheck (untick) 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 @rgwb10 on GitHub (Jun 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2544 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Mistral 3.5 uses [THINK] [/THINK] tags for thinking. The tags and thinking text is shown as plain text in the chat. https://unsloth.ai/docs/models/mistral-3.5 ## Expected behavior <!-- What should have happened? --> The [THINK] ... [/THINK] tags and contents should be hidden because it is thinking and not the actual reply. ## Actual behavior <!-- What happened instead? --> The [THINK] ... [/THINK] tags and thinking text is shown as plain text in the chat. ## Steps to reproduce 1. Load Mistral-Medium-3.5-128B gguf in Koboldcpp with thinking enabled 2. Start some kind of chat with a connection to koboldcpp 3. Send a message 4. Watch the reply 5. ## Environment - Marinara Engine version: Release: v1.6.1 Build: 3663484 - Install type: docker - OS + version: Ubuntu WSL - Browser or app shell: Chromium ## Logs, screenshots, or video <img width="1128" height="761" alt="Image" src="https://github.com/user-attachments/assets/96d8d329-fee9-4909-a2c3-89fed4d2cd9e" /> <!-- Paste relevant logs and add screenshots when possible --> ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## Template check Please **uncheck (untick)** 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:30:08 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jun 13, 2026):

I'll add in Advanced Parameters in all modes, custom thinking tags so you can specify any for the models you use, and they will be correctly caught and rendered as thoughts in the View Thoughts section.

<!-- gh-comment-id:4698166562 --> @SpicyMarinara commented on GitHub (Jun 13, 2026): I'll add in Advanced Parameters in all modes, custom thinking tags so you can specify any for the models you use, and they will be correctly caught and rendered as thoughts in the View Thoughts section.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 13, 2026):

Codex is taking this in branch fix/issues-2544-2548-thinking-game-lorebooks. I’ll add configurable thinking tag parsing in Advanced Parameters and close this once the fix is merged.

<!-- gh-comment-id:4698219955 --> @SpicyMarinara commented on GitHub (Jun 13, 2026): Codex is taking this in branch `fix/issues-2544-2548-thinking-game-lorebooks`. I’ll add configurable thinking tag parsing in Advanced Parameters and close this once the fix is merged.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 13, 2026):

Resolved in PR #2549, merged into staging.\n\nWhat changed:\n- and related bracket-style thinking tags are now recognized as built-in inline thinking delimiters.\n- Advanced Parameters now has custom Thinking Tags for additional model-specific delimiters.\n- Streaming and final server cleanup both use the shared tag handling so raw thinking tags do not remain in chat content.

<!-- gh-comment-id:4698261210 --> @SpicyMarinara commented on GitHub (Jun 13, 2026): Resolved in PR #2549, merged into staging.\n\nWhat changed:\n- and related bracket-style thinking tags are now recognized as built-in inline thinking delimiters.\n- Advanced Parameters now has custom Thinking Tags for additional model-specific delimiters.\n- Streaming and final server cleanup both use the shared tag handling so raw thinking tags do not remain in chat content.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 13, 2026):

Correction to the previous bullet: [THINK]...[/THINK] and related bracket-style thinking tags are now recognized as built-in inline thinking delimiters.

<!-- gh-comment-id:4698261787 --> @SpicyMarinara commented on GitHub (Jun 13, 2026): Correction to the previous bullet: `[THINK]...[/THINK]` and related bracket-style thinking tags are now recognized as built-in inline thinking delimiters.
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#1260
No description provided.