[PR #24] [MERGED] v1.4.3: Translation, Depth Regex, Scene Lorebooks, HTML Mobile Fix #4400

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

📋 Pull Request Information

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

Base: main ← Head: release/v1.4.3


📝 Commits (4)

  • f37c9ed v1.4.3: Translation module, depth range regex, scene lorebook inheritance, HTML mobile fix
  • b4acdd7 Merge branch 'main' into release/v1.4.3
  • 7e923c5 fix: route Marinara preset imports to correct importer
  • b8a4722 fix: lorebook keeper off-by-one, dedup across all books, translation timeouts

📊 Changes

45 files changed (+1415 additions, -271 deletions)

View changed files

📝 README.md (+21 -1)
📝 package.json (+1 -1)
📝 packages/client/package.json (+1 -1)
📝 packages/client/src/components/agents/AgentEditor.tsx (+38 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+30 -5)
📝 packages/client/src/components/chat/ChatFilesDrawer.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatGalleryDrawer.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatInput.tsx (+31 -14)
📝 packages/client/src/components/chat/ChatMessage.tsx (+193 -71)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+112 -7)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+83 -10)
📝 packages/client/src/components/chat/ConversationView.tsx (+2 -2)
📝 packages/client/src/components/chat/EncounterModal.tsx (+59 -8)
📝 packages/client/src/components/chat/SceneBanner.tsx (+27 -2)
📝 packages/client/src/components/layout/AppShell.tsx (+6 -6)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+1 -1)
📝 packages/client/src/components/layout/RightPanel.tsx (+5 -1)
📝 packages/client/src/components/layout/TopBar.tsx (+1 -1)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+10 -0)

...and 25 more files

📄 Description

v1.4.3

Added

  • Message Translation — Translate any message with a single click. Supports Google Translate (free), DeepL API (free & pro), DeepLX (self-hosted), and AI (via LLM connection). Configure per-chat in Chat Settings → Translation.
  • Scene Lorebook Inheritance — Scenes automatically inherit lorebooks from the parent conversation.
  • Scene Discard Confirmation — Discard button now shows inline Yes/No confirmation to prevent accidental discards.

Bug Fixes

  • Depth Range Regex — minDepth / maxDepth on regex scripts now works. Filtering logic was defined in types/UI but never wired into the client or server processing loops.
  • HTML Spacing on Mobile — Fixed extra vertical gaps in HTML content on Android. Formatting newlines between HTML block tags were being converted to <br> elements with margins.

Security

  • DeepLX URL validated as HTTP/HTTPS only (SSRF prevention)
  • Google Translate capped at 5,000 chars to prevent silent URL-length failures
  • Translation errors now show toast feedback
  • Double-click guard prevents duplicate translation API calls

Files Changed

44 files, +1394 / -269


🔄 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/24 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 3/25/2026 **Status:** ✅ Merged **Merged:** 3/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `release/v1.4.3` --- ### 📝 Commits (4) - [`f37c9ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f37c9ed1017c67e073665108d14c299f58328072) v1.4.3: Translation module, depth range regex, scene lorebook inheritance, HTML mobile fix - [`b4acdd7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4acdd73317793c900f3ebc2f03b1a4779371b5f) Merge branch 'main' into release/v1.4.3 - [`7e923c5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7e923c584542cf0d0b4c8c0307251d949716df98) fix: route Marinara preset imports to correct importer - [`b8a4722`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8a47224427a5dc9b4dc482c5f794ba3fa7b145a) fix: lorebook keeper off-by-one, dedup across all books, translation timeouts ### 📊 Changes **45 files changed** (+1415 additions, -271 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+21 -1) 📝 `package.json` (+1 -1) 📝 `packages/client/package.json` (+1 -1) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+38 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+30 -5) 📝 `packages/client/src/components/chat/ChatFilesDrawer.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatGalleryDrawer.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+31 -14) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+193 -71) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+112 -7) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+83 -10) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+2 -2) 📝 `packages/client/src/components/chat/EncounterModal.tsx` (+59 -8) 📝 `packages/client/src/components/chat/SceneBanner.tsx` (+27 -2) 📝 `packages/client/src/components/layout/AppShell.tsx` (+6 -6) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+1 -1) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+5 -1) 📝 `packages/client/src/components/layout/TopBar.tsx` (+1 -1) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+10 -0) _...and 25 more files_ </details> ### 📄 Description ## v1.4.3 ### Added - **Message Translation** — Translate any message with a single click. Supports Google Translate (free), DeepL API (free & pro), DeepLX (self-hosted), and AI (via LLM connection). Configure per-chat in Chat Settings → Translation. - **Scene Lorebook Inheritance** — Scenes automatically inherit lorebooks from the parent conversation. - **Scene Discard Confirmation** — Discard button now shows inline Yes/No confirmation to prevent accidental discards. ### Bug Fixes - **Depth Range Regex** — `minDepth` / `maxDepth` on regex scripts now works. Filtering logic was defined in types/UI but never wired into the client or server processing loops. - **HTML Spacing on Mobile** — Fixed extra vertical gaps in HTML content on Android. Formatting newlines between HTML block tags were being converted to `<br>` elements with margins. ### Security - DeepLX URL validated as HTTP/HTTPS only (SSRF prevention) - Google Translate capped at 5,000 chars to prevent silent URL-length failures - Translation errors now show toast feedback - Double-click guard prevents duplicate translation API calls ### Files Changed 44 files, +1394 / -269 --- <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:16 +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#4400
No description provided.