[PR #4207] [MERGED] Improve tracker defaults, translation controls, and Roleplay edits #6283

Closed
opened 2026-10-23 04:08:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4207
Author: @SpicyMarinara
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/assigned-issue-sweep-4203-4206


📝 Commits (5)

  • fbefebe Start assigned issue sweep
  • be39293 Fix assigned tracker, translation, and edit issues
  • 9b124a7 Address CodeRabbit review feedback
  • 3b2d21e Distinguish stale translations from source aliases
  • 17f0e07 Serialize translation persistence

📊 Changes

24 files changed (+918 additions, -121 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+110 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+76 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+5 -1)
📝 packages/client/src/components/chat/ConversationInput.tsx (+5 -1)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+37 -17)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+4 -1)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+4 -1)
📝 packages/client/src/components/chat/ConversationMessageLine.tsx (+4 -1)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+1 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+3 -0)
📝 packages/client/src/components/game/GameNarration.tsx (+251 -35)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+42 -0)
📝 packages/client/src/hooks/use-chats.ts (+71 -14)
📝 packages/client/src/hooks/use-generate.ts (+1 -0)
📝 packages/client/src/hooks/use-translate.ts (+61 -36)
📝 packages/client/src/localization/locales/en.json (+7 -0)
📝 packages/client/src/stores/translation.store.ts (+5 -1)
📝 packages/client/src/stores/ui.store.ts (+7 -1)
📝 packages/server/src/routes/chats.routes.ts (+149 -0)
📝 packages/server/src/routes/generate.routes.ts (+2 -2)

...and 4 more files

📄 Description

Why

This assigned issue sweep addresses three user-facing gaps: character-specific Tracker defaults cannot be prepared before a chat, translation and quick-reply behavior is inconsistent across modes, and saved Roleplay user-message edits can be overwritten by stale state.

Closes #4203
Closes #4204
Closes #4206

Scope

  • Add an independent Character editor for Tracker custom-field names and starting values, then seed them once into each new Roleplay chat so chat-owned edits remain authoritative.
  • Make Conversation and Game honor Show Only Translation, add manual Game translation actions to both stacked history and session logs, and render translated output per Game segment instead of repeating the full translation.
  • Let every custom quick reply choose an emoji icon and use it in compact quick-reply menus.
  • Count both user and assistant messages toward automatic-summary cadence.
  • Serialize overlapping message edits and guard optimistic state by revision so stale completions, errors, and refetches cannot roll back a newer Roleplay edit.

Validation

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:issues
  • pnpm exec playwright test -c playwright.config.ts --project=desktop-chromium -g 'new Roleplay chats seed character Tracker custom-field defaults' — 1 passed
  • Focused desktop smoke for message editing, Game rendering, the app shell, and Background controls — 4 passed. The remaining Tracker-gutter assertion is pre-existing test drift: it expects No tracker data yet. while the current UI displays No enabled tracker panels.

Manual test plan

  • Manually verify character Tracker defaults seed a new Roleplay chat and never overwrite an existing chat.
  • Manually verify translation-only display in Conversation and Game modes.
  • Manually verify custom quick replies display their selected icons in Roleplay and Conversation.
  • Manually verify auto-summary counts both user and assistant messages.
  • Manually verify Game Mode manual translation and segmented translated output in stacked history and session logs.
  • Manually verify rapid or repeated Roleplay user-message edits do not intermittently revert.

Summary by CodeRabbit

  • New Features
    • Added editable “tracker custom-field defaults” for RPG stats in the Character editor (Stats tab).
    • Roleplay chat game-state now seeds tracker fields from those character defaults.
    • Added support for custom quick-reply button icons (selectable in settings).
    • Added “translation-only” display controls for conversations and roleplay narration, including per-segment translate/hide UI.
  • Bug Fixes
    • Preserves manually edited tracker custom-field values when updating the character roster.
    • Improved reliability of rapid message edits with safer concurrent handling.
    • Improved translation source persistence and matching.
    • Automatic roleplay summaries now count both user and assistant messages.
  • Tests
    • Added end-to-end coverage for tracker custom-field default seeding and persistence.

🔄 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/4207 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/28/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issue-sweep-4203-4206` --- ### 📝 Commits (5) - [`fbefebe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fbefebe1466baa80a6363d3d2fb2609c1f7670c1) Start assigned issue sweep - [`be39293`](https://github.com/Pasta-Devs/Marinara-Engine/commit/be3929374dba676f11c81438208062748be061fd) Fix assigned tracker, translation, and edit issues - [`9b124a7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9b124a76bcf79a9c226b13cbfa26bd286a0c599a) Address CodeRabbit review feedback - [`3b2d21e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3b2d21e49edb526d89a1c55d7385c7c401df68f6) Distinguish stale translations from source aliases - [`17f0e07`](https://github.com/Pasta-Devs/Marinara-Engine/commit/17f0e0753e663c0a43836f9551aebb983bedecca) Serialize translation persistence ### 📊 Changes **24 files changed** (+918 additions, -121 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+110 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+76 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+5 -1) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+5 -1) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+37 -17) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+4 -1) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+4 -1) 📝 `packages/client/src/components/chat/ConversationMessageLine.tsx` (+4 -1) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+3 -0) 📝 `packages/client/src/components/game/GameNarration.tsx` (+251 -35) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+42 -0) 📝 `packages/client/src/hooks/use-chats.ts` (+71 -14) 📝 `packages/client/src/hooks/use-generate.ts` (+1 -0) 📝 `packages/client/src/hooks/use-translate.ts` (+61 -36) 📝 `packages/client/src/localization/locales/en.json` (+7 -0) 📝 `packages/client/src/stores/translation.store.ts` (+5 -1) 📝 `packages/client/src/stores/ui.store.ts` (+7 -1) 📝 `packages/server/src/routes/chats.routes.ts` (+149 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+2 -2) _...and 4 more files_ </details> ### 📄 Description ## Why This assigned issue sweep addresses three user-facing gaps: character-specific Tracker defaults cannot be prepared before a chat, translation and quick-reply behavior is inconsistent across modes, and saved Roleplay user-message edits can be overwritten by stale state. Closes #4203 Closes #4204 Closes #4206 ## Scope - Add an independent Character editor for Tracker custom-field names and starting values, then seed them once into each new Roleplay chat so chat-owned edits remain authoritative. - Make Conversation and Game honor Show Only Translation, add manual Game translation actions to both stacked history and session logs, and render translated output per Game segment instead of repeating the full translation. - Let every custom quick reply choose an emoji icon and use it in compact quick-reply menus. - Count both user and assistant messages toward automatic-summary cadence. - Serialize overlapping message edits and guard optimistic state by revision so stale completions, errors, and refetches cannot roll back a newer Roleplay edit. ## Validation - `pnpm check` - `pnpm regression:prompt` - `pnpm regression:issues` - `pnpm exec playwright test -c playwright.config.ts --project=desktop-chromium -g 'new Roleplay chats seed character Tracker custom-field defaults'` — 1 passed - Focused desktop smoke for message editing, Game rendering, the app shell, and Background controls — 4 passed. The remaining Tracker-gutter assertion is pre-existing test drift: it expects `No tracker data yet.` while the current UI displays `No enabled tracker panels.` ## Manual test plan - [ ] Manually verify character Tracker defaults seed a new Roleplay chat and never overwrite an existing chat. - [ ] Manually verify translation-only display in Conversation and Game modes. - [ ] Manually verify custom quick replies display their selected icons in Roleplay and Conversation. - [ ] Manually verify auto-summary counts both user and assistant messages. - [ ] Manually verify Game Mode manual translation and segmented translated output in stacked history and session logs. - [ ] Manually verify rapid or repeated Roleplay user-message edits do not intermittently revert. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added editable “tracker custom-field defaults” for RPG stats in the Character editor (Stats tab). * Roleplay chat game-state now seeds tracker fields from those character defaults. * Added support for custom quick-reply button icons (selectable in settings). * Added “translation-only” display controls for conversations and roleplay narration, including per-segment translate/hide UI. * **Bug Fixes** * Preserves manually edited tracker custom-field values when updating the character roster. * Improved reliability of rapid message edits with safer concurrent handling. * Improved translation source persistence and matching. * Automatic roleplay summaries now count both user and assistant messages. * **Tests** * Added end-to-end coverage for tracker custom-field default seeding and persistence. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:08:56 +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#6283
No description provided.