[PR #3138] [MERGED] Fix active issue sweep #5811

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

📋 Pull Request Information

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

Base: staging ← Head: codex/issue-sweep-3119-3135


📝 Commits (2)

📊 Changes

19 files changed (+607 additions, -567 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+85 -15)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+0 -14)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+0 -2)
➖ packages/client/src/components/chat/ChatFilesDrawer.tsx (+0 -363)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+1 -8)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+9 -5)
📝 packages/client/src/components/chat/ConversationView.tsx (+76 -10)
📝 packages/client/src/components/game/GameSurface.tsx (+25 -20)
📝 packages/server/src/middleware/security-headers.ts (+1 -1)
📝 packages/server/src/routes/backgrounds.routes.ts (+127 -31)
📝 packages/server/src/routes/game.routes.ts (+13 -2)
📝 packages/server/src/routes/generate.routes.ts (+15 -92)
📝 packages/server/src/routes/generate/prompt-preset-selection.ts (+14 -0)
📝 packages/server/src/routes/lorebooks.routes.ts (+37 -1)
📝 packages/server/src/services/conversation/auto-summary.service.ts (+12 -0)
📝 packages/server/src/services/game/game-asset-generation.ts (+4 -2)
📝 packages/server/src/services/lorebook/embeddings.ts (+68 -1)
📝 packages/shared/src/constants/image-style-profiles.ts (+12 -0)
📝 scripts/regressions/prompt.regression.ts (+108 -0)

📄 Description

Summary

Fixes the active issue sweep for image style opt-out, prompt preset defaults, automatic summary cadence, CSP media previews, conversation segment reveal cadence, manual background prompt review/cache behavior, obsolete chat file drawer cleanup, and lorebook semantic scan activation.

Closes #3135
Closes #3124
Closes #3123
Closes #3122
Closes #3121
Closes #3120
Closes #3119
Closes #3125

Changes

  • Added a built-in Off image style profile that leaves generated prompts untouched.
  • Merged prompt preset default choices under explicit chat choices, so settings presets no longer drop defaults.
  • Changed automatic roleplay summaries to count actual user messages when the stored summary anchor is missing or stale.
  • Allowed data: media in CSP so data-backed media previews are not blocked.
  • Hoisted multi-character conversation segment reveal into the conversation freshness gate so grouped assistant turns reveal sequentially.
  • Routed manual Game backgrounds through the reviewed asset generation path with per-click unique slugs and forced regeneration; added the same review/force support to the Roleplay manual background endpoint.
  • Removed the obsolete Manage Chat Files drawer and its leftover plumbing.
  • Shared lorebook semantic embedding query construction between generation and preview scans, including local embedding fallback and per-lorebook query depth.

Validation

  • pnpm regression:prompt - passed locally.
  • pnpm check - passed locally.
  • pnpm smoke:ui - passed locally, 6 passed and 2 skipped.
  • Manually verify Game and Roleplay manual background prompt-review behavior in browser.
  • Manually verify semantic lorebook activation with the reporter embedding backend if available.

Notes

  • #3125 had a thin repro. This fixes the concrete code paths that could keep vectorized keyless entries from showing in active-lorebook preview/generation scans. Entries with explicit keyword keys still remain keyword-gated unless their configuration allows semantic-only activation.

🔄 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/3138 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/2/2026 **Status:** ✅ Merged **Merged:** 7/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/issue-sweep-3119-3135` --- ### 📝 Commits (2) - [`c2614cd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c2614cde97d9a6ea49524b0f1657e1315690981c) chore: start issue sweep - [`bda2e69`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bda2e69980865e5574baf774be4f60bd912ef622) fix active issue sweep ### 📊 Changes **19 files changed** (+607 additions, -567 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+85 -15) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+0 -14) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+0 -2) ➖ `packages/client/src/components/chat/ChatFilesDrawer.tsx` (+0 -363) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+1 -8) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+9 -5) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+76 -10) 📝 `packages/client/src/components/game/GameSurface.tsx` (+25 -20) 📝 `packages/server/src/middleware/security-headers.ts` (+1 -1) 📝 `packages/server/src/routes/backgrounds.routes.ts` (+127 -31) 📝 `packages/server/src/routes/game.routes.ts` (+13 -2) 📝 `packages/server/src/routes/generate.routes.ts` (+15 -92) 📝 `packages/server/src/routes/generate/prompt-preset-selection.ts` (+14 -0) 📝 `packages/server/src/routes/lorebooks.routes.ts` (+37 -1) 📝 `packages/server/src/services/conversation/auto-summary.service.ts` (+12 -0) 📝 `packages/server/src/services/game/game-asset-generation.ts` (+4 -2) 📝 `packages/server/src/services/lorebook/embeddings.ts` (+68 -1) 📝 `packages/shared/src/constants/image-style-profiles.ts` (+12 -0) 📝 `scripts/regressions/prompt.regression.ts` (+108 -0) </details> ### 📄 Description ## Summary Fixes the active issue sweep for image style opt-out, prompt preset defaults, automatic summary cadence, CSP media previews, conversation segment reveal cadence, manual background prompt review/cache behavior, obsolete chat file drawer cleanup, and lorebook semantic scan activation. Closes #3135 Closes #3124 Closes #3123 Closes #3122 Closes #3121 Closes #3120 Closes #3119 Closes #3125 ## Changes - Added a built-in Off image style profile that leaves generated prompts untouched. - Merged prompt preset default choices under explicit chat choices, so settings presets no longer drop defaults. - Changed automatic roleplay summaries to count actual user messages when the stored summary anchor is missing or stale. - Allowed data: media in CSP so data-backed media previews are not blocked. - Hoisted multi-character conversation segment reveal into the conversation freshness gate so grouped assistant turns reveal sequentially. - Routed manual Game backgrounds through the reviewed asset generation path with per-click unique slugs and forced regeneration; added the same review/force support to the Roleplay manual background endpoint. - Removed the obsolete Manage Chat Files drawer and its leftover plumbing. - Shared lorebook semantic embedding query construction between generation and preview scans, including local embedding fallback and per-lorebook query depth. ## Validation - [ ] `pnpm regression:prompt` - passed locally. - [ ] `pnpm check` - passed locally. - [ ] `pnpm smoke:ui` - passed locally, 6 passed and 2 skipped. - [ ] Manually verify Game and Roleplay manual background prompt-review behavior in browser. - [ ] Manually verify semantic lorebook activation with the reporter embedding backend if available. ## Notes - #3125 had a thin repro. This fixes the concrete code paths that could keep vectorized keyless entries from showing in active-lorebook preview/generation scans. Entries with explicit keyword keys still remain keyword-gated unless their configuration allows semantic-only activation. --- <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:44 +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#5811
No description provided.