[PR #3983] [MERGED] Fix launcher safety, translation controls, image variants, and game assets #6183

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

📋 Pull Request Information

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

Base: staging ← Head: agent/remaining-issues-2026-07-23


📝 Commits (4)

  • 0ae3175 Protect launcher updates and Termux image references
  • de79081 Add translation and image generation controls
  • 1863e3f Restore per-game asset selection
  • 4cdad80 Apply CodeRabbit review fixes for menus, translation, and image attribution

📊 Changes

155 files changed (+1081 additions, -421 deletions)

View changed files

📝 CHANGELOG.md (+15 -0)
📝 docs/game/game-assets.md (+12 -9)
📝 packages/client/src/components/chat/ChatArea.tsx (+26 -8)
📝 packages/client/src/components/chat/ChatInput.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatMessage.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+36 -1)
📝 packages/client/src/components/chat/ConversationInput.tsx (+2 -2)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+1 -1)
📝 packages/client/src/components/game-assets/ActionDropdown.tsx (+26 -5)
📝 packages/client/src/components/game-assets/GameAssetsBrowserView.tsx (+27 -14)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+54 -2)
📝 packages/client/src/features/chat-settings/sections/TranslationSection.tsx (+122 -54)
📝 packages/client/src/hooks/use-generate.ts (+2 -6)
📝 packages/client/src/hooks/use-translate.ts (+2 -2)
📝 packages/client/src/lib/draft-translation.ts (+1 -1)
📝 packages/client/src/lib/translate-text.ts (+6 -3)
📝 packages/client/src/stores/translation.store.ts (+5 -3)
📝 packages/server/package.json (+1 -0)
📝 packages/server/src/assets/default-game-assets/CREDITS.md (+0 -9)
➖ packages/server/src/assets/default-game-assets/sprites/generic-fantasy/anime-vn/char-1-default.png (+0 -0)

...and 80 more files

📄 Description

Why

The previous issue-fix PR was merged before these follow-up changes were ready. This fresh PR carries only the remaining fixes on top of the current staging branch.

It protects user data during launcher-managed updates, restores requested per-chat controls, improves Termux image support, and brings per-game asset selection back without adding unnecessary new systems.

What changed

Launcher and Termux safety

  • Snapshot the configured DATA_DIR to a private sibling backup before automatic launcher updates.
  • Abort an automatic update if the snapshot cannot be created.
  • Restore the snapshot if an update leaves the data directory missing or empty, and retain the two newest snapshots.
  • Use the pinned lockfile for launcher installs instead of forcing dependency resolution.
  • Configure Termux to avoid incompatible global libvips use, install the pinned wasm Sharp fallback, and verify image support after installation.

Translation and image generation

  • Split translation into outgoing Model Language and incoming My Language controls.
  • Add separate customizable prompts with target-language interpolation while preserving legacy translation settings.
  • Add a per-chat Images Per Generation setting from 1 to 4.
  • Request variants sequentially, keep partial successes, and support the setting across Conversation, Roleplay, Game, and Gallery flows.
  • Increase the image attachment size allowance for generated results.

Game assets

  • Restore the Adjust Game Assets for this Game section in the setup wizard.
  • Reuse the existing per-game asset filters and default new games to all available assets.
  • Keep action menus usable near viewport edges on desktop and mobile.
  • Remove the bundled generic-fantasy sprite pack and its obsolete credits from future installs. Existing user data directories are not deleted.

Documentation

  • Add the fixes to CHANGELOG.md.

Validation

  • pnpm check
  • pnpm regression:issues
  • pnpm smoke:ui (88 passed, 52 viewport-specific skips)
  • bash syntax checks for start.sh and start-termux.sh
  • git diff --check

Manual verification

  • Manually verify a launcher update preserves a non-default DATA_DIR on Windows, macOS, Linux, and Termux.
  • Manually verify Termux image generation on a supported Android device.
  • Manually verify both translation directions with custom prompts and a legacy saved configuration.
  • Manually verify generation of 1 through 4 images, including a partial provider failure.
  • Manually verify game asset selection and overflow menus on desktop and mobile.

Closes #3961
Closes #3962
Closes #3965
Closes #3966
Closes #3975
Closes #3976

Summary by CodeRabbit

  • New Features
    • Illustrator can generate up to four image variants per request, configurable per chat.
    • Translation settings now support separate input/output languages and prompts.
    • Game setup provides an embedded asset browser with improved folder selection.
  • Bug Fixes
    • Improved mobile image previews, chat layout, streaming visibility, navigation, and asset menus.
    • Improved update safety by protecting user data during launcher updates.
    • Added Android/Termux Sharp WebAssembly support and corrected image-generation behavior.
  • Documentation
    • Updated Game Mode asset availability, upload rules, and selection instructions.

🔄 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/3983 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/remaining-issues-2026-07-23` --- ### 📝 Commits (4) - [`0ae3175`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0ae31757dbf3612544ed103ad137dd2dfe89313f) Protect launcher updates and Termux image references - [`de79081`](https://github.com/Pasta-Devs/Marinara-Engine/commit/de79081a420d14c6b8371976a7053baf64d69a6c) Add translation and image generation controls - [`1863e3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1863e3ffbf0b4b0716f506d590abe6179b982df6) Restore per-game asset selection - [`4cdad80`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4cdad803b1fd4c6a309d5fea607b884667c5c1c8) Apply CodeRabbit review fixes for menus, translation, and image attribution ### 📊 Changes **155 files changed** (+1081 additions, -421 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+15 -0) 📝 `docs/game/game-assets.md` (+12 -9) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+26 -8) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+36 -1) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+1 -1) 📝 `packages/client/src/components/game-assets/ActionDropdown.tsx` (+26 -5) 📝 `packages/client/src/components/game-assets/GameAssetsBrowserView.tsx` (+27 -14) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+54 -2) 📝 `packages/client/src/features/chat-settings/sections/TranslationSection.tsx` (+122 -54) 📝 `packages/client/src/hooks/use-generate.ts` (+2 -6) 📝 `packages/client/src/hooks/use-translate.ts` (+2 -2) 📝 `packages/client/src/lib/draft-translation.ts` (+1 -1) 📝 `packages/client/src/lib/translate-text.ts` (+6 -3) 📝 `packages/client/src/stores/translation.store.ts` (+5 -3) 📝 `packages/server/package.json` (+1 -0) 📝 `packages/server/src/assets/default-game-assets/CREDITS.md` (+0 -9) ➖ `packages/server/src/assets/default-game-assets/sprites/generic-fantasy/anime-vn/char-1-default.png` (+0 -0) _...and 80 more files_ </details> ### 📄 Description ## Why The previous issue-fix PR was merged before these follow-up changes were ready. This fresh PR carries only the remaining fixes on top of the current staging branch. It protects user data during launcher-managed updates, restores requested per-chat controls, improves Termux image support, and brings per-game asset selection back without adding unnecessary new systems. ## What changed ### Launcher and Termux safety - Snapshot the configured DATA_DIR to a private sibling backup before automatic launcher updates. - Abort an automatic update if the snapshot cannot be created. - Restore the snapshot if an update leaves the data directory missing or empty, and retain the two newest snapshots. - Use the pinned lockfile for launcher installs instead of forcing dependency resolution. - Configure Termux to avoid incompatible global libvips use, install the pinned wasm Sharp fallback, and verify image support after installation. ### Translation and image generation - Split translation into outgoing Model Language and incoming My Language controls. - Add separate customizable prompts with target-language interpolation while preserving legacy translation settings. - Add a per-chat Images Per Generation setting from 1 to 4. - Request variants sequentially, keep partial successes, and support the setting across Conversation, Roleplay, Game, and Gallery flows. - Increase the image attachment size allowance for generated results. ### Game assets - Restore the Adjust Game Assets for this Game section in the setup wizard. - Reuse the existing per-game asset filters and default new games to all available assets. - Keep action menus usable near viewport edges on desktop and mobile. - Remove the bundled generic-fantasy sprite pack and its obsolete credits from future installs. Existing user data directories are not deleted. ### Documentation - Add the fixes to CHANGELOG.md. ## Validation - pnpm check - pnpm regression:issues - pnpm smoke:ui (88 passed, 52 viewport-specific skips) - bash syntax checks for start.sh and start-termux.sh - git diff --check ## Manual verification - [ ] Manually verify a launcher update preserves a non-default DATA_DIR on Windows, macOS, Linux, and Termux. - [ ] Manually verify Termux image generation on a supported Android device. - [ ] Manually verify both translation directions with custom prompts and a legacy saved configuration. - [ ] Manually verify generation of 1 through 4 images, including a partial provider failure. - [ ] Manually verify game asset selection and overflow menus on desktop and mobile. Closes #3961 Closes #3962 Closes #3965 Closes #3966 Closes #3975 Closes #3976 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Illustrator can generate up to four image variants per request, configurable per chat. * Translation settings now support separate input/output languages and prompts. * Game setup provides an embedded asset browser with improved folder selection. * **Bug Fixes** * Improved mobile image previews, chat layout, streaming visibility, navigation, and asset menus. * Improved update safety by protecting user data during launcher updates. * Added Android/Termux Sharp WebAssembly support and corrected image-generation behavior. * **Documentation** * Updated Game Mode asset availability, upload rules, and selection instructions. <!-- 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:07:53 +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#6183
No description provided.