[PR #1396] [MERGED] Restore group turn prompt toggle #5064

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1396
Author: @TheLonelyDevil9
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @TheLonelyDevil9

Base: refactor ← Head: fix/1358-group-turn-prompt-toggle


📝 Commits (1)

  • 25fe222 Restore group turn prompt toggle

📊 Changes

4 files changed (+75 additions, -3 deletions)

View changed files

📝 src/engine/contracts/types/chat.ts (+2 -0)
📝 src/engine/generation/start-generation.test.ts (+29 -0)
📝 src/engine/generation/start-generation.ts (+6 -3)
📝 src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx (+38 -0)

📄 Description

What?

  • Restore the chat metadata field for the legacy group-turn prompt toggle.
  • Add the Group Chat settings toggle back for non-conversation individual group chats.
  • Honor groupTurnPromptEnabled: false by omitting the target-character prompt instruction for non-conversation group turns.

Why?

Issue #1358 reported that refactor preserved manual targeted replies but lost the legacy chat-level control over whether individual group turns inject the strict responding-character instruction.

Closes #1358

How?

  • Added groupTurnPromptEnabled to ChatMetadata.
  • Reintroduced the “Add Turn To Prompt” toggle in ChatSettingsDrawer, defaulting to enabled when unset.
  • Passed chat metadata into generation directive assembly so non-conversation group chats can suppress the target-character instruction when the toggle is off.
  • Added regression tests for default enabled behavior and disabled behavior.

Testing?

  • pnpm install --frozen-lockfile
  • pnpm vitest run src/engine/generation/start-generation.test.ts
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm build

Screenshots (optional)

Not captured; this restores a small settings-drawer toggle and prompt behavior.

Anything Else?

pnpm install --frozen-lockfile still warns about unrs-resolver on this branch because #1394 handles that repo tooling cleanup separately.


🔄 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/1396 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 5/27/2026 **Status:** ✅ Merged **Merged:** 5/27/2026 **Merged by:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Base:** `refactor` ← **Head:** `fix/1358-group-turn-prompt-toggle` --- ### 📝 Commits (1) - [`25fe222`](https://github.com/Pasta-Devs/Marinara-Engine/commit/25fe22287cce7b5ac8d3b8b9cd09c7d0af194fd8) Restore group turn prompt toggle ### 📊 Changes **4 files changed** (+75 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/contracts/types/chat.ts` (+2 -0) 📝 `src/engine/generation/start-generation.test.ts` (+29 -0) 📝 `src/engine/generation/start-generation.ts` (+6 -3) 📝 `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` (+38 -0) </details> ### 📄 Description ## What? - Restore the chat metadata field for the legacy group-turn prompt toggle. - Add the Group Chat settings toggle back for non-conversation individual group chats. - Honor `groupTurnPromptEnabled: false` by omitting the target-character prompt instruction for non-conversation group turns. ## Why? Issue #1358 reported that refactor preserved manual targeted replies but lost the legacy chat-level control over whether individual group turns inject the strict responding-character instruction. Closes #1358 ## How? - Added `groupTurnPromptEnabled` to `ChatMetadata`. - Reintroduced the “Add Turn To Prompt” toggle in `ChatSettingsDrawer`, defaulting to enabled when unset. - Passed chat metadata into generation directive assembly so non-conversation group chats can suppress the target-character instruction when the toggle is off. - Added regression tests for default enabled behavior and disabled behavior. ## Testing? - `pnpm install --frozen-lockfile` - `pnpm vitest run src/engine/generation/start-generation.test.ts` - `pnpm typecheck` - `pnpm check:architecture` - `pnpm build` ## Screenshots (optional) Not captured; this restores a small settings-drawer toggle and prompt behavior. ## Anything Else? `pnpm install --frozen-lockfile` still warns about `unrs-resolver` on this branch because #1394 handles that repo tooling cleanup separately. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:53 +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#5064
No description provided.