[PR #4888] [MERGED] Fix assigned SwarmUI, Roleplay, and lorebook issues #6526

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4885-4887


📝 Commits (2)

  • cee5f4f chore: start assigned issue sweep
  • d12f1a8 fix: resolve assigned provider and chat issues

📊 Changes

14 files changed (+407 additions, -85 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+1 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+53 -15)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/server/src/routes/connections.routes.ts (+20 -11)
📝 packages/server/src/routes/sprites.routes.ts (+12 -7)
📝 packages/server/src/services/generation/media-connection-fallback.ts (+4 -1)
📝 packages/server/src/services/lorebook/index.ts (+1 -20)
📝 packages/server/src/services/storage/lorebooks.storage.ts (+3 -20)
📝 packages/server/src/services/video/game-video-runtime.ts (+13 -7)
📝 packages/server/src/services/video/video-generation.ts (+175 -2)
📝 packages/shared/src/constants/model-lists.ts (+8 -0)
📝 scripts/regressions/open-issues.regression.ts (+68 -1)
📝 scripts/regressions/prompt.regression.ts (+44 -0)

📄 Description

Linked issue

Closes #4885
Closes #4886
Closes #4887

Why this change

  • Add the missing SwarmUI video path so an existing SwarmUI connection can run distributed ComfyUI video workflows through the same queue used for images.
  • Keep the Roleplay New Start boundary visually consistent for user and assistant messages.
  • Let a lorebook that the user explicitly selects remain usable even when it is attached to a different persona.

What changed

  • Added SwarmUI to video connection selection, inference, model discovery, local endpoint policy, authenticated session creation, workflow placeholder substitution, fallback routing, sprite/gallery/game runtime resolution, and MP4 retrieval.
  • Made the Roleplay New Start marker fill the available message-body width.
  • Made explicit active lorebook IDs override character, persona, and chat ownership links while retaining enabled, scope, and exclusion gates.
  • Added English localization, Unreleased changelog entries, and focused regression coverage.

Validation

  • pnpm check passes locally
  • 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)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated verification notes

  • pnpm check passed locally.
  • pnpm regression:prompt passed, including positive and negative persona-lorebook selection cases.
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts passed, including SwarmUI video body, placeholder, inference, MP4 response, and Roleplay divider guards.
  • Client and server lint passed after the final patch.
  • pnpm smoke:ui completed 330 cases: 206 passed, 104 skipped, and 20 unrelated staging-baseline failures across Character library availability, Professor Mari Home fixtures, Achievements fixture data, agent catalog availability, and one mobile transcript fixture. None touch this patch.
  • pnpm regression:roleplay is blocked by an unrelated stale baseline assertion expecting UI persistence version 90 on current staging.

Manual verification notes

  • Manual provider verification requires a running SwarmUI video workflow and remains for maintainer testing.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

The Unreleased changelog is updated. No user-facing documentation page or version metadata changed.

UI evidence (if applicable)

  • The Roleplay change is a one-class width correction covered by the focused source regression; no screenshot is attached.

Summary by CodeRabbit

  • New Features

    • Added SwarmUI support for video generation, including local connections, workflow validation, reference images, model discovery, and video downloads.
    • Added guidance for configuring SwarmUI video workflows.
    • Explicitly selected persona-linked lorebooks now remain available regardless of ownership links.
  • Bug Fixes

    • Fixed Roleplay New Start dividers so they span the full message width.
    • Improved video workflow placeholder handling and validation.

🔄 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/4888 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4885-4887` --- ### 📝 Commits (2) - [`cee5f4f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cee5f4f38ba27dca774e51dbd4b249e269004098) chore: start assigned issue sweep - [`d12f1a8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d12f1a8993f51d731561e5ae7dde82a109499d03) fix: resolve assigned provider and chat issues ### 📊 Changes **14 files changed** (+407 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+1 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+53 -15) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+20 -11) 📝 `packages/server/src/routes/sprites.routes.ts` (+12 -7) 📝 `packages/server/src/services/generation/media-connection-fallback.ts` (+4 -1) 📝 `packages/server/src/services/lorebook/index.ts` (+1 -20) 📝 `packages/server/src/services/storage/lorebooks.storage.ts` (+3 -20) 📝 `packages/server/src/services/video/game-video-runtime.ts` (+13 -7) 📝 `packages/server/src/services/video/video-generation.ts` (+175 -2) 📝 `packages/shared/src/constants/model-lists.ts` (+8 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+68 -1) 📝 `scripts/regressions/prompt.regression.ts` (+44 -0) </details> ### 📄 Description ## Linked issue Closes #4885 Closes #4886 Closes #4887 ## Why this change - Add the missing SwarmUI video path so an existing SwarmUI connection can run distributed ComfyUI video workflows through the same queue used for images. - Keep the Roleplay New Start boundary visually consistent for user and assistant messages. - Let a lorebook that the user explicitly selects remain usable even when it is attached to a different persona. ## What changed - Added SwarmUI to video connection selection, inference, model discovery, local endpoint policy, authenticated session creation, workflow placeholder substitution, fallback routing, sprite/gallery/game runtime resolution, and MP4 retrieval. - Made the Roleplay New Start marker fill the available message-body width. - Made explicit active lorebook IDs override character, persona, and chat ownership links while retaining enabled, scope, and exclusion gates. - Added English localization, Unreleased changelog entries, and focused regression coverage. ## Validation - [ ] `pnpm check` passes locally - [ ] 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) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Automated verification notes - `pnpm check` passed locally. - `pnpm regression:prompt` passed, including positive and negative persona-lorebook selection cases. - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` passed, including SwarmUI video body, placeholder, inference, MP4 response, and Roleplay divider guards. - Client and server lint passed after the final patch. - `pnpm smoke:ui` completed 330 cases: 206 passed, 104 skipped, and 20 unrelated staging-baseline failures across Character library availability, Professor Mari Home fixtures, Achievements fixture data, agent catalog availability, and one mobile transcript fixture. None touch this patch. - `pnpm regression:roleplay` is blocked by an unrelated stale baseline assertion expecting UI persistence version 90 on current staging. ### Manual verification notes - Manual provider verification requires a running SwarmUI video workflow and remains for maintainer testing. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) The Unreleased changelog is updated. No user-facing documentation page or version metadata changed. ## UI evidence (if applicable) - The Roleplay change is a one-class width correction covered by the focused source regression; no screenshot is attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added SwarmUI support for video generation, including local connections, workflow validation, reference images, model discovery, and video downloads. - Added guidance for configuring SwarmUI video workflows. - Explicitly selected persona-linked lorebooks now remain available regardless of ownership links. - **Bug Fixes** - Fixed Roleplay New Start dividers so they span the full message width. - Improved video workflow placeholder handling and validation. <!-- 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:11: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#6526
No description provided.