[PR #6095] [MERGED] fix: complete issue sweep for mobile chat, Illustrator and backups #7060

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6095
Author: @SpicyMarinara
Created: 9/12/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/issue-sweep-6090-6094


📝 Commits (10+)

  • dfa7307 fix(backup): check free space before writing the automatic backup
  • 244871c Merge remote-tracking branch 'origin/staging' into fix/6087-automatic-backup-free-space
  • 233483d fix: remove a deleted card from every chat, and count only existing cards in Chat Settings
  • 5c03db7 Merge remote-tracking branch 'origin/staging' into fix/deleted-card-chat-membership-6084
  • 6547cc3 fix(backup): log a failed free-space read before the automatic backup
  • cefb0df chore: track issue sweep for search and message controls
  • 6c4d5a5 test: align deleted-card regression with all chat modes
  • da6cbed test: exercise automatic backup disk-space refusal and recovery
  • 3acccc2 Merge branch 'staging' into fix/6087-automatic-backup-free-space
  • 6c433f5 Merge branch 'staging' into fix/deleted-card-chat-membership-6084

📊 Changes

21 files changed (+756 additions, -166 deletions)

View changed files

📝 CHANGELOG.md (+10 -0)
📝 docs/data/backup-and-restore.md (+4 -0)
📝 e2e/assigned-chat-sweep.e2e.ts (+133 -0)
📝 e2e/core-flows.e2e.ts (+20 -2)
📝 packages/client/src/components/chat/ChatMessage.tsx (+182 -141)
📝 packages/client/src/components/chat/ChatMessageSearch.tsx (+5 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+8 -5)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+3 -3)
📝 packages/client/src/components/chat/MessageActionButton.tsx (+1 -1)
📝 packages/client/src/hooks/use-generate.ts (+12 -5)
📝 packages/client/src/hooks/use-touch-folder-drag.ts (+2 -0)
📝 packages/client/src/localization/locales/en.json (+6 -2)
📝 packages/client/src/styles/globals.css (+4 -0)
📝 packages/server/src/routes/backup.routes.ts (+52 -2)
📝 packages/server/src/services/backup/automatic-backup-retention.ts (+13 -0)
📝 packages/server/src/services/storage/characters.storage.ts (+5 -2)
📝 scripts/regressions/assigned-chat-sweep.regression.ts (+2 -2)
➕ scripts/regressions/automatic-backup-free-space.regression.ts (+109 -0)
📝 scripts/regressions/automatic-backup-retention.regression.ts (+20 -0)
➕ scripts/regressions/character-delete-chat-membership.regression.ts (+108 -0)

...and 1 more files

📄 Description

Linked issue

Closes #6084
Closes #6087
Closes #6090
Closes #6092
Closes #6093
Closes #6094
Closes #6096
Closes #6098

Why this change

Chat search needs to find numbered messages, Roleplay controls need to remain usable on mobile, and Illustrator needs to explain a decision that produces no image. This sweep also prevents automatic backups from filling a nearly full disk and removes stale character memberships after a card is deleted.

What changed

  • Search accepts #67 while preserving actual message numbers across hidden and older messages.
  • Roleplay action menus stay visible after a mobile tap, recipient controls share the action tray, and native tap flashes are suppressed.
  • Community and Field Notes shortcuts fit inside their widgets, including Firefox.
  • Illustrator activity distinguishes skipped, requested, generated, and unusable decisions and preserves the returned reason. Cadence still counts both user/persona and assistant/character messages; the interval schedules a decision, not a guaranteed image.
  • Mobile character handles prevent native scrolling, and character reordering disables the existing helper's edge scrolling for Chat Settings. Normal swiping outside the handle remains available.
  • Preserves the original commits from @SonaGat3's #6088 and @OneWayGondola's #6089, including the added backup-route proof and loading-state correction. Both original heads are ancestors of this branch, so merging this PR lands their patches together.

Validation

  • pnpm check passes on the combined branch (TypeScript, ESLint, localization, formatting, and builds). The combined branch passed all 253 Node regressions. The final backup-metadata correction passes pnpm check and all three backup regressions; its CI is running.
  • Native mobile Chromium reproduced a 287 px Settings scroll while holding a character handle near the panel edge. The fix keeps the panel stationary, saves reordered IDs, cancels cleanly, and permits a normal swipe afterward.
  • The full CI matrix passed before the final backend-only metadata correction, including container build, security analysis, Node regressions, desktop Chromium, Android Chromium, and iPhone WebKit. The frontend is unchanged by that correction.
  • Targeted message search and Roleplay action checks passed in desktop Chromium, Android Chromium, and iPhone WebKit; desktop shell smoke checks passed.
  • Firefox reproduced clipped widget padding; the corrected widgets passed at desktop, tablet, and mobile widths in Firefox, Chromium, and WebKit.
  • Illustrator cadence and actual activity-formatting regressions passed, including mixed user/persona and assistant/character messages and skipped decisions.
  • The real Fastify automatic-backup route passed insufficient-space, previous-archive preservation, no-partial-ZIP, successful retry, and actual-archive-size boundary checks with isolated storage and a mocked free-space query.
  • Character deletion and assigned-chat regressions passed across Roleplay, Conversation, and Game.

Manual verification

  • Manually verify Roleplay action menus and character reordering on a physical iPhone with the Docker-hosted app, including light and dark themes.
  • Manually verify Illustrator activity with a real model returning a skipped decision and with a working image backend.
  • Manually verify the automatic-backup error in Settings on a device with limited free space.

Docs and release impact

User-facing fixes are recorded in CHANGELOG.md. The backup guide update comes from #6088; its ten translated language packs are in companion #6097 targeting docs-i18n. No version bump.

Summary by CodeRabbit

  • New Features
    • Search chat history by message number, with result counts and navigation through older matches.
    • Illustrator activity now reports requested, generated, skipped, and invalid outcomes.
  • Bug Fixes
    • Character deletion now removes memberships across all chat types.
    • Automatic backups check available disk space before running and explain skipped backups.
    • Improved mobile character reordering and Roleplay action-menu behavior.
  • UI Improvements
    • Refined widget shortcut sizing and mobile tap interactions.
    • Chat message action menus remain correctly positioned while scrolling or resizing.

🔄 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/6095 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/12/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-sweep-6090-6094` --- ### 📝 Commits (10+) - [`dfa7307`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dfa7307be3992f8e3bb5347eed822a2490601f8d) fix(backup): check free space before writing the automatic backup - [`244871c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/244871c91d39f6799f4546e8c2174bf6e3cb6c9e) Merge remote-tracking branch 'origin/staging' into fix/6087-automatic-backup-free-space - [`233483d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/233483d8cdd6434a1ece6d34bc62b2acd59e9cb0) fix: remove a deleted card from every chat, and count only existing cards in Chat Settings - [`5c03db7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c03db7f520fa75947df7b7a1122d756b5baca4f) Merge remote-tracking branch 'origin/staging' into fix/deleted-card-chat-membership-6084 - [`6547cc3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6547cc386bf12c87837cb9ddb3cf58bceeadf789) fix(backup): log a failed free-space read before the automatic backup - [`cefb0df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cefb0df45d22ada32eae072f502fde35c33ad703) chore: track issue sweep for search and message controls - [`6c4d5a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6c4d5a59f2aa7b60c871fb5029efdaea4d36d05f) test: align deleted-card regression with all chat modes - [`da6cbed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/da6cbed4c16e832575f68cb8bd6ad9e53a72cbc2) test: exercise automatic backup disk-space refusal and recovery - [`3acccc2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3acccc21cde85e1718e26af4620cf9d654e07c6c) Merge branch 'staging' into fix/6087-automatic-backup-free-space - [`6c433f5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6c433f5133b6518c50f7cbe2f46c7ff2ef999a94) Merge branch 'staging' into fix/deleted-card-chat-membership-6084 ### 📊 Changes **21 files changed** (+756 additions, -166 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+10 -0) 📝 `docs/data/backup-and-restore.md` (+4 -0) 📝 `e2e/assigned-chat-sweep.e2e.ts` (+133 -0) 📝 `e2e/core-flows.e2e.ts` (+20 -2) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+182 -141) 📝 `packages/client/src/components/chat/ChatMessageSearch.tsx` (+5 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+8 -5) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+3 -3) 📝 `packages/client/src/components/chat/MessageActionButton.tsx` (+1 -1) 📝 `packages/client/src/hooks/use-generate.ts` (+12 -5) 📝 `packages/client/src/hooks/use-touch-folder-drag.ts` (+2 -0) 📝 `packages/client/src/localization/locales/en.json` (+6 -2) 📝 `packages/client/src/styles/globals.css` (+4 -0) 📝 `packages/server/src/routes/backup.routes.ts` (+52 -2) 📝 `packages/server/src/services/backup/automatic-backup-retention.ts` (+13 -0) 📝 `packages/server/src/services/storage/characters.storage.ts` (+5 -2) 📝 `scripts/regressions/assigned-chat-sweep.regression.ts` (+2 -2) ➕ `scripts/regressions/automatic-backup-free-space.regression.ts` (+109 -0) 📝 `scripts/regressions/automatic-backup-retention.regression.ts` (+20 -0) ➕ `scripts/regressions/character-delete-chat-membership.regression.ts` (+108 -0) _...and 1 more files_ </details> ### 📄 Description ## Linked issue Closes #6084 Closes #6087 Closes #6090 Closes #6092 Closes #6093 Closes #6094 Closes #6096 Closes #6098 ## Why this change Chat search needs to find numbered messages, Roleplay controls need to remain usable on mobile, and Illustrator needs to explain a decision that produces no image. This sweep also prevents automatic backups from filling a nearly full disk and removes stale character memberships after a card is deleted. ## What changed - Search accepts `#67` while preserving actual message numbers across hidden and older messages. - Roleplay action menus stay visible after a mobile tap, recipient controls share the action tray, and native tap flashes are suppressed. - Community and Field Notes shortcuts fit inside their widgets, including Firefox. - Illustrator activity distinguishes skipped, requested, generated, and unusable decisions and preserves the returned reason. Cadence still counts both user/persona and assistant/character messages; the interval schedules a decision, not a guaranteed image. - Mobile character handles prevent native scrolling, and character reordering disables the existing helper's edge scrolling for Chat Settings. Normal swiping outside the handle remains available. - Preserves the original commits from @SonaGat3's #6088 and @OneWayGondola's #6089, including the added backup-route proof and loading-state correction. Both original heads are ancestors of this branch, so merging this PR lands their patches together. ## Validation - `pnpm check` passes on the combined branch (TypeScript, ESLint, localization, formatting, and builds). The combined branch passed all 253 Node regressions. The final backup-metadata correction passes pnpm check and all three backup regressions; its CI is running. - Native mobile Chromium reproduced a 287 px Settings scroll while holding a character handle near the panel edge. The fix keeps the panel stationary, saves reordered IDs, cancels cleanly, and permits a normal swipe afterward. - The full CI matrix passed before the final backend-only metadata correction, including container build, security analysis, Node regressions, desktop Chromium, Android Chromium, and iPhone WebKit. The frontend is unchanged by that correction. - Targeted message search and Roleplay action checks passed in desktop Chromium, Android Chromium, and iPhone WebKit; desktop shell smoke checks passed. - Firefox reproduced clipped widget padding; the corrected widgets passed at desktop, tablet, and mobile widths in Firefox, Chromium, and WebKit. - Illustrator cadence and actual activity-formatting regressions passed, including mixed user/persona and assistant/character messages and skipped decisions. - The real Fastify automatic-backup route passed insufficient-space, previous-archive preservation, no-partial-ZIP, successful retry, and actual-archive-size boundary checks with isolated storage and a mocked free-space query. - Character deletion and assigned-chat regressions passed across Roleplay, Conversation, and Game. ### Manual verification - [ ] Manually verify Roleplay action menus and character reordering on a physical iPhone with the Docker-hosted app, including light and dark themes. - [ ] Manually verify Illustrator activity with a real model returning a skipped decision and with a working image backend. - [ ] Manually verify the automatic-backup error in Settings on a device with limited free space. ## Docs and release impact User-facing fixes are recorded in `CHANGELOG.md`. The backup guide update comes from #6088; its ten translated language packs are in companion #6097 targeting `docs-i18n`. No version bump. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Search chat history by message number, with result counts and navigation through older matches. * Illustrator activity now reports requested, generated, skipped, and invalid outcomes. * **Bug Fixes** * Character deletion now removes memberships across all chat types. * Automatic backups check available disk space before running and explain skipped backups. * Improved mobile character reordering and Roleplay action-menu behavior. * **UI Improvements** * Refined widget shortcut sizing and mobile tap interactions. * Chat message action menus remain correctly positioned while scrolling or resizing. <!-- 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:16:09 +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#7060
No description provided.