[PR #20] [MERGED] feat: think tag detection, conversation group fixes, character exchanges toggle #4399

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/20
Author: @SpicyMarinara
Created: 3/23/2026
Status: ✅ Merged
Merged: 3/23/2026
Merged by: @SpicyMarinara

Base: main ← Head: feature/think-tags-and-convo-fixes


📝 Commits (2)

  • 01af0df feat: auto-detect think tags, conversation group chat fixes, wire character exchanges toggle
  • 53def51 fix: apply copilot review — resolve group mode consistently, hide empty section

📊 Changes

6 files changed (+103 additions, -15 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+2 -2)
📝 packages/client/src/components/chat/ConversationView.tsx (+2 -0)
📝 packages/client/src/hooks/use-autonomous-messaging.ts (+3 -2)
📝 packages/client/src/hooks/use-generate.ts (+67 -2)
📝 packages/server/src/routes/conversation.routes.ts (+5 -0)
📝 packages/server/src/routes/generate.routes.ts (+24 -9)

📄 Description

Features

Think Tag Auto-Detection

  • Auto-detects think/thinking tags in model responses
  • Server extracts reasoning content, strips tags, emits to reasoning display
  • Client streaming state machine suppresses think blocks in real-time
  • Prefix matching handles partial tokens across chunks

Character Exchanges Toggle

  • Wired up the decorative characterExchanges toggle to gate the feature
  • Client passes exchangesEnabled to useAutonomousMessaging
  • Server checks meta.characterExchanges before processing exchanges

Fixes

Conversation Group Chat Mode

  • Removed Group Chat Mode selector from Conversations UI (Roleplay only)
  • Removed Color Dialogues toggle from Conversations UI
  • Server enforces merged mode for conversations in system prompt and pipeline
  • Fixed earlyGroupMode inconsistency

QA Fixes

  • Fixed partial think-tag detection with proper prefix string matching
  • Replaced function-object tag hack with clean variable

Files Changed

  • generate.routes.ts
  • use-generate.ts
  • ChatSettingsDrawer.tsx
  • use-autonomous-messaging.ts
  • ConversationView.tsx
  • conversation.routes.ts

🔄 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/20 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 3/23/2026 **Status:** ✅ Merged **Merged:** 3/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `feature/think-tags-and-convo-fixes` --- ### 📝 Commits (2) - [`01af0df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/01af0df9c72d2b31289f22675ecb095c683e3e64) feat: auto-detect think tags, conversation group chat fixes, wire character exchanges toggle - [`53def51`](https://github.com/Pasta-Devs/Marinara-Engine/commit/53def518ebfe28b9f1f0f96ae5a47ceac7366748) fix: apply copilot review — resolve group mode consistently, hide empty section ### 📊 Changes **6 files changed** (+103 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+2 -0) 📝 `packages/client/src/hooks/use-autonomous-messaging.ts` (+3 -2) 📝 `packages/client/src/hooks/use-generate.ts` (+67 -2) 📝 `packages/server/src/routes/conversation.routes.ts` (+5 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+24 -9) </details> ### 📄 Description ## Features ### Think Tag Auto-Detection - Auto-detects think/thinking tags in model responses - Server extracts reasoning content, strips tags, emits to reasoning display - Client streaming state machine suppresses think blocks in real-time - Prefix matching handles partial tokens across chunks ### Character Exchanges Toggle - Wired up the decorative characterExchanges toggle to gate the feature - Client passes exchangesEnabled to useAutonomousMessaging - Server checks meta.characterExchanges before processing exchanges ## Fixes ### Conversation Group Chat Mode - Removed Group Chat Mode selector from Conversations UI (Roleplay only) - Removed Color Dialogues toggle from Conversations UI - Server enforces merged mode for conversations in system prompt and pipeline - Fixed earlyGroupMode inconsistency ### QA Fixes - Fixed partial think-tag detection with proper prefix string matching - Replaced function-object tag hack with clean variable ## Files Changed - generate.routes.ts - use-generate.ts - ChatSettingsDrawer.tsx - use-autonomous-messaging.ts - ConversationView.tsx - conversation.routes.ts --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:15 +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#4399
No description provided.