[PR #3064] [MERGED] [codex] Fix issue sweep 3054-3063 #5793

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3064
Author: @SpicyMarinara
Created: 6/29/2026
Status: ✅ Merged
Merged: 6/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/issue-sweep-3054-3063


📝 Commits (5)

  • 3221d0f Start issue sweep 3054-3063
  • ee841cb Fix issue sweep 3054-3063
  • 3ae8ca3 Fix image and asset issue sweep
  • aaf3f5b Restrict preset variables to roleplay
  • a3d24a9 Address CodeRabbit review feedback

📊 Changes

14 files changed (+644 additions, -475 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+182 -56)
📝 packages/server/src/routes/chats.routes.ts (+1 -61)
📝 packages/server/src/routes/gallery.routes.ts (+58 -16)
📝 packages/server/src/routes/game-assets.routes.ts (+17 -1)
📝 packages/server/src/routes/generate.routes.ts (+1 -66)
📝 packages/server/src/routes/generate/dry-run-route.ts (+1 -66)
📝 packages/server/src/routes/global-gallery.routes.ts (+30 -5)
📝 packages/server/src/routes/sprites.routes.ts (+189 -151)
📝 packages/server/src/services/image/image-generation.ts (+2 -4)
📝 packages/server/src/services/image/runpod-comfyui.service.ts (+77 -27)
📝 packages/shared/src/utils/image-prompt-compiler.ts (+54 -19)
📝 scripts/regressions/prompt.regression.ts (+28 -0)

📄 Description

Summary

Addresses the new issue sweep covering #3054 through #3063. The PR hardens image prompt parsing, gallery uploads, RunPod ComfyUI handling, sprite sheet validation, local music file access, native bundled asset protections, and chat-completions reference image MIME handling.

What changed

  • Kept only directly negated prompt clauses in the negative image prompt and preserved trailing positive descriptors.
  • Gated local music file serving with the same privileged access check as the folder picker.
  • Blocked single/bulk destructive operations from deleting or moving bundled native game assets.
  • Validated sprite-sheet grid dimensions before provider calls.
  • Preserved real reference-image MIME types for chat-completions image generation backends.
  • Made RunPod ComfyUI submit/poll/sleep paths observe abort signals and reject corrupt fallback image payloads.
  • Made chat/global gallery uploads require real image bytes, reject phantom chat uploads, and avoid partial-file leftovers.
  • Added prompt regression coverage and v2.0.7 changelog notes.

Validation

  • pnpm check
  • pnpm regression:prompt
  • pnpm --filter @marinara-engine/server lint
  • git diff --check

Validation run locally: pnpm check, pnpm regression:prompt, pnpm --filter @marinara-engine/server lint, and git diff --check all passed.

Manual verification

  • Manually verify rejected gallery uploads show the expected UI failure state.
  • Manually verify privileged local music playback still works from loopback desktop installs.

Summary by CodeRabbit

  • Bug Fixes
    • Improved image uploads by validating file size and image contents, reducing partial uploads and missing-file issues.
    • Prevented accidental deletion or moving of built-in game assets, and protected local music file access behind the appropriate access check.
    • Fixed sprite sheet generation to reject invalid grid sizes and handle empty/failed expressions more safely.
    • Preserved reference image format details in chat image requests and improved handling of interrupted AI image generation.

🔄 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/3064 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/29/2026 **Status:** ✅ Merged **Merged:** 6/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/issue-sweep-3054-3063` --- ### 📝 Commits (5) - [`3221d0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3221d0f48dd47c208cd3dbabd6bfb961d94a38f7) Start issue sweep 3054-3063 - [`ee841cb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee841cbd36dcaecbb4a17284121144217ad3e6f1) Fix issue sweep 3054-3063 - [`3ae8ca3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3ae8ca37c1b24a22d9db0f039c0f2781fbe8a0b8) Fix image and asset issue sweep - [`aaf3f5b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aaf3f5b7594c6a0d65519b5008edb462889a55d1) Restrict preset variables to roleplay - [`a3d24a9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3d24a9ba227fdfafc1fff723cf58b9ee1db69f2) Address CodeRabbit review feedback ### 📊 Changes **14 files changed** (+644 additions, -475 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+182 -56) 📝 `packages/server/src/routes/chats.routes.ts` (+1 -61) 📝 `packages/server/src/routes/gallery.routes.ts` (+58 -16) 📝 `packages/server/src/routes/game-assets.routes.ts` (+17 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+1 -66) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+1 -66) 📝 `packages/server/src/routes/global-gallery.routes.ts` (+30 -5) 📝 `packages/server/src/routes/sprites.routes.ts` (+189 -151) 📝 `packages/server/src/services/image/image-generation.ts` (+2 -4) 📝 `packages/server/src/services/image/runpod-comfyui.service.ts` (+77 -27) 📝 `packages/shared/src/utils/image-prompt-compiler.ts` (+54 -19) 📝 `scripts/regressions/prompt.regression.ts` (+28 -0) </details> ### 📄 Description ## Summary Addresses the new issue sweep covering #3054 through #3063. The PR hardens image prompt parsing, gallery uploads, RunPod ComfyUI handling, sprite sheet validation, local music file access, native bundled asset protections, and chat-completions reference image MIME handling. ## What changed - Kept only directly negated prompt clauses in the negative image prompt and preserved trailing positive descriptors. - Gated local music file serving with the same privileged access check as the folder picker. - Blocked single/bulk destructive operations from deleting or moving bundled native game assets. - Validated sprite-sheet grid dimensions before provider calls. - Preserved real reference-image MIME types for chat-completions image generation backends. - Made RunPod ComfyUI submit/poll/sleep paths observe abort signals and reject corrupt fallback image payloads. - Made chat/global gallery uploads require real image bytes, reject phantom chat uploads, and avoid partial-file leftovers. - Added prompt regression coverage and v2.0.7 changelog notes. ## Validation - [ ] `pnpm check` - [ ] `pnpm regression:prompt` - [ ] `pnpm --filter @marinara-engine/server lint` - [ ] `git diff --check` Validation run locally: `pnpm check`, `pnpm regression:prompt`, `pnpm --filter @marinara-engine/server lint`, and `git diff --check` all passed. ## Manual verification - [ ] Manually verify rejected gallery uploads show the expected UI failure state. - [ ] Manually verify privileged local music playback still works from loopback desktop installs. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved image uploads by validating file size and image contents, reducing partial uploads and missing-file issues. * Prevented accidental deletion or moving of built-in game assets, and protected local music file access behind the appropriate access check. * Fixed sprite sheet generation to reject invalid grid sizes and handle empty/failed expressions more safely. * Preserved reference image format details in chat image requests and improved handling of interrupted AI image generation. <!-- 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-22 04:19:34 +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#5793
No description provided.