[PR #5865] [MERGED] Issue Sweep: assigned chat, settings, import, and image fixes #6973

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

📋 Pull Request Information

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

Base: staging ← Head: fix/assigned-issue-sweep-sep5


📝 Commits (10+)

  • 9bf4393 chore: track assigned issue sweep
  • 8dce5ba fix: sweep reasoning history, prompt macros, and upload preflight
  • ad7ff26 feat(i18n): download community UI language packs on demand
  • a8658b8 fix(agents): support manual-only Illustrator cadence
  • 7fe0af7 fix(images): scope Illustrator references to intended characters
  • bc2e126 fix(images): route OpenRouter image-only models to Images API
  • 8c35078 fix: repair chat issue sweep regressions
  • b90bbf3 fix(images): preserve model dimensions and recover Flux bounds
  • de4716b test: exercise saved reasoning controls and document history limits
  • 683fd0b test: keep denied and interrupted uploads behind preflight

📊 Changes

104 files changed (+4097 additions, -19896 deletions)

View changed files

📝 CHANGELOG.md (+21 -0)
📝 CONTRIBUTING.md (+11 -2)
📝 docs/CONFIGURATION.md (+1 -1)
📝 docs/UPGRADING.md (+5 -0)
📝 docs/agents/built-in-agents.md (+2 -0)
📝 docs/development/localization.md (+34 -22)
📝 docs/media/illustrator-agent.md (+2 -0)
📝 docs/prompts/generation-parameters.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+134 -2)
➕ e2e/illustrator-manual-cadence.e2e.ts (+150 -0)
➕ e2e/issue-sweep-chat.e2e.ts (+317 -0)
➕ e2e/issue-sweep-settings.e2e.ts (+136 -0)
➕ e2e/preset-regex.e2e.ts (+250 -0)
➕ e2e/ui-language-fixtures.ts (+67 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+21 -6)
➕ packages/client/src/components/agents/AgentTaskStatus.tsx (+112 -0)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+15 -6)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+47 -10)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+18 -5)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+8 -7)

...and 80 more files

📄 Description

Linked issue

Closes #5864
Closes #5862
Closes #5861
Closes #5860
Closes #5859
Closes #5858
Closes #5843
Closes #5827
Closes #5814
Closes #5813
Closes #5796
Closes #5795
Closes #5785
Closes #5774
Closes #5750

Also supplies the Engine-owned fix for Pasta-Devs/Marinara-Agents#629, paired with Pasta-Devs/Marinara-Agents#720.

Why this change

Maintainer-requested sweep of open issues assigned to SpicyMarinara that are not already addressed by a PR. All issue bodies and comments were read before implementation. Fix the reported paths with existing settings, renderers, scheduling, provider adapters, and download machinery.

What changed

Issues User-facing change
#5843, #5858, #5796 Normalize persona crop serialization without restyling historical snapshots; preserve padded times as prose; commit page-size edits before refetching the open transcript.
#5814, #5795 Repaint paused weather after viewport changes. /goto, /jump, and /scroll already passed on staging; add settled navigation regressions rather than speculative code.
#5864, #5813, #5785 Add the corrected “I will now proceed” placeholder only; resolve {{original}} without changing saved cards; save a past-reasoning count (default 1, 0 all), retaining provider-native metadata and local custom-tag thinking.
#5774 Reuse preset regex bindings/editor, inherit a preset Scoped Regex default, and retain the existing explicit per-chat override.
#5860 Add content-free per-agent phase/progress/usage/TTFT/elapsed status in the existing Roleplay Agents & Actions menu. Incoming chunks are not mislabelled as exact tokens; shared batch usage is labelled. Debug prompt logging remains opt-in.
#5859 Check the same CSRF gate with a body-free POST before multipart uploads. The real upload remains independently protected.
#5861, #5862, #5750 Preserve non-GPT image sizes, retry one explicit FLUX.2 dimension rejection, scope passive avatar matching to the chat, and route images-only OpenRouter models to the existing Images API adapter.
#5827 Download/refresh community UI packs from docs-i18n/ui/ on demand; preserve installed packs offline and fall back to English when missing. Remove the bundled community packs in this same change.
Agents #629 Reuse Run Interval 0 for manual-only Illustrator scheduling; keep manual Gallery actions and other agents' cadence intact.

The large deletion count is the approved move of eleven translation files, not removal of language support. The content companion #5866 is merged and published Polish, German, and Arabic downloads were verified through the real pinning/hash-checking helper. English stays in Engine. No new dependencies or release-version changes.

Excluded/untouched: #5836 is covered by draft #5837, #5833 by draft #5835, and #5856 overlaps draft #5771. #5834 needs the unfinished English source in #5835 and remains pending. Draft #5747 concerns modalities, not #5750's endpoint routing. No unrelated draft or main branch is changed.

Weather credit: adapted the existing community resize patch from luma-inibitor's pr/weather-resize-repaint branch (commit 31b969b), linked in #5814.

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

Executed local proof:

  • Final review-fix head e309014e6: pnpm check passed (localization, formatting, lint/types, E2E types, production build), incorporating the independently merged staging shutdown fix #5863.
  • pnpm regression:prompt passed (prompt, attachments, context fitting). Thirteen focused regressions also passed: agent progress, UI packs, manual cadence, Illustrator reference scope, OpenRouter image endpoint, image dimension limits, chat snapshots/time prose, paused weather repaint, past reasoning, native Responses tool-round reasoning, multipart preflight/macros, preset regex defaults, and provider compatibility.
  • Combined chat/settings/cadence Playwright run: 23 passed, one intentional skip for the desktop project on a mobile-only weather case.
  • Final integrated reasoning/preset-regex/language/progress Playwright run: 21 passed across desktop Chromium, mobile Chromium, and mobile WebKit, including saved values after reload, negative download paths, explicit chat overrides, and preset changes.
  • Native Responses streaming and non-streaming three-tool-round payloads were exercised through a local mock HTTP endpoint. Signed/encrypted reasoning stays with its original output; strict roles and full plaintext reasoning budgets have negative controls.
  • Published Polish, German, and Arabic downloads passed the real pinned/hash-validating helper after #5866 merged.
  • Review follow-ups also cover paused-query page-size changes (real-hook browser proof, 3/3), character-identity crop normalization, literal character macro replacement text, reasoning-only turns, full structured replay estimates, and bounded provider-session rejection filtering. Saved reasoning is never deleted. The latter is deliberately session/model scoped (256 entries); recreating a provider may retry an old rejected item.
  • The record-ID Illustrator editor now also persists typed and stepped interval 0 (3/3 browser projects). The paused/hidden weather fallback recreates particles after deferred resize using CSS dimensions, preserving type/count; actual lifecycle regressions cover scales 1 and 0.5, and both mobile weather browser projects pass.
  • Final-head CodeRabbit review completed on e309014e6. All eight original inline findings are fixed/resolved; the additional duplicate-declaration finding was disproved against the exact GitHub blob and a fresh passing regression run, then explicitly withdrawn/resolved by CodeRabbit.

Final-head browser CI initially had two timing failures: the unchanged WebKit editor test scrolled before deferred textarea sizing, and the desktop agent-progress test injected state before the lazy menu loaded (its context-destruction cause is not proven). Both exact tests passed 5/5 unchanged local repeats. A single unchanged rerun of the failed CI jobs passed, including both precise tests and their aggregate gates; no assertions were weakened or skipped. Trace details and the corrected reload interpretation are recorded in the PR discussion.

Final GitHub result on e309014e6: required checks, full Node regressions, all ten browser shards and their aggregate gates, container build, and both CodeQL analyses passed. Release regression matrix, successful attempt 2. CodeRabbit completed the exact-head review and all nine inline threads are resolved.

Earlier draft CI browser failures were all the old settings fixture clicking a hidden checkbox. All six failure traces were inspected; the visible-label click fix is now included and both mode tests pass on all three local projects. Current CI and CodeRabbit remain merge gates. Browser fixtures use synthetic data; no paid model requests were made.

Local full-suite qualification: pnpm regression:node reached 201/202 passing after the CI-found integration repairs. The remaining macOS failure is storage-writer-lock.regression.ts:314, which constructs a version-4 lease without a boot ID on this platform. The identical failure was reproduced in an untouched detached staging checkout (498756ec9) with a fresh dependency install. No storage-lock production code or that fixture is changed by this sweep; Linux CI passed that regression. The three stale source assertions and Mari preset-creation integration failure from earlier CI are repaired.

Manual verification notes

Manually verify physical Android keyboard/zoom and floating-widget rendering. Emulated mobile viewport/worker repaint is tested; a real phone is not claimed. Manually verify live-provider image generation and real Illustrator package installation/manual Gallery output. Payload routing and scheduling are tested locally; current provider availability and paid output quality are not claimed.

For reasoning, locally verify signed/encrypted metadata stays paired with its original assistant/tool output, exclusion remains default-on, hidden/ineligible messages do not consume the visible-history allowance, and 0/all survives reload without deleting saved thoughts. For imports, denial/abort/timeout before preflight sends no upload bytes; a successful preflight does not authorize a later rejected upload.

Primary provider references: OpenAI reasoning replay, OpenRouter image generation, and NanoGPT Flux 2 Pro metadata. NanoGPT's advertised 1536px differs from the reported backend rejection, so successful larger requests are not blanket-capped.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

English guides and Unreleased changelog updated. Translated documentation follow-up: #5867. The language-pack upgrade deliberately falls back to English once until the user reselects/downloads their language, as approved in #5827. No main promotion or version bump.

UI evidence (if applicable)

Synthetic before/after and new-controls screenshots, with proof boundaries in the gist README. No private user screenshots or chat contents are published. All checkboxes remain human verification to-dos.


🔄 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/5865 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/5/2026 **Status:** ✅ Merged **Merged:** 9/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/assigned-issue-sweep-sep5` --- ### 📝 Commits (10+) - [`9bf4393`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9bf4393c49161ff3946ac5f380a393675101e0c7) chore: track assigned issue sweep - [`8dce5ba`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8dce5ba99e222e2a264175a49c46c9334a173e14) fix: sweep reasoning history, prompt macros, and upload preflight - [`ad7ff26`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ad7ff269961f4fd2799ca34140b5b8f734c4d1c6) feat(i18n): download community UI language packs on demand - [`a8658b8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a8658b8539abeec2cedc879203ffbde4f2f63198) fix(agents): support manual-only Illustrator cadence - [`7fe0af7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7fe0af7f5a588a755ab61c9be2c0674b12f8afef) fix(images): scope Illustrator references to intended characters - [`bc2e126`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bc2e126e0eb4b0d706495b76db4013e1402ab44a) fix(images): route OpenRouter image-only models to Images API - [`8c35078`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8c3507812ee2465fc48a101f11ea3d7dda83195a) fix: repair chat issue sweep regressions - [`b90bbf3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b90bbf322bf3e7d05e5032c62cf41bbf152237f3) fix(images): preserve model dimensions and recover Flux bounds - [`de4716b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/de4716bbdb9371131d6aa5603bac5c8a1f58fca2) test: exercise saved reasoning controls and document history limits - [`683fd0b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/683fd0bfca4e8fc92a4225bd74647065206acf6f) test: keep denied and interrupted uploads behind preflight ### 📊 Changes **104 files changed** (+4097 additions, -19896 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+21 -0) 📝 `CONTRIBUTING.md` (+11 -2) 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `docs/UPGRADING.md` (+5 -0) 📝 `docs/agents/built-in-agents.md` (+2 -0) 📝 `docs/development/localization.md` (+34 -22) 📝 `docs/media/illustrator-agent.md` (+2 -0) 📝 `docs/prompts/generation-parameters.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+134 -2) ➕ `e2e/illustrator-manual-cadence.e2e.ts` (+150 -0) ➕ `e2e/issue-sweep-chat.e2e.ts` (+317 -0) ➕ `e2e/issue-sweep-settings.e2e.ts` (+136 -0) ➕ `e2e/preset-regex.e2e.ts` (+250 -0) ➕ `e2e/ui-language-fixtures.ts` (+67 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+21 -6) ➕ `packages/client/src/components/agents/AgentTaskStatus.tsx` (+112 -0) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+15 -6) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+47 -10) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+18 -5) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+8 -7) _...and 80 more files_ </details> ### 📄 Description ## Linked issue Closes #5864 Closes #5862 Closes #5861 Closes #5860 Closes #5859 Closes #5858 Closes #5843 Closes #5827 Closes #5814 Closes #5813 Closes #5796 Closes #5795 Closes #5785 Closes #5774 Closes #5750 Also supplies the Engine-owned fix for Pasta-Devs/Marinara-Agents#629, paired with Pasta-Devs/Marinara-Agents#720. ## Why this change Maintainer-requested sweep of open issues assigned to SpicyMarinara that are not already addressed by a PR. All issue bodies and comments were read before implementation. Fix the reported paths with existing settings, renderers, scheduling, provider adapters, and download machinery. ## What changed | Issues | User-facing change | |---|---| | #5843, #5858, #5796 | Normalize persona crop serialization without restyling historical snapshots; preserve padded times as prose; commit page-size edits before refetching the open transcript. | | #5814, #5795 | Repaint paused weather after viewport changes. `/goto`, `/jump`, and `/scroll` already passed on staging; add settled navigation regressions rather than speculative code. | | #5864, #5813, #5785 | Add the corrected “I will now proceed” placeholder only; resolve `{{original}}` without changing saved cards; save a past-reasoning count (default 1, 0 all), retaining provider-native metadata and local custom-tag thinking. | | #5774 | Reuse preset regex bindings/editor, inherit a preset Scoped Regex default, and retain the existing explicit per-chat override. | | #5860 | Add content-free per-agent phase/progress/usage/TTFT/elapsed status in the existing Roleplay Agents & Actions menu. Incoming chunks are not mislabelled as exact tokens; shared batch usage is labelled. Debug prompt logging remains opt-in. | | #5859 | Check the same CSRF gate with a body-free POST before multipart uploads. The real upload remains independently protected. | | #5861, #5862, #5750 | Preserve non-GPT image sizes, retry one explicit FLUX.2 dimension rejection, scope passive avatar matching to the chat, and route images-only OpenRouter models to the existing Images API adapter. | | #5827 | Download/refresh community UI packs from `docs-i18n/ui/` on demand; preserve installed packs offline and fall back to English when missing. Remove the bundled community packs in this same change. | | Agents #629 | Reuse Run Interval 0 for manual-only Illustrator scheduling; keep manual Gallery actions and other agents' cadence intact. | The large deletion count is the approved move of eleven translation files, not removal of language support. The content companion #5866 is merged and published Polish, German, and Arabic downloads were verified through the real pinning/hash-checking helper. English stays in Engine. No new dependencies or release-version changes. Excluded/untouched: #5836 is covered by draft #5837, #5833 by draft #5835, and #5856 overlaps draft #5771. #5834 needs the unfinished English source in #5835 and remains pending. Draft #5747 concerns modalities, not #5750's endpoint routing. No unrelated draft or main branch is changed. Weather credit: adapted the existing community resize patch from luma-inibitor's `pr/weather-resize-repaint` branch (commit `31b969b`), linked in #5814. ## 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` Executed local proof: - Final review-fix head `e309014e6`: `pnpm check` passed (localization, formatting, lint/types, E2E types, production build), incorporating the independently merged staging shutdown fix #5863. - `pnpm regression:prompt` passed (prompt, attachments, context fitting). Thirteen focused regressions also passed: agent progress, UI packs, manual cadence, Illustrator reference scope, OpenRouter image endpoint, image dimension limits, chat snapshots/time prose, paused weather repaint, past reasoning, native Responses tool-round reasoning, multipart preflight/macros, preset regex defaults, and provider compatibility. - Combined chat/settings/cadence Playwright run: 23 passed, one intentional skip for the desktop project on a mobile-only weather case. - Final integrated reasoning/preset-regex/language/progress Playwright run: 21 passed across desktop Chromium, mobile Chromium, and mobile WebKit, including saved values after reload, negative download paths, explicit chat overrides, and preset changes. - Native Responses streaming and non-streaming three-tool-round payloads were exercised through a local mock HTTP endpoint. Signed/encrypted reasoning stays with its original output; strict roles and full plaintext reasoning budgets have negative controls. - Published Polish, German, and Arabic downloads passed the real pinned/hash-validating helper after #5866 merged. - Review follow-ups also cover paused-query page-size changes (real-hook browser proof, 3/3), character-identity crop normalization, literal character macro replacement text, reasoning-only turns, full structured replay estimates, and bounded provider-session rejection filtering. Saved reasoning is never deleted. The latter is deliberately session/model scoped (256 entries); recreating a provider may retry an old rejected item. - The record-ID Illustrator editor now also persists typed and stepped interval 0 (3/3 browser projects). The paused/hidden weather fallback recreates particles after deferred resize using CSS dimensions, preserving type/count; actual lifecycle regressions cover scales 1 and 0.5, and both mobile weather browser projects pass. - Final-head CodeRabbit review completed on `e309014e6`. All eight original inline findings are fixed/resolved; the additional duplicate-declaration finding was disproved against the exact GitHub blob and a fresh passing regression run, then explicitly withdrawn/resolved by CodeRabbit. Final-head browser CI initially had two timing failures: the unchanged WebKit editor test scrolled before deferred textarea sizing, and the desktop agent-progress test injected state before the lazy menu loaded (its context-destruction cause is not proven). Both exact tests passed 5/5 unchanged local repeats. A single unchanged rerun of the failed CI jobs passed, including both precise tests and their aggregate gates; no assertions were weakened or skipped. Trace details and the corrected reload interpretation are recorded in the PR discussion. Final GitHub result on `e309014e6`: required checks, full Node regressions, all ten browser shards and their aggregate gates, container build, and both CodeQL analyses passed. [Release regression matrix, successful attempt 2](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/33967246869). CodeRabbit completed the exact-head review and all nine inline threads are resolved. Earlier draft CI browser failures were all the old settings fixture clicking a hidden checkbox. All six failure traces were inspected; the visible-label click fix is now included and both mode tests pass on all three local projects. Current CI and CodeRabbit remain merge gates. Browser fixtures use synthetic data; no paid model requests were made. Local full-suite qualification: `pnpm regression:node` reached 201/202 passing after the CI-found integration repairs. The remaining macOS failure is `storage-writer-lock.regression.ts:314`, which constructs a version-4 lease without a boot ID on this platform. The identical failure was reproduced in an untouched detached staging checkout (`498756ec9`) with a fresh dependency install. No storage-lock production code or that fixture is changed by this sweep; Linux CI passed that regression. The three stale source assertions and Mari preset-creation integration failure from earlier CI are repaired. ### Manual verification notes Manually verify physical Android keyboard/zoom and floating-widget rendering. Emulated mobile viewport/worker repaint is tested; a real phone is not claimed. Manually verify live-provider image generation and real Illustrator package installation/manual Gallery output. Payload routing and scheduling are tested locally; current provider availability and paid output quality are not claimed. For reasoning, locally verify signed/encrypted metadata stays paired with its original assistant/tool output, exclusion remains default-on, hidden/ineligible messages do not consume the visible-history allowance, and 0/all survives reload without deleting saved thoughts. For imports, denial/abort/timeout before preflight sends no upload bytes; a successful preflight does not authorize a later rejected upload. Primary provider references: [OpenAI reasoning replay](https://developers.openai.com/api/docs/guides/reasoning#preserve-reasoning-without-stored-responses), [OpenRouter image generation](https://openrouter.ai/docs/guides/overview/multimodal/image-generation), and [NanoGPT Flux 2 Pro metadata](https://cake.nano-gpt.com/models/image/flux-2-pro). NanoGPT's advertised 1536px differs from the reported backend rejection, so successful larger requests are not blanket-capped. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) English guides and Unreleased changelog updated. Translated documentation follow-up: #5867. The language-pack upgrade deliberately falls back to English once until the user reselects/downloads their language, as approved in #5827. No main promotion or version bump. ## UI evidence (if applicable) [Synthetic before/after and new-controls screenshots](https://gist.github.com/SpicyMarinara/4d095268a31224062d3592320c33d24a), with proof boundaries in the gist README. No private user screenshots or chat contents are published. All checkboxes remain human verification to-dos. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:15:23 +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#6973
No description provided.