[PR #2890] [MERGED] [codex] Fix issue queue regressions #5778

Closed
opened 2026-10-22 04:19:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: codex/clear-github-issues-2886-2889


📝 Commits (2)

  • 89eb9ca Fix issue queue regressions
  • d0a8b6f Batch Gemini embedding requests

📊 Changes

7 files changed (+215 additions, -10 deletions)

View changed files

📝 CHANGELOG.md (+9 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+1 -1)
📝 packages/server/src/routes/generate.routes.ts (+1 -0)
📝 packages/server/src/routes/generate/dry-run-route.ts (+1 -0)
📝 packages/server/src/services/llm/providers/google.provider.ts (+118 -7)
📝 packages/server/src/services/prompt/assembler.ts (+3 -0)
📝 scripts/regressions/prompt.regression.ts (+82 -2)

📄 Description

Summary

  • Add native Gemini/Vertex embedding support through Gemini embedContent for lorebook vectorization and memory recall.
  • Make Professor Mari restart delete home-chat messages only after workspace reset succeeds.
  • Keep preset marker context for impersonation while skipping regular preset instructions that can conflict with /impersonate.
  • Update CHANGELOG with the fixed issue notes.

Why

These fixes clear the reported GitHub issue queue for #2889, #2887, and #2886. The root causes were a Google provider embedding stub, destructive restart ordering in the home Professor Mari chat, and preset assembly reusing assistant-oriented regular prompt sections during user impersonation.

Validation

  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint
  • pnpm regression:prompt
  • pnpm check

Manual verification

  • Manually verify Gemini embedding models can be selected and used for memory/lorebook embeddings.
  • Manually verify Professor Mari /restart and Restart button still clear the home chat after a successful workspace reset.
  • Manually verify /impersonate in a preset-driven roleplay chat does not include regular assistant-role preset instructions.

Addresses #2889, #2887, #2886.

Summary by CodeRabbit

  • New Features

    • Added native Gemini embedding support for Google/Vertex connections.
  • Bug Fixes

    • Fixed impersonation/preset prompt contamination by ensuring impersonation-aware assembly only includes marker preset sections.
    • Prevented chat history loss by deleting chat messages only after workspace reset succeeds.
    • Improved restart sequencing to reduce message loss during reset.
  • Tests

    • Added regression coverage verifying impersonation skips regular preset instructions while keeping marker-based content.

🔄 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/2890 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/28/2026 **Status:** ✅ Merged **Merged:** 6/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/clear-github-issues-2886-2889` --- ### 📝 Commits (2) - [`89eb9ca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/89eb9caa377262937de3e5e3b53ea12eb03463ff) Fix issue queue regressions - [`d0a8b6f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d0a8b6fe7fc1c9ba5f45624cecabb0370971eb7f) Batch Gemini embedding requests ### 📊 Changes **7 files changed** (+215 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+9 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+1 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+1 -0) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+1 -0) 📝 `packages/server/src/services/llm/providers/google.provider.ts` (+118 -7) 📝 `packages/server/src/services/prompt/assembler.ts` (+3 -0) 📝 `scripts/regressions/prompt.regression.ts` (+82 -2) </details> ### 📄 Description ## Summary - Add native Gemini/Vertex embedding support through Gemini embedContent for lorebook vectorization and memory recall. - Make Professor Mari restart delete home-chat messages only after workspace reset succeeds. - Keep preset marker context for impersonation while skipping regular preset instructions that can conflict with /impersonate. - Update CHANGELOG with the fixed issue notes. ## Why These fixes clear the reported GitHub issue queue for #2889, #2887, and #2886. The root causes were a Google provider embedding stub, destructive restart ordering in the home Professor Mari chat, and preset assembly reusing assistant-oriented regular prompt sections during user impersonation. ## Validation - pnpm --filter @marinara-engine/server lint - pnpm --filter @marinara-engine/client lint - pnpm regression:prompt - pnpm check ## Manual verification - [ ] Manually verify Gemini embedding models can be selected and used for memory/lorebook embeddings. - [ ] Manually verify Professor Mari /restart and Restart button still clear the home chat after a successful workspace reset. - [ ] Manually verify /impersonate in a preset-driven roleplay chat does not include regular assistant-role preset instructions. Addresses #2889, #2887, #2886. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added native Gemini embedding support for Google/Vertex connections. * **Bug Fixes** * Fixed impersonation/preset prompt contamination by ensuring impersonation-aware assembly only includes marker preset sections. * Prevented chat history loss by deleting chat messages only after workspace reset succeeds. * Improved restart sequencing to reduce message loss during reset. * **Tests** * Added regression coverage verifying impersonation skips regular preset instructions while keeping marker-based content. <!-- 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-22 04:19:25 +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#5778
No description provided.