[PR #5435] [MERGED] fix: complete the August issue sweep #6763

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issue-sweep-5380-5434


📝 Commits (4)

  • 7af2679 feat(chat): keep selected swipe during cleanup
  • fe75fc4 fix: resolve remaining August issue sweep
  • 3c96367 fix: address issue sweep review findings
  • 5f0c251 fix: isolate streamed tool call fallbacks

📊 Changes

24 files changed (+761 additions, -112 deletions)

View changed files

📝 CHANGELOG.md (+7 -0)
📝 e2e/core-flows.e2e.ts (+16 -8)
📝 packages/client/src/components/chat/ChatArea.tsx (+25 -0)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+16 -0)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+6 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+6 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+35 -28)
📝 packages/client/src/components/chat/MariSuggestionChips.tsx (+6 -2)
📝 packages/client/src/components/game/GameSurface.tsx (+16 -2)
📝 packages/client/src/components/game/GameWidgetPanel.tsx (+6 -1)
📝 packages/client/src/components/game/GameWidgetSetupEditor.tsx (+40 -13)
📝 packages/client/src/hooks/use-chats.ts (+15 -0)
📝 packages/client/src/lib/generation-stream-policy.ts (+5 -2)
📝 packages/client/src/lib/tts-audio-cache.ts (+11 -0)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/server/src/routes/chats.routes.ts (+27 -0)
📝 packages/server/src/routes/generate.routes.ts (+10 -0)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+55 -18)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+132 -34)
📝 packages/shared/src/types/chat.ts (+4 -0)

...and 4 more files

📄 Description

Linked issue

Closes #5380
Closes #5426
Closes #5429
Closes #5430
Closes #5431
Closes #5432
Closes #5433
Closes #5434

Why this change

The complete open issue queue contained small but user-visible regressions across chat controls, Professor Mari, Game Mode, TTS, custom connections, card macros, and new-game setup. Professor Mari especially needed a language-independent approval path that restores the explicit Accept action while binding approval to the exact proposed command and target.

What changed

  • Added Delete all other swipes in Roleplay and Conversation, preserving the selected swipe.
  • Reused the full widget editor during initial Game widget review and added widget duplication.
  • Avoided persistent IndexedDB TTS Blob caching on iOS WebKit while retaining the bounded memory cache.
  • Preserved Anthropic-style tool_use content blocks from OpenAI-compatible LinkAPI responses.
  • Restored Professor Mari Accept chips, persisted exact-command approval fingerprints, accepted complete confirmations in any language, handled output-limit continuation, used exact supplied character or Persona IDs, and disabled hidden reasoning for her JSON protocol where applicable.
  • Resolved Character and Persona card macros in request-scoped generation and appearance data without mutating saved cards.
  • Held Game narration on the last settled transcript until generation, Agent, and scene work completes.
  • Updated focused regression coverage and aligned a stale Professor Mari close-button smoke expectation with the compact control already on staging.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated verification performed

  • pnpm check
  • node scripts/run-regressions.mjs --filter scripts/regressions/issue-sweep-5380-5434.regression.ts
  • Provider compatibility regression
  • Roleplay streaming regression
  • TypeScript checks for client and server
  • ESLint for changed client files
  • Localization catalog and source-key audits
  • Full Playwright smoke: 272 passed and 108 skipped; its two relevant desktop/mobile swipe failures were corrected, then all six targeted desktop/mobile checks passed. A Tracker layout timing failure passed on immediate rerun.
  • git diff --check

Manual verification needed

  • Manually verify Professor Mari proposes an app-data write, displays Accept, and proceeds after clicking it or replying affirmatively in a non-English language.
  • Manually verify Delete all other swipes in both Roleplay and Conversation.
  • Manually verify the initial Game widget review and Game narration timing.
  • Manually verify TTS on a physical iPhone or iPad.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Automated browser screenshots and traces were collected by the smoke suite. No user-facing documentation changed.

Summary by CodeRabbit

  • New Features

    • Edit and duplicate game setup widgets before the first turn.
    • Delete all alternate message swipes while keeping the selected swipe.
    • Improved Professor Mari authorization suggestions and approval handling.
  • Bug Fixes

    • Prevented duplicate game narration during active processing.
    • Improved card macro resolution and tool-call compatibility.
    • Fixed iOS/iPadOS text-to-speech caching stalls.
    • Improved authorization denials, confirmations, and recovery behavior.
  • Tests

    • Added regression and end-to-end coverage for chat, game, authorization, provider, and audio updates.

🔄 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/5435 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/23/2026 **Status:** ✅ Merged **Merged:** 8/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-sweep-5380-5434` --- ### 📝 Commits (4) - [`7af2679`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7af2679aa0bf4c98116872198cb0a7561d8307c7) feat(chat): keep selected swipe during cleanup - [`fe75fc4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fe75fc4fdbe0b27140c154d9c10a359408224792) fix: resolve remaining August issue sweep - [`3c96367`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3c963670158dadc3627ff4a15f5a433be74148b1) fix: address issue sweep review findings - [`5f0c251`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5f0c2519bf1a795b5934a39fb89462497ba26d39) fix: isolate streamed tool call fallbacks ### 📊 Changes **24 files changed** (+761 additions, -112 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -0) 📝 `e2e/core-flows.e2e.ts` (+16 -8) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+25 -0) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+16 -0) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+6 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+6 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+35 -28) 📝 `packages/client/src/components/chat/MariSuggestionChips.tsx` (+6 -2) 📝 `packages/client/src/components/game/GameSurface.tsx` (+16 -2) 📝 `packages/client/src/components/game/GameWidgetPanel.tsx` (+6 -1) 📝 `packages/client/src/components/game/GameWidgetSetupEditor.tsx` (+40 -13) 📝 `packages/client/src/hooks/use-chats.ts` (+15 -0) 📝 `packages/client/src/lib/generation-stream-policy.ts` (+5 -2) 📝 `packages/client/src/lib/tts-audio-cache.ts` (+11 -0) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/server/src/routes/chats.routes.ts` (+27 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+10 -0) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+55 -18) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+132 -34) 📝 `packages/shared/src/types/chat.ts` (+4 -0) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #5380 Closes #5426 Closes #5429 Closes #5430 Closes #5431 Closes #5432 Closes #5433 Closes #5434 ## Why this change The complete open issue queue contained small but user-visible regressions across chat controls, Professor Mari, Game Mode, TTS, custom connections, card macros, and new-game setup. Professor Mari especially needed a language-independent approval path that restores the explicit Accept action while binding approval to the exact proposed command and target. ## What changed - Added Delete all other swipes in Roleplay and Conversation, preserving the selected swipe. - Reused the full widget editor during initial Game widget review and added widget duplication. - Avoided persistent IndexedDB TTS Blob caching on iOS WebKit while retaining the bounded memory cache. - Preserved Anthropic-style tool_use content blocks from OpenAI-compatible LinkAPI responses. - Restored Professor Mari Accept chips, persisted exact-command approval fingerprints, accepted complete confirmations in any language, handled output-limit continuation, used exact supplied character or Persona IDs, and disabled hidden reasoning for her JSON protocol where applicable. - Resolved Character and Persona card macros in request-scoped generation and appearance data without mutating saved cards. - Held Game narration on the last settled transcript until generation, Agent, and scene work completes. - Updated focused regression coverage and aligned a stale Professor Mari close-button smoke expectation with the compact control already on staging. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Automated verification performed - `pnpm check` - `node scripts/run-regressions.mjs --filter scripts/regressions/issue-sweep-5380-5434.regression.ts` - Provider compatibility regression - Roleplay streaming regression - TypeScript checks for client and server - ESLint for changed client files - Localization catalog and source-key audits - Full Playwright smoke: 272 passed and 108 skipped; its two relevant desktop/mobile swipe failures were corrected, then all six targeted desktop/mobile checks passed. A Tracker layout timing failure passed on immediate rerun. - `git diff --check` ### Manual verification needed - Manually verify Professor Mari proposes an app-data write, displays Accept, and proceeds after clicking it or replying affirmatively in a non-English language. - Manually verify Delete all other swipes in both Roleplay and Conversation. - Manually verify the initial Game widget review and Game narration timing. - Manually verify TTS on a physical iPhone or iPad. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence Automated browser screenshots and traces were collected by the smoke suite. No user-facing documentation changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Edit and duplicate game setup widgets before the first turn. - Delete all alternate message swipes while keeping the selected swipe. - Improved Professor Mari authorization suggestions and approval handling. - **Bug Fixes** - Prevented duplicate game narration during active processing. - Improved card macro resolution and tool-call compatibility. - Fixed iOS/iPadOS text-to-speech caching stalls. - Improved authorization denials, confirmations, and recovery behavior. - **Tests** - Added regression and end-to-end coverage for chat, game, authorization, provider, and audio updates. <!-- 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:13:29 +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#6763
No description provided.