[PR #4500] [MERGED] Fix remaining import, activation, TTS, and summary issues #6402

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-open-issues-4497-4499


📝 Commits (6)

  • f2a621d chore: start open issue sweep
  • cae80d0 fix: address remaining assigned issues
  • 1776531 fix: address review feedback
  • 7f30081 fix: close incremental review gaps
  • e5a13f8 fix: harden prompt and continuation handling
  • cbeaded test: strengthen summary prompt save contract

📊 Changes

14 files changed (+703 additions, -174 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 docs/media/tts-setup.md (+7 -6)
📝 e2e/core-flows.e2e.ts (+81 -0)
📝 package.json (+2 -1)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+68 -24)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+165 -87)
📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+1 -1)
📝 packages/client/src/localization/locales/en.json (+6 -3)
📝 packages/server/src/routes/generate.routes.ts (+74 -38)
📝 packages/server/src/routes/tts.routes.ts (+81 -11)
➕ scripts/regressions/agent-activation.regression.ts (+74 -0)
📝 scripts/regressions/janny-character-import.regression.ts (+41 -2)
📝 scripts/regressions/open-issues.regression.ts (+74 -0)
📝 scripts/regressions/tts-source-persistence.regression.ts (+25 -1)

📄 Description

Linked issues

Closes #4497
Closes #4498
Closes #4499
Closes #4501

Documentation translation follow-up: #4502

Why this change

The remaining issue sweep exposed three compatibility regressions and one Roleplay summary usability gap: JannyAI imports could fail or collapse to search metadata, post-processing activation ran before the assistant response existed, PocketTTS used wrapper-only endpoints, and Summary Prompt editing split related controls across competing views.

What changed

  • Prefer JannyAI's original PNG, fall back to recovered full page fields, and reject creator-notes-only metadata with actionable manual import guidance.
  • Evaluate custom post-processing activation against the completed assistant response, including text-rewrite agents.
  • Detect the official PocketTTS API through OpenAPI, use multipart POST /tts at the official localhost:8000 default, and retain existing OpenAI-compatible wrapper support.
  • Center Roleplay summary backfill, add Chat Summary/Combine prompt tabs, remove the separate Templates button, and keep the current summary prompt visible above template editing.
  • Add focused regressions, official and wrapper PocketTTS browser coverage, release notes, and updated TTS setup documentation.

Automated evidence

  • pnpm check
  • pnpm regression:issues
  • pnpm regression:tts
  • pnpm smoke:ui --grep PocketTTS (2 desktop scenarios passed; 2 mobile variants skipped by design)

Manual verification still requested

  • Manually verify a JannyAI PNG import when Janny permits the download endpoint.
  • Manually verify the actionable fallback when Janny blocks both full-card routes.
  • Manually verify a Conversation post-processing agent at Scan Depth 1.
  • Manually inspect the Roleplay Summary Prompt tabs, Edit flow, and centered Backfill action at desktop and mobile widths.
  • Manually verify speech against a real official PocketTTS process.

Documentation and release impact

  • Updated docs/media/tts-setup.md and CHANGELOG.md.
  • Opened #4502 to mirror the TTS guide on docs-i18n.
  • No version-bearing files changed.

UI evidence

The production client build and focused Summary regression pass. The embedded browser surface was unavailable for a screenshot in this session, so visual verification remains explicitly listed above.

Summary by CodeRabbit

  • New Features
    • PocketTTS supports official standalone servers, automatic API detection, built-in voice fallback, and optional authentication.
    • Summary settings support switching between chat-summary and combine prompts, viewing active prompts, and editing templates.
  • Bug Fixes
    • Improved recovery and error handling for JannyAI character imports.
    • Post-processing agents now evaluate keywords against completed responses.
    • Updated PocketTTS defaults and expanded fallback voice support.
  • Documentation
    • Expanded PocketTTS setup and troubleshooting guidance.
  • Tests
    • Added regression coverage for these fixes and workflows.

🔄 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/4500 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/3/2026 **Status:** ✅ Merged **Merged:** 8/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-open-issues-4497-4499` --- ### 📝 Commits (6) - [`f2a621d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f2a621da90d538c2e1bb077ca9c0e54313ebf288) chore: start open issue sweep - [`cae80d0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cae80d0c29f9c1bedab219730a09f12b5397a70f) fix: address remaining assigned issues - [`1776531`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1776531a07b93b3be7604cc14b74a29d46f94af5) fix: address review feedback - [`7f30081`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7f300811709107a88b9b224c4776e0c17aa0daf7) fix: close incremental review gaps - [`e5a13f8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e5a13f82f6af4611e28e0abf5f533ece1ebaf66f) fix: harden prompt and continuation handling - [`cbeaded`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cbeaded9e8c103264b5420fb17b325a11d04e9bf) test: strengthen summary prompt save contract ### 📊 Changes **14 files changed** (+703 additions, -174 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `docs/media/tts-setup.md` (+7 -6) 📝 `e2e/core-flows.e2e.ts` (+81 -0) 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+68 -24) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+165 -87) 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+6 -3) 📝 `packages/server/src/routes/generate.routes.ts` (+74 -38) 📝 `packages/server/src/routes/tts.routes.ts` (+81 -11) ➕ `scripts/regressions/agent-activation.regression.ts` (+74 -0) 📝 `scripts/regressions/janny-character-import.regression.ts` (+41 -2) 📝 `scripts/regressions/open-issues.regression.ts` (+74 -0) 📝 `scripts/regressions/tts-source-persistence.regression.ts` (+25 -1) </details> ### 📄 Description ## Linked issues Closes #4497 Closes #4498 Closes #4499 Closes #4501 Documentation translation follow-up: #4502 ## Why this change The remaining issue sweep exposed three compatibility regressions and one Roleplay summary usability gap: JannyAI imports could fail or collapse to search metadata, post-processing activation ran before the assistant response existed, PocketTTS used wrapper-only endpoints, and Summary Prompt editing split related controls across competing views. ## What changed - Prefer JannyAI's original PNG, fall back to recovered full page fields, and reject creator-notes-only metadata with actionable manual import guidance. - Evaluate custom post-processing activation against the completed assistant response, including text-rewrite agents. - Detect the official PocketTTS API through OpenAPI, use multipart `POST /tts` at the official `localhost:8000` default, and retain existing OpenAI-compatible wrapper support. - Center Roleplay summary backfill, add Chat Summary/Combine prompt tabs, remove the separate Templates button, and keep the current summary prompt visible above template editing. - Add focused regressions, official and wrapper PocketTTS browser coverage, release notes, and updated TTS setup documentation. ## Automated evidence - `pnpm check` - `pnpm regression:issues` - `pnpm regression:tts` - `pnpm smoke:ui --grep PocketTTS` (2 desktop scenarios passed; 2 mobile variants skipped by design) ## Manual verification still requested - [ ] Manually verify a JannyAI PNG import when Janny permits the download endpoint. - [ ] Manually verify the actionable fallback when Janny blocks both full-card routes. - [ ] Manually verify a Conversation post-processing agent at Scan Depth 1. - [ ] Manually inspect the Roleplay Summary Prompt tabs, Edit flow, and centered Backfill action at desktop and mobile widths. - [ ] Manually verify speech against a real official PocketTTS process. ## Documentation and release impact - Updated `docs/media/tts-setup.md` and `CHANGELOG.md`. - Opened #4502 to mirror the TTS guide on `docs-i18n`. - No version-bearing files changed. ## UI evidence The production client build and focused Summary regression pass. The embedded browser surface was unavailable for a screenshot in this session, so visual verification remains explicitly listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - PocketTTS supports official standalone servers, automatic API detection, built-in voice fallback, and optional authentication. - Summary settings support switching between chat-summary and combine prompts, viewing active prompts, and editing templates. - **Bug Fixes** - Improved recovery and error handling for JannyAI character imports. - Post-processing agents now evaluate keywords against completed responses. - Updated PocketTTS defaults and expanded fallback voice support. - **Documentation** - Expanded PocketTTS setup and troubleshooting guidance. - **Tests** - Added regression coverage for these fixes and workflows. <!-- 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:10:06 +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#6402
No description provided.