[PR #4717] [MERGED] fix: sweep assigned issues and add SwarmUI support #6478

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4700-4714


📝 Commits (5)

  • 5ee79bd chore: start assigned issue sweep
  • d19cb9e fix: address assigned issue sweep
  • 91ef4aa fix: apply CodeRabbit review feedback
  • ca9cb6f fix: finish CodeRabbit follow-up
  • 7177998 test: isolate installer version checks

📊 Changes

19 files changed (+606 additions, -142 deletions)

View changed files

📝 CHANGELOG.md (+9 -1)
📝 e2e/core-flows.e2e.ts (+8 -4)
📝 packages/client/src/App.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+16 -13)
📝 packages/client/src/components/chat/ChatMessage.tsx (+38 -18)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+26 -17)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+7 -4)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+42 -14)
📝 packages/client/src/components/layout/ChatRowPeek.tsx (+3 -1)
📝 packages/client/src/localization/locales/en.json (+5 -0)
📝 packages/server/src/routes/connections.routes.ts (+76 -9)
📝 packages/server/src/services/image/image-generation.ts (+180 -2)
📝 packages/shared/src/constants/image-generation-defaults.ts (+1 -0)
📝 packages/shared/src/constants/model-lists.ts (+9 -0)
📝 scripts/regressions/launcher-update.regression.mjs (+12 -0)
📝 scripts/regressions/open-issues.regression.ts (+127 -33)
📝 scripts/regressions/roleplay-streaming.regression.ts (+26 -21)
📝 start.bat (+1 -1)
📝 win/installer/install.bat (+19 -3)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #4700
Closes #4701
Closes #4702
Closes #4709
Closes #4710
Closes #4712
Closes #4713
Closes #4714

Why this change

This clears the complete open issue set assigned to SpicyMarinara. The fixes keep Roleplay interactions responsive and correctly styled, restore editor affordances and Windows Node detection, and let users route image generation and custom ComfyUI workflows through SwarmUI's queue.

What changed

  • Keep the complete desktop Roleplay edit Save hit target above overlapping message layers.
  • Detect Node by executing node --version in the Windows launcher and installer instead of depending on where.exe.
  • Add SwarmUI as an image backend with session creation, optional auth token, connection/model discovery, native generation, and custom ComfyUI workflow submission through /API/GenerateText2Image.
  • Add an accent divider above Roleplay new-start messages.
  • Use MacroTextarea for summary entry editing so expand and macro-guide controls are available.
  • Move chat-hover loading, chat-opening errors, and the recovery-screen error detail (including Internal Server Error) onto chroma-aware text tokens.
  • Memoize the chat-area boundary and stabilize mutation callbacks so unrelated topbar changes do not rerender an unchanged transcript.
  • Render Markdown, actions, and dialogue colors during frame-coalesced Roleplay streaming instead of waiting for completion.
  • Add focused regression and Playwright coverage for these paths.

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 evidence

  • pnpm check
  • pnpm regression:issues
  • pnpm regression:roleplay
  • pnpm version:check
  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep 'stopped and refused generations|editing the preceding Roleplay message keeps one live stream row' --workers=1 (2 passed)

Manual verification notes

  • Manually verify the Roleplay edit checkmark across its full visible bounds on desktop.
  • Manually verify live Markdown/dialogue formatting with streaming enabled and a long response.
  • Manually verify SwarmUI connection testing, model discovery, native generation, and an API-format ComfyUI workflow against a real SwarmUI instance.
  • Manually verify chroma text colors in Chats hover loading and recovery error states.

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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Targeted desktop Playwright coverage verifies the full Save hit target and live Markdown before stream completion; manual checks remain listed above.

Summary by CodeRabbit

  • New Features
    • Added SwarmUI image generation with connection testing, model discovery, workflows, LoRAs, and reference images.
  • Bug Fixes
    • Improved streaming formatting for Markdown, bold text, quotes, galleries, and roleplay content.
    • Fixed editing controls, recovery messages, progress indicators, and Windows Node.js detection and installation checks.
  • Accessibility & Style
    • Enhanced contrast, animated accent states, editor layering, and summary editing.
  • Tests
    • Expanded coverage for SwarmUI integration, streaming behavior, accessibility styling, and launcher updates.

🔄 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/4717 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/7/2026 **Status:** ✅ Merged **Merged:** 8/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4700-4714` --- ### 📝 Commits (5) - [`5ee79bd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5ee79bd911075a3152684b30289f112ae5c0d6e3) chore: start assigned issue sweep - [`d19cb9e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d19cb9ea253933e9ddebd4980b853649a7adc865) fix: address assigned issue sweep - [`91ef4aa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/91ef4aa45a73cffae459cb7ee39daa4246f9ae76) fix: apply CodeRabbit review feedback - [`ca9cb6f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca9cb6f291bb49b233ab18194efdfc8b784c0d5f) fix: finish CodeRabbit follow-up - [`7177998`](https://github.com/Pasta-Devs/Marinara-Engine/commit/71779980249514753eddcc9dd010b8dc190686f5) test: isolate installer version checks ### 📊 Changes **19 files changed** (+606 additions, -142 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+9 -1) 📝 `e2e/core-flows.e2e.ts` (+8 -4) 📝 `packages/client/src/App.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+16 -13) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+38 -18) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+26 -17) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+7 -4) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+42 -14) 📝 `packages/client/src/components/layout/ChatRowPeek.tsx` (+3 -1) 📝 `packages/client/src/localization/locales/en.json` (+5 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+76 -9) 📝 `packages/server/src/services/image/image-generation.ts` (+180 -2) 📝 `packages/shared/src/constants/image-generation-defaults.ts` (+1 -0) 📝 `packages/shared/src/constants/model-lists.ts` (+9 -0) 📝 `scripts/regressions/launcher-update.regression.mjs` (+12 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+127 -33) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+26 -21) 📝 `start.bat` (+1 -1) 📝 `win/installer/install.bat` (+19 -3) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #4700 Closes #4701 Closes #4702 Closes #4709 Closes #4710 Closes #4712 Closes #4713 Closes #4714 ## Why this change This clears the complete open issue set assigned to `SpicyMarinara`. The fixes keep Roleplay interactions responsive and correctly styled, restore editor affordances and Windows Node detection, and let users route image generation and custom ComfyUI workflows through SwarmUI's queue. ## What changed - Keep the complete desktop Roleplay edit Save hit target above overlapping message layers. - Detect Node by executing `node --version` in the Windows launcher and installer instead of depending on `where.exe`. - Add SwarmUI as an image backend with session creation, optional auth token, connection/model discovery, native generation, and custom ComfyUI workflow submission through `/API/GenerateText2Image`. - Add an accent divider above Roleplay new-start messages. - Use `MacroTextarea` for summary entry editing so expand and macro-guide controls are available. - Move chat-hover loading, chat-opening errors, and the recovery-screen error detail (including `Internal Server Error`) onto chroma-aware text tokens. - Memoize the chat-area boundary and stabilize mutation callbacks so unrelated topbar changes do not rerender an unchanged transcript. - Render Markdown, actions, and dialogue colors during frame-coalesced Roleplay streaming instead of waiting for completion. - Add focused regression and Playwright coverage for these paths. ## 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 evidence - `pnpm check` - `pnpm regression:issues` - `pnpm regression:roleplay` - `pnpm version:check` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep 'stopped and refused generations|editing the preceding Roleplay message keeps one live stream row' --workers=1` (2 passed) ### Manual verification notes - Manually verify the Roleplay edit checkmark across its full visible bounds on desktop. - Manually verify live Markdown/dialogue formatting with streaming enabled and a long response. - Manually verify SwarmUI connection testing, model discovery, native generation, and an API-format ComfyUI workflow against a real SwarmUI instance. - Manually verify chroma text colors in Chats hover loading and recovery error states. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Targeted desktop Playwright coverage verifies the full Save hit target and live Markdown before stream completion; manual checks remain listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added SwarmUI image generation with connection testing, model discovery, workflows, LoRAs, and reference images. * **Bug Fixes** * Improved streaming formatting for Markdown, bold text, quotes, galleries, and roleplay content. * Fixed editing controls, recovery messages, progress indicators, and Windows Node.js detection and installation checks. * **Accessibility & Style** * Enhanced contrast, animated accent states, editor layering, and summary editing. * **Tests** * Expanded coverage for SwarmUI integration, streaming behavior, accessibility styling, and launcher updates. <!-- 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:10:48 +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#6478
No description provided.