[PR #4972] [MERGED] Fix assigned game, Android, and SwarmUI issues #6561

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4964-4969


📝 Commits (10+)

  • 378be61 chore: begin assigned issue sweep
  • e3ac8c0 fix: resolve assigned game and local runtime issues
  • ab657a6 fix: apply assigned issue review feedback
  • ad50073 Merge remote-tracking branch 'origin/staging' into agent/assigned-issues-4964-4969
  • 368de7f fix: preserve validated media range metadata
  • f8af953 Merge branch 'staging' into agent/assigned-issues-4964-4969
  • 2cd1a89 fix: distinguish lorebook vector states
  • 33cb3d2 fix: address final assigned issue reviews
  • c37fc99 Merge remote-tracking branch 'origin/staging' into agent/assigned-issues-4964-4969
  • d9a2861 Merge branch 'staging' into agent/assigned-issues-4964-4969

📊 Changes

25 files changed (+1066 additions, -152 deletions)

View changed files

📝 CHANGELOG.md (+6 -1)
📝 e2e/core-flows.e2e.ts (+10 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+1 -0)
📝 packages/client/src/components/chat/MariEditEasyViewer.tsx (+31 -26)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+36 -1)
📝 packages/client/src/components/game/GameSurface.tsx (+7 -2)
📝 packages/client/src/lib/game-setup-share.ts (+1 -0)
📝 packages/client/src/lib/keep-alive.ts (+76 -4)
📝 packages/client/src/lib/mari-edit-diff.ts (+14 -0)
📝 packages/client/src/localization/locales/en.json (+4 -2)
📝 packages/client/src/localization/locales/ko.json (+1 -1)
📝 packages/server/src/routes/game.routes.ts (+3 -0)
📝 packages/server/src/services/image/image-generation.ts (+16 -10)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+173 -59)
📝 packages/server/src/utils/media-file-security.ts (+105 -11)
📝 packages/server/src/utils/security.ts (+31 -3)
📝 packages/shared/src/types/game.ts (+21 -0)
📝 scripts/regressions/assigned-issue-sweep.regression.ts (+187 -0)
📝 scripts/regressions/mari-db-review-durability.regression.ts (+140 -2)
📝 scripts/regressions/mari-edit-diff.regression.ts (+29 -1)

...and 5 more files

📄 Description

Why

This closes the current issues assigned to SpicyMarinara with focused fixes:

  • Game setup could not configure Illustrator dynamic prompt rewriting before the first image request.
  • The message-edit tooltip mentioned only the macOS shortcut.
  • Android browsers connected to same-device Termux could let the host freeze after idle traffic was removed.
  • Long SwarmUI requests could lose an idle container-network socket before the configured generation deadline.

Closes #4964
Closes #4965
Closes #4968
Closes #4969

What changed

  • Added a localized, persisted Illustrator dynamic-prompt toggle to Game setup and applied it before initial generation.
  • Updated the edit hint to Cmd/Ctrl+Enter and exposed both shortcuts to assistive technology.
  • Added a visible-only, Android-loopback-only 10-second health heartbeat with no overlap and no hidden-tab or remote polling.
  • Applied a validated 10-second TCP keepalive probe only to SwarmUI GenerateText2Image while retaining configured overall, header, and body deadlines.
  • Restored Professor Mari preset creation after the security schema change while keeping reserved Engine preset identity unwritable.
  • Updated the Android native-bridge regression to its token-authenticated signature from the preceding security merge.

Automated validation

  • Run pnpm check
  • Run pnpm version:check
  • Run pnpm regression:issues
  • Run request-security and image-result-security regressions
  • Run focused desktop Playwright coverage for Game setup Illustrator controls and message editing
  • Confirm git diff --check

Manual verification needed

  • On a real OnePlus Android device, leave Firefox connected to localhost Termux for more than one minute and confirm updates remain responsive; compare battery impact.
  • Against a real Linux/Podman SwarmUI instance, run an image generation longer than 30 seconds and confirm it reaches the configured deadline instead of read ETIMEDOUT.
  • On desktop and mobile, visually confirm the Game setup Illustrator option fits the existing Features card.

Summary by CodeRabbit

  • New Features

    • Added an Illustrator option for dynamic LLM-generated image prompts during Game setup.
    • Preserved this setting when importing or continuing a game setup.
    • Added clearer Professor Mari lorebook statuses, including “Not vectorized.”
  • Bug Fixes

    • Improved Android localhost responsiveness.
    • Increased reliability for long-running SwarmUI image-generation requests.
    • Protected Engine preset identifiers during Professor Mari preset creation.
    • Clarified Cmd/Ctrl+Enter shortcuts for editing and saving, including Windows guidance.
  • Tests

    • Added coverage for setup, connectivity, shortcuts, lorebook statuses, and reliability fixes.

🔄 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/4972 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/13/2026 **Status:** ✅ Merged **Merged:** 8/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4964-4969` --- ### 📝 Commits (10+) - [`378be61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/378be61d81f050fdd6285c42d773593b729d5e76) chore: begin assigned issue sweep - [`e3ac8c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3ac8c03d2856c9a672869514809d036dc8f5cc7) fix: resolve assigned game and local runtime issues - [`ab657a6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ab657a6e84315d3089377b070c949da82130e190) fix: apply assigned issue review feedback - [`ad50073`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ad5007367e67c726912de2307a45873332483639) Merge remote-tracking branch 'origin/staging' into agent/assigned-issues-4964-4969 - [`368de7f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/368de7f3f6190f8b01887912f374d143c20c4d5b) fix: preserve validated media range metadata - [`f8af953`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f8af9539b3bb1b4f1df02bece8ce9959c93872ce) Merge branch 'staging' into agent/assigned-issues-4964-4969 - [`2cd1a89`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2cd1a8906999f2c0236308de665898599e0f62c3) fix: distinguish lorebook vector states - [`33cb3d2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/33cb3d2abc6401b5150e9de9e7a273710bd82a49) fix: address final assigned issue reviews - [`c37fc99`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c37fc994b5e8e577cca684c3896440f22eb4c510) Merge remote-tracking branch 'origin/staging' into agent/assigned-issues-4964-4969 - [`d9a2861`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d9a2861321b9a5da5e2b9c3cedadf8319d753ab2) Merge branch 'staging' into agent/assigned-issues-4964-4969 ### 📊 Changes **25 files changed** (+1066 additions, -152 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -1) 📝 `e2e/core-flows.e2e.ts` (+10 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+1 -0) 📝 `packages/client/src/components/chat/MariEditEasyViewer.tsx` (+31 -26) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+36 -1) 📝 `packages/client/src/components/game/GameSurface.tsx` (+7 -2) 📝 `packages/client/src/lib/game-setup-share.ts` (+1 -0) 📝 `packages/client/src/lib/keep-alive.ts` (+76 -4) 📝 `packages/client/src/lib/mari-edit-diff.ts` (+14 -0) 📝 `packages/client/src/localization/locales/en.json` (+4 -2) 📝 `packages/client/src/localization/locales/ko.json` (+1 -1) 📝 `packages/server/src/routes/game.routes.ts` (+3 -0) 📝 `packages/server/src/services/image/image-generation.ts` (+16 -10) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+173 -59) 📝 `packages/server/src/utils/media-file-security.ts` (+105 -11) 📝 `packages/server/src/utils/security.ts` (+31 -3) 📝 `packages/shared/src/types/game.ts` (+21 -0) 📝 `scripts/regressions/assigned-issue-sweep.regression.ts` (+187 -0) 📝 `scripts/regressions/mari-db-review-durability.regression.ts` (+140 -2) 📝 `scripts/regressions/mari-edit-diff.regression.ts` (+29 -1) _...and 5 more files_ </details> ### 📄 Description ## Why This closes the current issues assigned to SpicyMarinara with focused fixes: - Game setup could not configure Illustrator dynamic prompt rewriting before the first image request. - The message-edit tooltip mentioned only the macOS shortcut. - Android browsers connected to same-device Termux could let the host freeze after idle traffic was removed. - Long SwarmUI requests could lose an idle container-network socket before the configured generation deadline. Closes #4964 Closes #4965 Closes #4968 Closes #4969 ## What changed - Added a localized, persisted Illustrator dynamic-prompt toggle to Game setup and applied it before initial generation. - Updated the edit hint to Cmd/Ctrl+Enter and exposed both shortcuts to assistive technology. - Added a visible-only, Android-loopback-only 10-second health heartbeat with no overlap and no hidden-tab or remote polling. - Applied a validated 10-second TCP keepalive probe only to SwarmUI GenerateText2Image while retaining configured overall, header, and body deadlines. - Restored Professor Mari preset creation after the security schema change while keeping reserved Engine preset identity unwritable. - Updated the Android native-bridge regression to its token-authenticated signature from the preceding security merge. ## Automated validation - [ ] Run `pnpm check` - [ ] Run `pnpm version:check` - [ ] Run `pnpm regression:issues` - [ ] Run request-security and image-result-security regressions - [ ] Run focused desktop Playwright coverage for Game setup Illustrator controls and message editing - [ ] Confirm `git diff --check` ## Manual verification needed - [ ] On a real OnePlus Android device, leave Firefox connected to localhost Termux for more than one minute and confirm updates remain responsive; compare battery impact. - [ ] Against a real Linux/Podman SwarmUI instance, run an image generation longer than 30 seconds and confirm it reaches the configured deadline instead of `read ETIMEDOUT`. - [ ] On desktop and mobile, visually confirm the Game setup Illustrator option fits the existing Features card. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added an Illustrator option for dynamic LLM-generated image prompts during Game setup. - Preserved this setting when importing or continuing a game setup. - Added clearer Professor Mari lorebook statuses, including “Not vectorized.” - **Bug Fixes** - Improved Android localhost responsiveness. - Increased reliability for long-running SwarmUI image-generation requests. - Protected Engine preset identifiers during Professor Mari preset creation. - Clarified Cmd/Ctrl+Enter shortcuts for editing and saving, including Windows guidance. - **Tests** - Added coverage for setup, connectivity, shortcuts, lorebook statuses, and reliability fixes. <!-- 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:36 +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#6561
No description provided.