[PR #5424] [MERGED] Fix lorebook, localization, Professor Mari, ComfyUI, and agent prompt issues #6765

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issues-5410-5423


📝 Commits (4)

  • c726e62 fix lorebook batch fields and ComfyUI video history
  • e33ddcb fix: complete August issue sweep
  • ed11a12 fix(ui): preserve app accent inside chroma scopes
  • cc3cd1d fix: address issue sweep review feedback

📊 Changes

22 files changed (+1405 additions, -31 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+8 -5)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+1 -0)
📝 packages/client/src/localization/locales/ar.json (+85 -0)
📝 packages/client/src/localization/locales/de.json (+85 -0)
📝 packages/client/src/localization/locales/es.json (+85 -0)
📝 packages/client/src/localization/locales/fr.json (+85 -0)
📝 packages/client/src/localization/locales/hi.json (+85 -0)
📝 packages/client/src/localization/locales/ja.json (+85 -0)
📝 packages/client/src/localization/locales/ko.json (+85 -0)
📝 packages/client/src/localization/locales/pl.json (+85 -0)
📝 packages/client/src/localization/locales/pt-BR.json (+85 -0)
📝 packages/client/src/localization/locales/ru.json (+85 -0)
📝 packages/client/src/localization/locales/zh-Hans.json (+85 -0)
📝 packages/server/src/services/agents/agent-executor.ts (+35 -20)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+106 -0)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+9 -3)
📝 packages/server/src/services/video/video-generation.ts (+5 -3)
📝 packages/shared/src/utils/macro-engine.ts (+56 -0)
📝 scripts/regressions/music-dj-and-floating-ui.regression.ts (+22 -0)

...and 2 more files

📄 Description

Linked issues

Closes #5410
Closes #5415
Closes #5420
Closes #5421
Closes #5422
Closes #5423

Why this change

This sweep fixes the current assigned Engine issues at their existing ownership boundaries: missing lorebook editing controls, an undersized ComfyUI response limit, untranslated chat help, incomplete Professor Mari folder tools, floating-chat theme leakage, and conditional macro syntax leaking into Agent prompts.

What changed

  • Added Outlet Name to lorebook batch editing.
  • Allowed bounded large ComfyUI history payloads for generated video while preserving the endpoint-specific safety cap.
  • Localized every chat-help overlay string in all eleven non-English UI catalogs.
  • Added structured Professor Mari actions for lorebook entry folders and Lorebooks-panel library folders.
  • Scoped Professor Mari's floating window to chat chroma tokens and normalized its desktop close control.
  • Flattened conditional wrappers only at the Agent provider boundary, retained every authored branch, and decoded conditional HTML entities such as ".
  • Added focused regression coverage and Unreleased changelog entries.

Validation

  • pnpm check
  • pnpm localization:check
  • pnpm regression:prompt
  • pnpm regression:node --filter music-dj-and-floating-ui
  • Focused Professor Mari folder assertions in open-issues.regression.ts
  • git diff --check
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Read and followed CONTRIBUTING.md

Manual verification needed

  • Batch-edit Outlet Name and generate a larger ComfyUI video.
  • Inspect chat help in representative LTR, RTL, and regional locales.
  • Ask Professor Mari to create both folder types and verify parent validation.
  • Open Professor Mari as a floating desktop/mobile chat under custom chroma settings.
  • Inspect Agent debug prompts containing nested conditional macros and ".

Validation note

The broad open-issues runner reaches the new folder assertions successfully, then fails on pre-existing staging assertions for retired chat-help and unified-toggle source shapes. Those baseline assertions are outside this issue sweep.

Docs and release impact

  • User-visible changes are recorded under CHANGELOG.md Unreleased.
  • Memory Nag documentation localization is handled separately in #5425.
  • No release metadata changes are needed.

Summary by CodeRabbit

  • New Features

    • Added localized chat Help overlays and chat-help visibility settings in 11 languages.
    • Added Professor Mari actions for creating and listing lorebook and nested library folders.
    • Added Outlet Name support to batch lorebook edits.
  • Bug Fixes

    • Improved Professor Mari floating-panel styling, controls, and mobile positioning.
    • Fixed conditional macro formatting in generated prompts, including retries and tool results.
    • Improved handling of large ComfyUI video history responses.

🔄 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/5424 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issues-5410-5423` --- ### 📝 Commits (4) - [`c726e62`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c726e6283a08fde59aff6a07bfe1d38665cbebb8) fix lorebook batch fields and ComfyUI video history - [`e33ddcb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e33ddcb7ed8cc4c50d01392ec2a5fbd4612034de) fix: complete August issue sweep - [`ed11a12`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed11a12d054a8e60a1da3016d8da02cb80839809) fix(ui): preserve app accent inside chroma scopes - [`cc3cd1d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cc3cd1d4d1fcab6322f36bb1274b203769bdf385) fix: address issue sweep review feedback ### 📊 Changes **22 files changed** (+1405 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+8 -5) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+1 -0) 📝 `packages/client/src/localization/locales/ar.json` (+85 -0) 📝 `packages/client/src/localization/locales/de.json` (+85 -0) 📝 `packages/client/src/localization/locales/es.json` (+85 -0) 📝 `packages/client/src/localization/locales/fr.json` (+85 -0) 📝 `packages/client/src/localization/locales/hi.json` (+85 -0) 📝 `packages/client/src/localization/locales/ja.json` (+85 -0) 📝 `packages/client/src/localization/locales/ko.json` (+85 -0) 📝 `packages/client/src/localization/locales/pl.json` (+85 -0) 📝 `packages/client/src/localization/locales/pt-BR.json` (+85 -0) 📝 `packages/client/src/localization/locales/ru.json` (+85 -0) 📝 `packages/client/src/localization/locales/zh-Hans.json` (+85 -0) 📝 `packages/server/src/services/agents/agent-executor.ts` (+35 -20) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+106 -0) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+9 -3) 📝 `packages/server/src/services/video/video-generation.ts` (+5 -3) 📝 `packages/shared/src/utils/macro-engine.ts` (+56 -0) 📝 `scripts/regressions/music-dj-and-floating-ui.regression.ts` (+22 -0) _...and 2 more files_ </details> ### 📄 Description ## Linked issues Closes #5410 Closes #5415 Closes #5420 Closes #5421 Closes #5422 Closes #5423 ## Why this change This sweep fixes the current assigned Engine issues at their existing ownership boundaries: missing lorebook editing controls, an undersized ComfyUI response limit, untranslated chat help, incomplete Professor Mari folder tools, floating-chat theme leakage, and conditional macro syntax leaking into Agent prompts. ## What changed - Added Outlet Name to lorebook batch editing. - Allowed bounded large ComfyUI history payloads for generated video while preserving the endpoint-specific safety cap. - Localized every chat-help overlay string in all eleven non-English UI catalogs. - Added structured Professor Mari actions for lorebook entry folders and Lorebooks-panel library folders. - Scoped Professor Mari's floating window to chat chroma tokens and normalized its desktop close control. - Flattened conditional wrappers only at the Agent provider boundary, retained every authored branch, and decoded conditional HTML entities such as `&quot;`. - Added focused regression coverage and Unreleased changelog entries. ## Validation - [ ] `pnpm check` - [ ] `pnpm localization:check` - [ ] `pnpm regression:prompt` - [ ] `pnpm regression:node --filter music-dj-and-floating-ui` - [ ] Focused Professor Mari folder assertions in `open-issues.regression.ts` - [ ] `git diff --check` - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification needed - Batch-edit Outlet Name and generate a larger ComfyUI video. - Inspect chat help in representative LTR, RTL, and regional locales. - Ask Professor Mari to create both folder types and verify parent validation. - Open Professor Mari as a floating desktop/mobile chat under custom chroma settings. - Inspect Agent debug prompts containing nested conditional macros and `&quot;`. ### Validation note The broad open-issues runner reaches the new folder assertions successfully, then fails on pre-existing staging assertions for retired chat-help and unified-toggle source shapes. Those baseline assertions are outside this issue sweep. ## Docs and release impact - [ ] User-visible changes are recorded under `CHANGELOG.md` Unreleased. - [ ] Memory Nag documentation localization is handled separately in #5425. - [ ] No release metadata changes are needed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added localized chat Help overlays and chat-help visibility settings in 11 languages. * Added Professor Mari actions for creating and listing lorebook and nested library folders. * Added `Outlet Name` support to batch lorebook edits. * **Bug Fixes** * Improved Professor Mari floating-panel styling, controls, and mobile positioning. * Fixed conditional macro formatting in generated prompts, including retries and tool results. * Improved handling of large ComfyUI video history responses. <!-- 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:13:30 +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#6765
No description provided.