[PR #6756] [MERGED] fix: address assigned regex, image, mobile and build issues #7315

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

📋 Pull Request Information

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

Base: staging ← Head: codex/sept27-assigned-sweep


📝 Commits (10+)

  • 6038d75 docs: record assigned build and startup fixes
  • baf814f Merge branch 'staging' into codex/sept27-assigned-sweep
  • 60ec05e Merge branch 'staging' into codex/sept27-assigned-sweep
  • 8fd56e5 fix: complete assigned chat, regex, image and build improvements
  • 29fd6b4 Merge remote-tracking branch 'origin/codex/sept27-assigned-sweep' into codex/sept27-assigned-sweep
  • ccc8154 fix: keep historical illustration retry targets consistent
  • 0df67f4 fix: address selection and localization review feedback
  • 04223b2 fix: retain regex retry selection when switching modes
  • f933533 docs: use consistent notation for illustration ranges
  • f271303 fix: guard ranged illustrations after history lookup

📊 Changes

34 files changed (+1032 additions, -188 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 docs/chats/slash-commands.md (+3 -1)
📝 docs/extending/regex-scripts.md (+4 -0)
📝 docs/integrations/message-translation.md (+2 -0)
📝 docs/media/illustrator-agent.md (+8 -0)
➕ e2e/assigned-sept27.e2e.ts (+216 -0)
📝 e2e/prompt-controls.e2e.ts (+33 -2)
📝 packages/client/src/components/chat/ChatArea.tsx (+5 -1)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatInput.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+1 -1)
📝 packages/client/src/components/chat/ConversationInput.tsx (+35 -58)
📝 packages/client/src/components/chat/ConversationView.tsx (+1 -1)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+212 -101)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+8 -0)
📝 packages/client/src/hooks/use-generate.ts (+6 -1)
📝 packages/client/src/lib/slash-commands.ts (+34 -3)
📝 packages/client/src/localization/locales/en.json (+15 -2)
📝 packages/client/src/stores/ui.store.ts (+6 -0)
📝 packages/client/vite.config.ts (+3 -1)

...and 14 more files

📄 Description

Linked issue

Closes #6755
Closes #6752
Closes #6751
Closes #6748
Closes #6743
Closes #6732
Closes #6722

Why this change

Users need to replace large regex packs in one operation, control which generated images enter character galleries, inspect complete NovelAI prompts, translate Conversation drafts on mobile, and illustrate earlier Roleplay messages. Two assigned reports also identify build/startup failures. This PR handles the available assigned work while leaving contributor-owned implementations and PRs awaiting corrections alone.

What changed

  • Reuse the existing selection action bar, export handler and deletion API for regex multi-select, export and confirmed bulk deletion. Failed deletions remain selected for retry; unselected entries stay intact.
  • Add an enabled-by-default Settings → Generations → Image Generation toggle for automatic character/persona gallery saves. All generated-image save paths honor it. Chat images and explicit manual saves remain available; gallery membership does not duplicate or delete the underlying chat file.
  • Keep Translate draft available in Conversation's smiley menu → Tools, including mobile, independently of the optional composer shortcut and automatic translation.
  • Save NovelAI's final positive character captions alongside its scene/style prompt, separated by |, so chat and gallery inspection show the prompt that was sent.
  • Extend /illustrate with range=N or range=N-M using /goto message numbers, up to 200 stored messages. Resolve stable message IDs before generation, preserve them through prompt review, exclude hidden messages, and attach to the last visible selected message. Earlier ranges work across conversation/Advanced Memory boundaries; ordinary and typed-prompt requests retain their existing behavior.
  • Classify Vite vendor chunks using the dependency path, independent of checkout folder names. Allow 60 seconds for the restart regression's first boot, with a 90-second deadline for that lane only; normal restart deadlines stay unchanged.

Includes user-facing changelog entries and four updated guides. Companion #6757 updates all ten documentation packs, eleven UI packs, and the agent-reference translations requested in #6726.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Completed agent verification

  • pnpm install --frozen-lockfile and pnpm check passed after integrating current staging, in a checkout containing react. The original checkout-path build failure was reproduced before the fix.

  • pnpm version:check, pnpm regression:prompt, and the restart, slash-command, gallery-cascade, NovelAI-caption, historical-illustration and manual-agent-retry regression lanes passed.

  • Twelve focused Playwright cases passed across desktop Chromium, mobile Chromium and mobile WebKit: draft translation success/error, regex cancellation/partial failure/retry, gallery-setting persistence, and historical prompt-review resume after newer messages arrive. The seven-case desktop browser smoke suite also passed.

  • The production Docker image built, started and served / and /api/health successfully. No live paid image-provider request was made; provider contracts are covered with local HTTP fixtures.

  • Local CodeRabbit reviews completed, and the historical retry-target finding was fixed. Hosted feedback led to mutually exclusive preset/regex selection, a localized Tools label, and clearer range/Illustrator prompt wording. pnpm check, the slash-command lane and six affected browser cases passed after those corrections. After the temporary CLI quota reset, the final incremental local CodeRabbit review completed with no findings. The delayed-deletion regression also passed on all three browser targets. The hosted re-review of the latest commits is waiting for the shared review quota to reset. The reported missing Galician pack was rejected with the actual branch/API language inventory.

  • Final pre-merge review reproduced a concurrent ranged-command race: two delayed history lookups could start two illustrations. Commit f27130316 rechecks the existing per-chat busy flag immediately before starting generation. The focused regression fails before the fix and passes after it, including busy feedback and a subsequent successful command; pnpm check and the incremental local CodeRabbit review also pass (zero findings).

Claim boundaries and manual verification

Area Proof and negative controls Remaining manual verification
Bulk deletion Browser tests cancel deletion, inject a partial failure, retry it and preserve unselected/default entries. Manually verify a large imported regex pack and keyboard navigation in browser.
Gallery persistence Default-on, explicit-off and persisted-setting cases; route proof keeps the chat image/file while suppressing entity entries. Manually generate an illustration/selfie with a configured image connection and try an explicit gallery save.
Historical illustration Real retry route with local HTTP providers; earlier visible history, hidden/future exclusion, review/resume, user-only target, invalid IDs/order/size and ordinary latest-scene behavior. Manually illustrate an older range with the installed Illustrator package and inspect the attached image.
NovelAI prompt Final request captions, model caption limits, custom-body override and legacy/fallback cases. Manually inspect one newly generated live NovelAI image in chat and gallery.
Translation Composer action uses the input translation settings, replaces only the unsent draft, and preserves it on provider failure. Manually check the translated controls on a physical phone.
Build/startup Production build from a react checkout and local first-boot/restart proof. Windows-specific behavior is gated by the hosted Windows regression check, not claimed from the macOS run.

Human checkboxes intentionally remain unchecked. Automated browser interactions and screenshot inspection are recorded separately from the manual tasks above.

Docs and release impact

  • Updated docs and changelog as needed
  • Translated documentation on docs-i18n updated to match
  • Version/release files updated (only if this PR includes a version bump)

No version or storage-format change. Translations ship through the repository's docs-i18n branch in #6757.

UI evidence (if applicable)

Before/after screenshots: original PNG captures embedded in downloadable HTML comparisons for desktop light and mobile WebKit dark themes. Open a downloaded HTML file in a browser to view it. All screenshots use synthetic fixtures; no proof assets are committed to the repository.


🔄 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/6756 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept27-assigned-sweep` --- ### 📝 Commits (10+) - [`6038d75`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6038d75315a521b0a74244b158050d7c85b86815) docs: record assigned build and startup fixes - [`baf814f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/baf814fd29225ed1daaa19fad631684a35ce688e) Merge branch 'staging' into codex/sept27-assigned-sweep - [`60ec05e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/60ec05ee3988b74683eab2dbd69680f682d47011) Merge branch 'staging' into codex/sept27-assigned-sweep - [`8fd56e5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8fd56e586628c92aa474f90db22350f9c833715f) fix: complete assigned chat, regex, image and build improvements - [`29fd6b4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/29fd6b4352e8e42b59f49d38eca171601e8a5b54) Merge remote-tracking branch 'origin/codex/sept27-assigned-sweep' into codex/sept27-assigned-sweep - [`ccc8154`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ccc815443c225057dc96a61e1418c4947e45f931) fix: keep historical illustration retry targets consistent - [`0df67f4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0df67f424369bf304eaedeaf0a750544658346e4) fix: address selection and localization review feedback - [`04223b2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/04223b2f153958b53876b225db9d5382602580a1) fix: retain regex retry selection when switching modes - [`f933533`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f933533bbec868bfdd85f289a4eebd3b4f22dfda) docs: use consistent notation for illustration ranges - [`f271303`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f2713031631b3fbdad49d89e8a4805bea2ed625f) fix: guard ranged illustrations after history lookup ### 📊 Changes **34 files changed** (+1032 additions, -188 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `docs/chats/slash-commands.md` (+3 -1) 📝 `docs/extending/regex-scripts.md` (+4 -0) 📝 `docs/integrations/message-translation.md` (+2 -0) 📝 `docs/media/illustrator-agent.md` (+8 -0) ➕ `e2e/assigned-sept27.e2e.ts` (+216 -0) 📝 `e2e/prompt-controls.e2e.ts` (+33 -2) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+5 -1) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+35 -58) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+1 -1) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+212 -101) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+8 -0) 📝 `packages/client/src/hooks/use-generate.ts` (+6 -1) 📝 `packages/client/src/lib/slash-commands.ts` (+34 -3) 📝 `packages/client/src/localization/locales/en.json` (+15 -2) 📝 `packages/client/src/stores/ui.store.ts` (+6 -0) 📝 `packages/client/vite.config.ts` (+3 -1) _...and 14 more files_ </details> ### 📄 Description ## Linked issue Closes #6755 Closes #6752 Closes #6751 Closes #6748 Closes #6743 Closes #6732 Closes #6722 ## Why this change Users need to replace large regex packs in one operation, control which generated images enter character galleries, inspect complete NovelAI prompts, translate Conversation drafts on mobile, and illustrate earlier Roleplay messages. Two assigned reports also identify build/startup failures. This PR handles the available assigned work while leaving contributor-owned implementations and PRs awaiting corrections alone. ## What changed - Reuse the existing selection action bar, export handler and deletion API for regex multi-select, export and confirmed bulk deletion. Failed deletions remain selected for retry; unselected entries stay intact. - Add an enabled-by-default **Settings → Generations → Image Generation** toggle for automatic character/persona gallery saves. All generated-image save paths honor it. Chat images and explicit manual saves remain available; gallery membership does not duplicate or delete the underlying chat file. - Keep **Translate draft** available in Conversation's smiley menu → **Tools**, including mobile, independently of the optional composer shortcut and automatic translation. - Save NovelAI's final positive character captions alongside its scene/style prompt, separated by ` | `, so chat and gallery inspection show the prompt that was sent. - Extend `/illustrate` with `range=N` or `range=N-M` using `/goto` message numbers, up to 200 stored messages. Resolve stable message IDs before generation, preserve them through prompt review, exclude hidden messages, and attach to the last visible selected message. Earlier ranges work across conversation/Advanced Memory boundaries; ordinary and typed-prompt requests retain their existing behavior. - Classify Vite vendor chunks using the dependency path, independent of checkout folder names. Allow 60 seconds for the restart regression's first boot, with a 90-second deadline for that lane only; normal restart deadlines stay unchanged. Includes user-facing changelog entries and four updated guides. Companion #6757 updates all ten documentation packs, eleven UI packs, and the agent-reference translations requested in #6726. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Completed agent verification - `pnpm install --frozen-lockfile` and `pnpm check` passed after integrating current staging, in a checkout containing `react`. The original checkout-path build failure was reproduced before the fix. - `pnpm version:check`, `pnpm regression:prompt`, and the restart, slash-command, gallery-cascade, NovelAI-caption, historical-illustration and manual-agent-retry regression lanes passed. - Twelve focused Playwright cases passed across desktop Chromium, mobile Chromium and mobile WebKit: draft translation success/error, regex cancellation/partial failure/retry, gallery-setting persistence, and historical prompt-review resume after newer messages arrive. The seven-case desktop browser smoke suite also passed. - The production Docker image built, started and served `/` and `/api/health` successfully. No live paid image-provider request was made; provider contracts are covered with local HTTP fixtures. - Local CodeRabbit reviews completed, and the historical retry-target finding was fixed. Hosted feedback led to mutually exclusive preset/regex selection, a localized Tools label, and clearer range/Illustrator prompt wording. `pnpm check`, the slash-command lane and six affected browser cases passed after those corrections. After the temporary CLI quota reset, the final incremental local CodeRabbit review completed with no findings. The delayed-deletion regression also passed on all three browser targets. The hosted re-review of the latest commits is waiting for the shared review quota to reset. The reported missing Galician pack was rejected with the actual branch/API language inventory. - Final pre-merge review reproduced a concurrent ranged-command race: two delayed history lookups could start two illustrations. Commit `f27130316` rechecks the existing per-chat busy flag immediately before starting generation. The focused regression fails before the fix and passes after it, including busy feedback and a subsequent successful command; `pnpm check` and the incremental local CodeRabbit review also pass (zero findings). ### Claim boundaries and manual verification | Area | Proof and negative controls | Remaining manual verification | | --- | --- | --- | | Bulk deletion | Browser tests cancel deletion, inject a partial failure, retry it and preserve unselected/default entries. | Manually verify a large imported regex pack and keyboard navigation in browser. | | Gallery persistence | Default-on, explicit-off and persisted-setting cases; route proof keeps the chat image/file while suppressing entity entries. | Manually generate an illustration/selfie with a configured image connection and try an explicit gallery save. | | Historical illustration | Real retry route with local HTTP providers; earlier visible history, hidden/future exclusion, review/resume, user-only target, invalid IDs/order/size and ordinary latest-scene behavior. | Manually illustrate an older range with the installed Illustrator package and inspect the attached image. | | NovelAI prompt | Final request captions, model caption limits, custom-body override and legacy/fallback cases. | Manually inspect one newly generated live NovelAI image in chat and gallery. | | Translation | Composer action uses the input translation settings, replaces only the unsent draft, and preserves it on provider failure. | Manually check the translated controls on a physical phone. | | Build/startup | Production build from a `react` checkout and local first-boot/restart proof. | Windows-specific behavior is gated by the hosted Windows regression check, not claimed from the macOS run. | Human checkboxes intentionally remain unchecked. Automated browser interactions and screenshot inspection are recorded separately from the manual tasks above. ## Docs and release impact - [ ] Updated docs and changelog as needed - [ ] Translated documentation on `docs-i18n` updated to match - [ ] Version/release files updated (only if this PR includes a version bump) No version or storage-format change. Translations ship through the repository's `docs-i18n` branch in #6757. ## UI evidence (if applicable) [Before/after screenshots](https://gist.github.com/SpicyMarinara/c5bb309dec47f409bff876f7ecc78efe): original PNG captures embedded in downloadable HTML comparisons for desktop light and mobile WebKit dark themes. Open a downloaded HTML file in a browser to view it. All screenshots use synthetic fixtures; no proof assets are committed to the repository. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:33 +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#7315
No description provided.