[PR #1882] [MERGED] Add roleplay narrator style setting #5335

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1882
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte

Base: refactor ← Head: feat/narrator-style-instructions


📝 Commits (5)

  • 38f31c1 Add roleplay narrator style setting
  • d1035c5 Update discovery for narrator style setting
  • 85ec661 Refresh CI after PR body update
  • 7d7fe37 Merge refactor into narrator style PR
  • 3dafd1d Merge refactor into narrator style PR

📊 Changes

4 files changed (+100 additions, -5 deletions)

View changed files

📝 src/engine/contracts/types/chat.ts (+2 -0)
📝 src/engine/generation/prompt-assembly.ts (+19 -2)
📝 src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx (+77 -1)
📝 src/features/shell/discovery/discovery-entries.json (+2 -2)

📄 Description

Linked issue

Refs #1881

Why this change

  • Gives Roleplay chats a narrow per-chat narrator style/personality instruction without creating a new agent, resource type, or extra model call.

What changed

  • Added chat.metadata.narratorStyleInstructions as an optional Roleplay narration style field.
  • Added a Roleplay-only Narrator Style textarea in chat settings, including clear/expanded editor support and a 2000-character cap.
  • Injected a narrator_style prompt block into Roleplay generation only, after the main system prompt and before scene context.
  • Updated Discover metadata so narrator style/personality searches point users toward Roleplay.

Refactor impact

Primary owner:

  • Engine generation, shared mode UI

Impact areas reviewed:

  • Roleplay prompt assembly
  • Chat settings metadata patching
  • Game and Conversation prompt exclusion
  • Discovery metadata

Boundary notes:

  • Engine code stays React-free.
  • Feature UI writes chat metadata through the existing chat metadata wrapper.
  • No agent runtime, custom tool, Rust storage, remote-runtime, schema migration, or dependency changes.

Pressure points touched:

  • Shared chat settings drawer
  • Engine prompt assembly

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex ran pnpm test src/engine/generation/prompt-assembly.test.ts from C:\tmp\Marinara-Engine-narrator-style; it passed with 12 tests.
  • Codex ran full pnpm check from C:\tmp\Marinara-Engine-narrator-style; it passed, including line endings, architecture, frontend typecheck, Rust check, docs, discovery metadata, and unused-code checks.
  • Bunny review pass ran on the current diff before PR creation; no blocking findings.
  • Manual/browser visual verification of the new Roleplay settings row was not performed.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Updated the existing Roleplay Mode discovery entry with narrator style/personality search terms and summary copy.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • Not captured. This PR adds a visible Roleplay chat settings textarea, so reviewer/manual UI verification should confirm placement and layout in the drawer.

🔄 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/1882 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `feat/narrator-style-instructions` --- ### 📝 Commits (5) - [`38f31c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38f31c190cf58035fcc01a8d7dba1da9b08ade21) Add roleplay narrator style setting - [`d1035c5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d1035c5503b55ad51cf6e65231d9bd127368580d) Update discovery for narrator style setting - [`85ec661`](https://github.com/Pasta-Devs/Marinara-Engine/commit/85ec661a3570fc47e62310a9a1c444d455de0fed) Refresh CI after PR body update - [`7d7fe37`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7d7fe37c12dbdbcca6b4803ac7b020f1fbcc91b4) Merge refactor into narrator style PR - [`3dafd1d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3dafd1db84456665a9b2497d2bbf24afda855e89) Merge refactor into narrator style PR ### 📊 Changes **4 files changed** (+100 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/contracts/types/chat.ts` (+2 -0) 📝 `src/engine/generation/prompt-assembly.ts` (+19 -2) 📝 `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` (+77 -1) 📝 `src/features/shell/discovery/discovery-entries.json` (+2 -2) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Refs #1881 ## Why this change - Gives Roleplay chats a narrow per-chat narrator style/personality instruction without creating a new agent, resource type, or extra model call. ## What changed - Added `chat.metadata.narratorStyleInstructions` as an optional Roleplay narration style field. - Added a Roleplay-only Narrator Style textarea in chat settings, including clear/expanded editor support and a 2000-character cap. - Injected a `narrator_style` prompt block into Roleplay generation only, after the main system prompt and before scene context. - Updated Discover metadata so narrator style/personality searches point users toward Roleplay. ## Refactor impact Primary owner: - Engine generation, shared mode UI Impact areas reviewed: - Roleplay prompt assembly - Chat settings metadata patching - Game and Conversation prompt exclusion - Discovery metadata Boundary notes: - Engine code stays React-free. - Feature UI writes chat metadata through the existing chat metadata wrapper. - No agent runtime, custom tool, Rust storage, remote-runtime, schema migration, or dependency changes. Pressure points touched: - Shared chat settings drawer - Engine prompt assembly ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex ran `pnpm test src/engine/generation/prompt-assembly.test.ts` from `C:\tmp\Marinara-Engine-narrator-style`; it passed with 12 tests. - Codex ran full `pnpm check` from `C:\tmp\Marinara-Engine-narrator-style`; it passed, including line endings, architecture, frontend typecheck, Rust check, docs, discovery metadata, and unused-code checks. - Bunny review pass ran on the current diff before PR creation; no blocking findings. - Manual/browser visual verification of the new Roleplay settings row was not performed. ## Feature Discoverability Check exactly one: - [x] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Updated the existing Roleplay Mode discovery entry with narrator style/personality search terms and summary copy. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - Not captured. This PR adds a visible Roleplay chat settings textarea, so reviewer/manual UI verification should confirm placement and layout in the drawer. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:20 +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#5335
No description provided.