[PR #4873] [MERGED] fix: resolve assigned staging issues #6523

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issue-sweep-4864-4872


📝 Commits (5)

  • 733219b chore: start assigned issue sweep
  • daa3f51 fix: resolve assigned staging issues
  • 4a98c79 fix: address issue sweep review findings
  • b27a26c fix: scope preset reordering to its owner
  • a88b834 fix: trust only preset snapshot migration evidence

📊 Changes

23 files changed (+661 additions, -135 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 package.json (+1 -1)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+6 -11)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+7 -0)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+4 -1)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+28 -22)
📝 packages/client/src/components/presets/PresetEditor.tsx (+123 -1)
📝 packages/client/src/hooks/use-presets.ts (+16 -1)
📝 packages/client/src/hooks/use-settings-sync.ts (+71 -33)
➕ packages/client/src/lib/inline-markdown-regex.ts (+8 -0)
📝 packages/client/src/lib/markdown.tsx (+1 -8)
📝 packages/client/src/localization/locales/en.json (+4 -0)
📝 packages/server/src/db/default-preset.json (+1 -0)
📝 packages/server/src/db/schema/prompts.ts (+2 -0)
📝 packages/server/src/db/seed.ts (+57 -38)
📝 packages/server/src/routes/generate.routes.ts (+4 -0)
📝 packages/server/src/routes/prompts.routes.ts (+83 -17)
📝 packages/server/src/services/memory-recall-embedding.ts (+17 -0)
📝 packages/server/src/services/storage/prompts.storage.ts (+8 -2)
📝 packages/shared/src/types/prompt.ts (+10 -0)

...and 3 more files

📄 Description

Why

Six currently assigned regressions could hide installed features, lose formatting or preferences, leave stale Character controls, or remove trusted preset and embedding behavior. This keeps each repair bounded to its owning path while preserving the existing behavior around it.

Closes #4864
Closes #4865
Closes #4866
Closes #4867
Closes #4871
Closes #4872

What changed

  • Resolve Random Model Memory Recall through one stable embedding-capable pool member for both refreshes and generation-time recall.
  • List installed feature-only packages such as Noodle in the Agents management pane without exposing them in ordinary chat-agent pickers.
  • Keep double-star bold spans intact when nested inside single-star italics.
  • Treat server-present settings as authoritative when a browser cache has no valid timestamp, then rewrite the merged complete profile.
  • Keep the bundled Marinara Universal Preset recoverable and read-only, routing full and quick-editor changes through editable duplicates.
  • Reconcile embedded lorebook state immediately after removal so a replacement can be embedded without reopening the Character editor.
  • Add focused regressions and Unreleased changelog notes for the repaired behavior.

Automated verification

  • pnpm check
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/assigned-issue-sweep.regression.ts
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/memory-recall-revectorize.regression.ts
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/stock-preset-protection.regression.ts
  • Targeted desktop Playwright checks for quick preset editing, incomplete settings synchronization, and Markdown previews.

The broader downloadable-agent catalog smoke currently times out before its Agents assertions because its setup waits for an unrelated Characters-library control; the focused installed-Agent regression passes.

Manual verification

  • Refresh Memory Recall for a chat using Random Model Connection with a configured remote embedding model.
  • Confirm an installed Noodle package appears in the right-hand Agents pane.
  • Render *This is **bold** in italic.* in a user message.
  • Open and edit the stock Universal Preset from both Presets and Chat Settings, then confirm an editable copy is used.
  • Remove an embedded Character lorebook and embed another without reopening the editor.

Summary by CodeRabbit

  • New Features
    • Feature-only installed agents now appear in the Agents panel.
    • Stock Marinara Universal presets are identified and protected from editing or deletion; editable copies are created automatically when needed.
  • Bug Fixes
    • Improved server synchronization of settings across browsers.
    • Fixed nested bold and italic Markdown formatting.
    • Memory recall now selects compatible embedding sources from random connections.
    • Character card lorebooks re-enable immediately after removal.
    • Stock preset customization, restoration, and default selection now behave reliably.

🔄 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/4873 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issue-sweep-4864-4872` --- ### 📝 Commits (5) - [`733219b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/733219b1a4179baa0453a0dedda71d3f76864935) chore: start assigned issue sweep - [`daa3f51`](https://github.com/Pasta-Devs/Marinara-Engine/commit/daa3f511a0bb1cf7bba594a737ff1259ce137b6c) fix: resolve assigned staging issues - [`4a98c79`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4a98c79293f1207dab31cf08def3e5d15e54a084) fix: address issue sweep review findings - [`b27a26c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b27a26c28cf4c0eddcc4e334d625ff8dc0d256dc) fix: scope preset reordering to its owner - [`a88b834`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a88b834a487cc7ed50a0d69136fd069bd4749b42) fix: trust only preset snapshot migration evidence ### 📊 Changes **23 files changed** (+661 additions, -135 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `package.json` (+1 -1) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+6 -11) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+7 -0) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+4 -1) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+28 -22) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+123 -1) 📝 `packages/client/src/hooks/use-presets.ts` (+16 -1) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+71 -33) ➕ `packages/client/src/lib/inline-markdown-regex.ts` (+8 -0) 📝 `packages/client/src/lib/markdown.tsx` (+1 -8) 📝 `packages/client/src/localization/locales/en.json` (+4 -0) 📝 `packages/server/src/db/default-preset.json` (+1 -0) 📝 `packages/server/src/db/schema/prompts.ts` (+2 -0) 📝 `packages/server/src/db/seed.ts` (+57 -38) 📝 `packages/server/src/routes/generate.routes.ts` (+4 -0) 📝 `packages/server/src/routes/prompts.routes.ts` (+83 -17) 📝 `packages/server/src/services/memory-recall-embedding.ts` (+17 -0) 📝 `packages/server/src/services/storage/prompts.storage.ts` (+8 -2) 📝 `packages/shared/src/types/prompt.ts` (+10 -0) _...and 3 more files_ </details> ### 📄 Description ## Why Six currently assigned regressions could hide installed features, lose formatting or preferences, leave stale Character controls, or remove trusted preset and embedding behavior. This keeps each repair bounded to its owning path while preserving the existing behavior around it. Closes #4864 Closes #4865 Closes #4866 Closes #4867 Closes #4871 Closes #4872 ## What changed - Resolve Random Model Memory Recall through one stable embedding-capable pool member for both refreshes and generation-time recall. - List installed feature-only packages such as Noodle in the Agents management pane without exposing them in ordinary chat-agent pickers. - Keep double-star bold spans intact when nested inside single-star italics. - Treat server-present settings as authoritative when a browser cache has no valid timestamp, then rewrite the merged complete profile. - Keep the bundled Marinara Universal Preset recoverable and read-only, routing full and quick-editor changes through editable duplicates. - Reconcile embedded lorebook state immediately after removal so a replacement can be embedded without reopening the Character editor. - Add focused regressions and Unreleased changelog notes for the repaired behavior. ## Automated verification - `pnpm check` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/assigned-issue-sweep.regression.ts` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/memory-recall-revectorize.regression.ts` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/stock-preset-protection.regression.ts` - Targeted desktop Playwright checks for quick preset editing, incomplete settings synchronization, and Markdown previews. The broader downloadable-agent catalog smoke currently times out before its Agents assertions because its setup waits for an unrelated Characters-library control; the focused installed-Agent regression passes. ## Manual verification - [ ] Refresh Memory Recall for a chat using Random Model Connection with a configured remote embedding model. - [ ] Confirm an installed Noodle package appears in the right-hand Agents pane. - [ ] Render `*This is **bold** in italic.*` in a user message. - [ ] Open and edit the stock Universal Preset from both Presets and Chat Settings, then confirm an editable copy is used. - [ ] Remove an embedded Character lorebook and embed another without reopening the editor. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Feature-only installed agents now appear in the Agents panel. * Stock Marinara Universal presets are identified and protected from editing or deletion; editable copies are created automatically when needed. * **Bug Fixes** * Improved server synchronization of settings across browsers. * Fixed nested bold and italic Markdown formatting. * Memory recall now selects compatible embedding sources from random connections. * Character card lorebooks re-enable immediately after removal. * Stock preset customization, restoration, and default selection now behave reliably. <!-- 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:11:14 +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#6523
No description provided.