[PR #3218] [MERGED] [codex] Fix v2.1.0 issue sweep #5847

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

📋 Pull Request Information

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

Base: staging ← Head: codex/v210-issue-sweep


📝 Commits (3)

  • 455d462 Fix v2.1.0 issue sweep
  • 7ba3dd6 Use chrome colors for preset errors
  • 0110131 Merge remote-tracking branch 'origin/staging' into codex/v210-issue-sweep

📊 Changes

15 files changed (+554 additions, -104 deletions)

View changed files

📝 CHANGELOG.md (+25 -23)
📝 package.json (+1 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+27 -4)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+10 -2)
📝 packages/client/src/components/presets/PresetEditor.tsx (+2 -2)
📝 packages/client/src/hooks/use-generate.ts (+40 -20)
📝 packages/server/src/routes/game.routes.ts (+56 -7)
📝 packages/server/src/routes/generate.routes.ts (+16 -3)
📝 packages/server/src/routes/generate/dry-run-route.ts (+1 -0)
📝 packages/server/src/services/conversation/character-commands.ts (+29 -3)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+308 -37)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+3 -1)
📝 packages/server/src/services/prompt/assembler.ts (+5 -1)
📝 scripts/regressions/prompt.regression.ts (+10 -1)
➕ scripts/run-mari.mjs (+21 -0)

📄 Description

Summary

Fixes the current unclaimed v2.1.0 issue sweep across chat rendering, Professor Mari preset writes, local CLI access, prompt routing, stopped partial replies, and Game Mode NPC recruitment.

Fixes Pasta-Devs/Marinara-Engine#3206
Fixes Pasta-Devs/Marinara-Engine#3207
Fixes Pasta-Devs/Marinara-Engine#3208
Fixes Pasta-Devs/Marinara-Engine#3209
Fixes Pasta-Devs/Marinara-Engine#3212
Fixes Pasta-Devs/Marinara-Engine#3213
Fixes Pasta-Devs/Marinara-Engine#3216

What Changed

  • Decodes escaped allowed chat HTML before the existing sanitized render path so safe markup no longer displays as literal <...> code.
  • Extends Professor Mari structured app_data preset writes to create prompt groups, sections, and choice-block preset variables together.
  • Adds a root pnpm mari -- --help wrapper for source checkouts.
  • Preserves normal prompt sections only when impersonation uses an explicitly selected impersonate preset, and keeps fallback chat preset stripping intact.
  • Makes Smart group order yield to /guided and /impersonate directives.
  • Persists stopped partial replies as real messages before they can be edited.
  • Tracks unknown mid-session Game NPC recruits with a game-scoped fallback NPC/card instead of throwing.

Validation

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

Manual Verification Needed

  • Verify escaped roleplay HTML renders as intended in a browser.
  • Verify Professor Mari can create a preset with sections and preset variables from Home workspace mode.
  • Verify stopped replies can be edited after pressing Stop mid-generation.
  • Verify Smart group /guided and /impersonate prompts route without the hidden selector overriding them.
  • Verify adding a newly met Game NPC to party creates a usable tracked party member.

Summary by CodeRabbit

  • New Features

    • Added a new mari command for launching the app’s CLI directly.
    • Improved prompt/preset handling so dedicated impersonation sections can be preserved when needed.
    • Mid-session party recruitment now works more reliably for newly introduced NPCs.
  • Bug Fixes

    • Fixed HTML-like text rendering in chat messages.
    • Stopped partial replies are now more likely to persist after refresh.
    • Improved group response ordering and preset/choice block handling.

🔄 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/3218 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/4/2026 **Status:** ✅ Merged **Merged:** 7/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/v210-issue-sweep` --- ### 📝 Commits (3) - [`455d462`](https://github.com/Pasta-Devs/Marinara-Engine/commit/455d462a814527cf76a116a12e4e5fb685759756) Fix v2.1.0 issue sweep - [`7ba3dd6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7ba3dd65ceb1e6c174ebd8ac3ea9c9ecfd6778a9) Use chrome colors for preset errors - [`0110131`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0110131835e2e053809bc8db017fa3cc6632c892) Merge remote-tracking branch 'origin/staging' into codex/v210-issue-sweep ### 📊 Changes **15 files changed** (+554 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+25 -23) 📝 `package.json` (+1 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+27 -4) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+10 -2) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+2 -2) 📝 `packages/client/src/hooks/use-generate.ts` (+40 -20) 📝 `packages/server/src/routes/game.routes.ts` (+56 -7) 📝 `packages/server/src/routes/generate.routes.ts` (+16 -3) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+1 -0) 📝 `packages/server/src/services/conversation/character-commands.ts` (+29 -3) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+308 -37) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+3 -1) 📝 `packages/server/src/services/prompt/assembler.ts` (+5 -1) 📝 `scripts/regressions/prompt.regression.ts` (+10 -1) ➕ `scripts/run-mari.mjs` (+21 -0) </details> ### 📄 Description ## Summary Fixes the current unclaimed v2.1.0 issue sweep across chat rendering, Professor Mari preset writes, local CLI access, prompt routing, stopped partial replies, and Game Mode NPC recruitment. Fixes Pasta-Devs/Marinara-Engine#3206 Fixes Pasta-Devs/Marinara-Engine#3207 Fixes Pasta-Devs/Marinara-Engine#3208 Fixes Pasta-Devs/Marinara-Engine#3209 Fixes Pasta-Devs/Marinara-Engine#3212 Fixes Pasta-Devs/Marinara-Engine#3213 Fixes Pasta-Devs/Marinara-Engine#3216 ## What Changed - Decodes escaped allowed chat HTML before the existing sanitized render path so safe markup no longer displays as literal `&lt;...&gt;` code. - Extends Professor Mari structured `app_data` preset writes to create prompt groups, sections, and choice-block preset variables together. - Adds a root `pnpm mari -- --help` wrapper for source checkouts. - Preserves normal prompt sections only when impersonation uses an explicitly selected impersonate preset, and keeps fallback chat preset stripping intact. - Makes Smart group order yield to `/guided` and `/impersonate` directives. - Persists stopped partial replies as real messages before they can be edited. - Tracks unknown mid-session Game NPC recruits with a game-scoped fallback NPC/card instead of throwing. ## Validation - [ ] `pnpm --filter @marinara-engine/server lint` - [ ] `pnpm --filter @marinara-engine/client lint` - [ ] `pnpm regression:prompt` - [ ] `pnpm check` - [ ] `pnpm mari -- --help` ## Manual Verification Needed - [ ] Verify escaped roleplay HTML renders as intended in a browser. - [ ] Verify Professor Mari can create a preset with sections and preset variables from Home workspace mode. - [ ] Verify stopped replies can be edited after pressing Stop mid-generation. - [ ] Verify Smart group `/guided` and `/impersonate` prompts route without the hidden selector overriding them. - [ ] Verify adding a newly met Game NPC to party creates a usable tracked party member. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a new `mari` command for launching the app’s CLI directly. * Improved prompt/preset handling so dedicated impersonation sections can be preserved when needed. * Mid-session party recruitment now works more reliably for newly introduced NPCs. * **Bug Fixes** * Fixed HTML-like text rendering in chat messages. * Stopped partial replies are now more likely to persist after refresh. * Improved group response ordering and preset/choice block handling. <!-- 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:20:08 +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#5847
No description provided.