[PR #3430] [MERGED] Fix lorebook, mobile reaction, asset deletion, and update issues #5932

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-open-issues-3422-3426


📝 Commits (2)

  • ef5e79f Start fixes for open issue batch
  • ba75758 fix: resolve open lorebook mobile asset and update issues

📊 Changes

16 files changed (+222 additions, -68 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 docs/CONFIGURATION.md (+1 -1)
📝 docs/installation/android-termux.md (+1 -1)
📝 docs/installation/macos-linux.md (+1 -1)
📝 docs/installation/windows.md (+1 -1)
📝 package.json (+2 -1)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+8 -7)
📝 packages/client/src/components/lorebooks/LorebookFormFields.tsx (+5 -6)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+43 -9)
➕ packages/client/src/lib/lorebook-keys.ts (+17 -0)
📝 packages/server/src/db/seed-game-assets.ts (+6 -8)
📝 packages/server/src/routes/game-assets.routes.ts (+8 -25)
📝 packages/server/src/routes/updates.routes.ts (+32 -8)
➕ packages/server/src/services/game/native-game-assets.ts (+54 -0)
➕ packages/server/src/services/updates/update-apply-policy.ts (+11 -0)
➕ scripts/regressions/open-issues.regression.ts (+28 -0)

📄 Description

Linked issues

Closes #3422
Closes #3424
Closes #3425
Closes #3426

Why this change

Four maintainer-owned reports blocked ordinary authoring, mobile, asset-management, and maintenance workflows:

  • AI-generated comma-separated lorebook keys were stored as one trigger.
  • Mobile grouped Conversation reactions were obscured and the whole-block picker targeted the wrong speaker segment.
  • Generated Game assets inherited a directory-level native marker and became undeletable.
  • Selecting a different release channel only exposed a manual command unless general browser-applied updates were enabled.

Issues #3418 and #3427 remain intentionally excluded because Romu owns them in PR #3419.

What changed

  • Split, trim, order-preserve, and deduplicate comma-separated lorebook activation keys.
  • Keep each grouped speaker's reaction button visible on mobile and remove the ambiguous whole-block picker.
  • Determine native Game asset ownership from the exact bundled path rather than any ancestor .native marker; generated/uploaded files remain writable even inside bundled directories.
  • Permit an explicit release-channel switch from a loopback browser while retaining the ordinary-update and remote-apply safety gates.
  • Make fallback manual update commands horizontally scrollable and one-tap copyable on narrow screens.
  • Document the updater behavior and add deterministic regression coverage.

Validation

  • pnpm check
  • pnpm test
  • pnpm regression:issues
  • Focused Playwright mobile grouped-reaction proof: both per-speaker controls visible; reaction persisted on the selected first segment.
  • Existing smoke:ui paths relevant to this change pass. The complete local suite still has its pre-existing shared-test-state limitations: parallel projects race on the single active Noodle persona, while a serial run reaches the global 600-request bucket before the final unrelated topbar test.

Manual verification requested

  • Manually paste Apples, Apple, Appletree, red fruit into a lorebook key field.
  • Manually react to the first speaker in a grouped Conversation message on Firefox Android.
  • Manually delete an Illustrator-generated background from a directory that also contains bundled assets.
  • Manually switch a local git install from Stable to Staging/UAT in Settings → Advanced → Updates.

Summary by CodeRabbit

  • Bug Fixes

    • Pasted lorebook activation keys are now trimmed, split, and deduplicated automatically.
    • Grouped conversation reactions remain visible and usable on mobile.
    • User-owned Game assets can again be moved or deleted when incorrectly identified as bundled content.
  • New Features

    • Local installations can switch release channels directly from Settings.
    • Update actions now clearly indicate when a channel switch is in progress.
    • Manual update commands include a convenient Copy button.
  • Documentation

    • Installation and configuration guides now explain release-channel switching and update requirements.

🔄 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/3430 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/10/2026 **Status:** ✅ Merged **Merged:** 7/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-open-issues-3422-3426` --- ### 📝 Commits (2) - [`ef5e79f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ef5e79f78900d9352d002348bf73c6d43e304029) Start fixes for open issue batch - [`ba75758`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ba75758bef43e1d8efdc234dc0179016983362d7) fix: resolve open lorebook mobile asset and update issues ### 📊 Changes **16 files changed** (+222 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `docs/installation/android-termux.md` (+1 -1) 📝 `docs/installation/macos-linux.md` (+1 -1) 📝 `docs/installation/windows.md` (+1 -1) 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+8 -7) 📝 `packages/client/src/components/lorebooks/LorebookFormFields.tsx` (+5 -6) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+43 -9) ➕ `packages/client/src/lib/lorebook-keys.ts` (+17 -0) 📝 `packages/server/src/db/seed-game-assets.ts` (+6 -8) 📝 `packages/server/src/routes/game-assets.routes.ts` (+8 -25) 📝 `packages/server/src/routes/updates.routes.ts` (+32 -8) ➕ `packages/server/src/services/game/native-game-assets.ts` (+54 -0) ➕ `packages/server/src/services/updates/update-apply-policy.ts` (+11 -0) ➕ `scripts/regressions/open-issues.regression.ts` (+28 -0) </details> ### 📄 Description ## Linked issues Closes #3422 Closes #3424 Closes #3425 Closes #3426 ## Why this change Four maintainer-owned reports blocked ordinary authoring, mobile, asset-management, and maintenance workflows: - AI-generated comma-separated lorebook keys were stored as one trigger. - Mobile grouped Conversation reactions were obscured and the whole-block picker targeted the wrong speaker segment. - Generated Game assets inherited a directory-level native marker and became undeletable. - Selecting a different release channel only exposed a manual command unless general browser-applied updates were enabled. Issues #3418 and #3427 remain intentionally excluded because Romu owns them in PR #3419. ## What changed - Split, trim, order-preserve, and deduplicate comma-separated lorebook activation keys. - Keep each grouped speaker's reaction button visible on mobile and remove the ambiguous whole-block picker. - Determine native Game asset ownership from the exact bundled path rather than any ancestor `.native` marker; generated/uploaded files remain writable even inside bundled directories. - Permit an explicit release-channel switch from a loopback browser while retaining the ordinary-update and remote-apply safety gates. - Make fallback manual update commands horizontally scrollable and one-tap copyable on narrow screens. - Document the updater behavior and add deterministic regression coverage. ## Validation - `pnpm check` - `pnpm test` - `pnpm regression:issues` - Focused Playwright mobile grouped-reaction proof: both per-speaker controls visible; reaction persisted on the selected first segment. - Existing `smoke:ui` paths relevant to this change pass. The complete local suite still has its pre-existing shared-test-state limitations: parallel projects race on the single active Noodle persona, while a serial run reaches the global 600-request bucket before the final unrelated topbar test. ## Manual verification requested - Manually paste `Apples, Apple, Appletree, red fruit` into a lorebook key field. - Manually react to the first speaker in a grouped Conversation message on Firefox Android. - Manually delete an Illustrator-generated background from a directory that also contains bundled assets. - Manually switch a local git install from Stable to Staging/UAT in Settings → Advanced → Updates. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Pasted lorebook activation keys are now trimmed, split, and deduplicated automatically. - Grouped conversation reactions remain visible and usable on mobile. - User-owned Game assets can again be moved or deleted when incorrectly identified as bundled content. - **New Features** - Local installations can switch release channels directly from Settings. - Update actions now clearly indicate when a channel switch is in progress. - Manual update commands include a convenient Copy button. - **Documentation** - Installation and configuration guides now explain release-channel switching and update requirements. <!-- 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:05:18 +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#5932
No description provided.