[PR #3388] [MERGED] Fix v2.1.2 issue sweep #5911

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

📋 Pull Request Information

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

Base: staging ← Head: agent/address-open-issues-v2.1.2


📝 Commits (1)

  • fc673c1 fix: address v2.1.2 issue sweep

📊 Changes

23 files changed (+824 additions, -229 deletions)

View changed files

📝 CHANGELOG.md (+16 -0)
📝 packages/client/src/App.tsx (+16 -2)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+1 -1)
📝 packages/client/src/components/modals/CreateConnectionModal.tsx (+1 -1)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+7 -10)
📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+117 -1)
📝 packages/client/src/features/chat-settings/sections/LorebooksSection.tsx (+68 -58)
📝 packages/client/src/hooks/use-generate.ts (+34 -13)
📝 packages/client/src/lib/tts-audio-cache.ts (+41 -0)
📝 packages/client/src/lib/tts-service.ts (+105 -29)
📝 packages/server/src/routes/chats.routes.ts (+29 -15)
📝 packages/server/src/routes/game.routes.ts (+14 -5)
📝 packages/server/src/routes/generate.routes.ts (+166 -22)
📝 packages/server/src/routes/generate/agent-write-approval.ts (+30 -8)
📝 packages/server/src/routes/generate/dry-run-route.ts (+4 -3)
📝 packages/server/src/routes/generate/lorebook-keeper-utils.ts (+5 -17)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+9 -0)
📝 packages/server/src/services/generation/character-prompt-context.ts (+96 -32)
📝 packages/server/src/services/generation/conversation-command-runtime.ts (+5 -5)
📝 packages/server/src/services/generation/provider-generation-runtime.ts (+4 -3)

...and 3 more files

📄 Description

Why

This PR batches the v2.1.2 issue sweep and the earlier requested fixes for agent output formatting, Grok 4.5, streaming stability, and recovery-page theming. It resolves the current open issue queue without targeting main directly.

Closes #3375, closes #3376, closes #3377, closes #3378, closes #3379, closes #3380, closes #3381, closes #3382, closes #3383, closes #3384, closes #3385.

What Changed

  • Fixes prompt assembly for active-agent output formats, Conversation context relocation macros, command wrapping, identity fallback suppression, and Lorebook Keeper approval/commit merging.
  • Copies tracker snapshots when branching Roleplay/VN chats and applies game lorebook exclusions during world setup.
  • Adds Grok 4.5/xAI reasoning handling and xAI connection defaults.
  • Stabilizes roleplay streaming when parallel agents finish after the main stream.
  • Fixes TTS hidden-tab playback, adds cached TTS clip export, and updates mobile/lorebook settings controls.
  • Updates v2.1.2 changelog/release metadata and recovery-page chroma text color handling.

Validation

  • pnpm check
  • pnpm version:check
  • pnpm credits:check
  • pnpm regression:prompt
  • pnpm smoke:ui
  • git diff --check

Manual Verification Needed

  • Manually verify Conversation prompt macros ({{context}}, {{commands}}, {{reactRules}}, {{memories}}, {{lorebook}}) in a browser chat preset.
  • Manually verify hidden-tab TTS autoplay behavior in the target browser.
  • Manually verify the lorebook active/disabled controls with a book that is both pinned and auto-active.

🔄 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/3388 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/8/2026 **Status:** ✅ Merged **Merged:** 7/8/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/address-open-issues-v2.1.2` --- ### 📝 Commits (1) - [`fc673c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fc673c17dca59072a971421aeb8788e54b8c41d8) fix: address v2.1.2 issue sweep ### 📊 Changes **23 files changed** (+824 additions, -229 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+16 -0) 📝 `packages/client/src/App.tsx` (+16 -2) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+1 -1) 📝 `packages/client/src/components/modals/CreateConnectionModal.tsx` (+1 -1) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+7 -10) 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+117 -1) 📝 `packages/client/src/features/chat-settings/sections/LorebooksSection.tsx` (+68 -58) 📝 `packages/client/src/hooks/use-generate.ts` (+34 -13) 📝 `packages/client/src/lib/tts-audio-cache.ts` (+41 -0) 📝 `packages/client/src/lib/tts-service.ts` (+105 -29) 📝 `packages/server/src/routes/chats.routes.ts` (+29 -15) 📝 `packages/server/src/routes/game.routes.ts` (+14 -5) 📝 `packages/server/src/routes/generate.routes.ts` (+166 -22) 📝 `packages/server/src/routes/generate/agent-write-approval.ts` (+30 -8) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+4 -3) 📝 `packages/server/src/routes/generate/lorebook-keeper-utils.ts` (+5 -17) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+9 -0) 📝 `packages/server/src/services/generation/character-prompt-context.ts` (+96 -32) 📝 `packages/server/src/services/generation/conversation-command-runtime.ts` (+5 -5) 📝 `packages/server/src/services/generation/provider-generation-runtime.ts` (+4 -3) _...and 3 more files_ </details> ### 📄 Description ## Why This PR batches the v2.1.2 issue sweep and the earlier requested fixes for agent output formatting, Grok 4.5, streaming stability, and recovery-page theming. It resolves the current open issue queue without targeting main directly. Closes #3375, closes #3376, closes #3377, closes #3378, closes #3379, closes #3380, closes #3381, closes #3382, closes #3383, closes #3384, closes #3385. ## What Changed - Fixes prompt assembly for active-agent output formats, Conversation context relocation macros, command wrapping, identity fallback suppression, and Lorebook Keeper approval/commit merging. - Copies tracker snapshots when branching Roleplay/VN chats and applies game lorebook exclusions during world setup. - Adds Grok 4.5/xAI reasoning handling and xAI connection defaults. - Stabilizes roleplay streaming when parallel agents finish after the main stream. - Fixes TTS hidden-tab playback, adds cached TTS clip export, and updates mobile/lorebook settings controls. - Updates v2.1.2 changelog/release metadata and recovery-page chroma text color handling. ## Validation - pnpm check - pnpm version:check - pnpm credits:check - pnpm regression:prompt - pnpm smoke:ui - git diff --check ## Manual Verification Needed - Manually verify Conversation prompt macros (`{{context}}`, `{{commands}}`, `{{reactRules}}`, `{{memories}}`, `{{lorebook}}`) in a browser chat preset. - Manually verify hidden-tab TTS autoplay behavior in the target browser. - Manually verify the lorebook active/disabled controls with a book that is both pinned and auto-active. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05:04 +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#5911
No description provided.