[PR #4747] [MERGED] Fix assigned prompt, provider, image, and Game regressions #6485

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4740-4746


📝 Commits (4)

  • e0616e6 Start assigned issue sweep
  • 03cdaad fix: resolve assigned prompt and provider regressions
  • c932a3c fix: apply CodeRabbit review hardening
  • c2e3eb7 fix: finish CodeRabbit review hardening

📊 Changes

21 files changed (+650 additions, -129 deletions)

View changed files

📝 CHANGELOG.md (+7 -0)
📝 e2e/core-flows.e2e.ts (+78 -0)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+1 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+33 -18)
📝 packages/client/src/lib/chat-attachment-images.ts (+89 -0)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/client/src/styles/globals.css (+14 -0)
📝 packages/server/src/routes/game.routes.ts (+8 -92)
📝 packages/server/src/routes/generate.routes.ts (+16 -2)
📝 packages/server/src/services/capability-packages/capability-embedding.service.ts (+27 -0)
📝 packages/server/src/services/capability-packages/capability-module-runtime.service.ts (+13 -5)
📝 packages/server/src/services/game/npc-avatar-utils.ts (+143 -0)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+1 -2)
📝 packages/server/src/services/memory-recall-embedding.ts (+14 -0)
📝 packages/server/src/services/memory-recall.ts (+2 -0)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+7 -5)
📝 packages/server/src/services/prompt/assembler.ts (+6 -1)
📝 packages/shared/src/constants/model-lists.ts (+31 -2)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+38 -1)
📝 scripts/regressions/prompt.regression.ts (+75 -0)

...and 1 more files

📄 Description

Linked issues

Closes #4740
Closes #4741
Closes #4742
Closes #4743
Closes #4744
Closes #4745
Closes #4746

Why this change

Seven assigned regressions affected prompt correctness, current model limits, OpenRouter caching, Chromium dropdown readability, NovelAI style-plate stability, Android-compatible capability embeddings, and Game portrait reuse. Each fix is kept narrow and shares existing Engine helpers where possible.

What changed

  • Preserve explicit empty Boolean and multi-select preset values while retaining the legacy fallback for missing selections.
  • Resolve current DeepSeek, MiMo, GLM, and Kimi limits through NanoGPT, OpenRouter, and custom OAI-compatible model IDs; stop Professor Mari before executing incomplete tool calls when output is truncated.
  • Send explicit OpenRouter cache-control markers to every compatible selected model and correct the connection editor guidance.
  • Theme native Connection and Preset options in new chat setup wizards for Chromium.
  • Decode, resize, and bound NovelAI style plates before storing them in editor state.
  • Resolve capability-package embeddings from the configured agent connection, with stable vector-space IDs and the existing local MiniLM fallback.
  • Reuse fuzzy-matched avatars from the full Character library in the Character Tracker generation path as well as the Game scene path.
  • Add one user-facing changelog entry for every fixed issue.

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

Automated evidence

  • pnpm check
  • pnpm localization:check
  • pnpm regression:providers
  • pnpm regression:prompt
  • LOG_LEVEL=silent pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts
  • Desktop Chromium focused upload and setup-wizard Playwright regressions: 2 passed
  • Full pnpm smoke:ui: 201 passed and 100 viewport skips; one unrelated suite-order mobile composer timeout passed on its immediate focused rerun

Manual verification notes

Manual verification still requested for the Windows native select popup and a real NovelAI V4.5 style-plate request. All checklist boxes remain intentionally unchecked for human verification.

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] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

No user-facing documentation or release metadata changed. CHANGELOG.md is updated under [Unreleased].

UI evidence (if applicable)

Automated Chromium coverage verifies that a near-limit style-plate upload keeps the editor mounted with its preview visible, and that wizard options resolve to the same themed colors as their native selects.

Summary by CodeRabbit

  • New Features

    • Added support for additional DeepSeek, MiMo, Moonshot, and Z.AI models.
    • Added broader model discovery for compatible providers and aggregators.
    • Enabled prompt caching for compatible OpenRouter models.
    • Added remote embedding-source selection for capability packages.
    • Improved avatar reuse during character and game portrait generation.
  • Bug Fixes

    • Preserved explicitly empty Boolean and multi-select prompt values.
    • Prevented tool calls after output limits are reached.
    • Improved NovelAI style-plate uploads and image safety validation.
    • Fixed setup-wizard dropdown readability in dark and light themes.
    • Improved avatar matching for titled or varied character names.

🔄 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/4747 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/8/2026 **Status:** ✅ Merged **Merged:** 8/8/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4740-4746` --- ### 📝 Commits (4) - [`e0616e6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e0616e6d563f224852a3c7cb4fddaa96c317ff63) Start assigned issue sweep - [`03cdaad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03cdaad62f6dda3bc28a5a647a3daaaa9618afae) fix: resolve assigned prompt and provider regressions - [`c932a3c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c932a3c24d0264e39e8acaf96e6c1c234af982f0) fix: apply CodeRabbit review hardening - [`c2e3eb7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c2e3eb74948bcdc78ab6ab4f827d8f38d47c365a) fix: finish CodeRabbit review hardening ### 📊 Changes **21 files changed** (+650 additions, -129 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -0) 📝 `e2e/core-flows.e2e.ts` (+78 -0) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+1 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+33 -18) 📝 `packages/client/src/lib/chat-attachment-images.ts` (+89 -0) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/client/src/styles/globals.css` (+14 -0) 📝 `packages/server/src/routes/game.routes.ts` (+8 -92) 📝 `packages/server/src/routes/generate.routes.ts` (+16 -2) 📝 `packages/server/src/services/capability-packages/capability-embedding.service.ts` (+27 -0) 📝 `packages/server/src/services/capability-packages/capability-module-runtime.service.ts` (+13 -5) 📝 `packages/server/src/services/game/npc-avatar-utils.ts` (+143 -0) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+1 -2) 📝 `packages/server/src/services/memory-recall-embedding.ts` (+14 -0) 📝 `packages/server/src/services/memory-recall.ts` (+2 -0) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+7 -5) 📝 `packages/server/src/services/prompt/assembler.ts` (+6 -1) 📝 `packages/shared/src/constants/model-lists.ts` (+31 -2) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+38 -1) 📝 `scripts/regressions/prompt.regression.ts` (+75 -0) _...and 1 more files_ </details> ### 📄 Description ## Linked issues Closes #4740 Closes #4741 Closes #4742 Closes #4743 Closes #4744 Closes #4745 Closes #4746 ## Why this change Seven assigned regressions affected prompt correctness, current model limits, OpenRouter caching, Chromium dropdown readability, NovelAI style-plate stability, Android-compatible capability embeddings, and Game portrait reuse. Each fix is kept narrow and shares existing Engine helpers where possible. ## What changed - Preserve explicit empty Boolean and multi-select preset values while retaining the legacy fallback for missing selections. - Resolve current DeepSeek, MiMo, GLM, and Kimi limits through NanoGPT, OpenRouter, and custom OAI-compatible model IDs; stop Professor Mari before executing incomplete tool calls when output is truncated. - Send explicit OpenRouter cache-control markers to every compatible selected model and correct the connection editor guidance. - Theme native Connection and Preset options in new chat setup wizards for Chromium. - Decode, resize, and bound NovelAI style plates before storing them in editor state. - Resolve capability-package embeddings from the configured agent connection, with stable vector-space IDs and the existing local MiniLM fallback. - Reuse fuzzy-matched avatars from the full Character library in the Character Tracker generation path as well as the Game scene path. - Add one user-facing changelog entry for every fixed issue. ## 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` ### Automated evidence - `pnpm check` - `pnpm localization:check` - `pnpm regression:providers` - `pnpm regression:prompt` - `LOG_LEVEL=silent pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts` - Desktop Chromium focused upload and setup-wizard Playwright regressions: 2 passed - Full `pnpm smoke:ui`: 201 passed and 100 viewport skips; one unrelated suite-order mobile composer timeout passed on its immediate focused rerun ### Manual verification notes Manual verification still requested for the Windows native select popup and a real NovelAI V4.5 style-plate request. All checklist boxes remain intentionally unchecked for human verification. ## 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] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) No user-facing documentation or release metadata changed. `CHANGELOG.md` is updated under `[Unreleased]`. ## UI evidence (if applicable) Automated Chromium coverage verifies that a near-limit style-plate upload keeps the editor mounted with its preview visible, and that wizard options resolve to the same themed colors as their native selects. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for additional DeepSeek, MiMo, Moonshot, and Z.AI models. * Added broader model discovery for compatible providers and aggregators. * Enabled prompt caching for compatible OpenRouter models. * Added remote embedding-source selection for capability packages. * Improved avatar reuse during character and game portrait generation. * **Bug Fixes** * Preserved explicitly empty Boolean and multi-select prompt values. * Prevented tool calls after output limits are reached. * Improved NovelAI style-plate uploads and image safety validation. * Fixed setup-wizard dropdown readability in dark and light themes. * Improved avatar matching for titled or varied character names. <!-- 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:10:51 +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#6485
No description provided.