[PR #3896] [MERGED] fix: address TTS, agent settings, and mobile code regressions #6147

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

📋 Pull Request Information

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

Base: staging ← Head: fix/3718-tts-dialogue-pause-ceiling


📝 Commits (2)

  • b488526 fix: honor configured TTS dialogue pauses
  • 5c90dd1 fix: persist agent edits and contain mobile code

📊 Changes

5 files changed (+64 additions, -2 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+30 -1)
📝 packages/client/src/lib/tts-service.ts (+9 -1)
📝 packages/client/src/styles/globals.css (+7 -0)
📝 scripts/regressions/open-issues.regression.ts (+13 -0)
📝 scripts/regressions/tts-source-persistence.regression.ts (+5 -0)

📄 Description

Linked issues

Closes #3718
Closes #3897
Closes #3898

Why this change

Three user-visible regressions interrupted normal chat use: configured TTS pauses were silently shortened, code-formatted messages could expand beyond an iOS viewport, and Prose Guardian edits could be discarded when Chat Settings closed before the textarea blur save ran.

What changed

  • Normalize TTS playback delays against the shared 60-second ceiling instead of the obsolete 1,500 ms limit.
  • Keep chat markdown within its message container, allow long inline code to break, and preserve horizontal scrolling for fenced code blocks.
  • Flush changed Prose Guardian per-chat preferences before closing Chat Settings, keep the drawer open on save failure, and surface an error toast.
  • Extend regression coverage for the TTS ceiling, mobile markdown containment, and the Prose Guardian close/save ordering.

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 validation performed by Codex:

  • pnpm regression:tts completed successfully.
  • pnpm regression:issues completed successfully.
  • pnpm regression:prompt completed successfully.
  • pnpm check completed successfully.
  • git diff --check completed successfully.

Manual verification notes

  • Enable Only read dialogues, choose a pause greater than 1.5 seconds, and verify the next utterance waits for the selected duration.
  • On iOS, verify long inline and fenced code stay inside the message viewport; fenced code should scroll horizontally.
  • Edit each Prose Guardian preference, close Chat Settings by outside click and by the close button, then verify the next rewrite uses the saved values.
  • Force a metadata save failure and verify Chat Settings remains open with an error toast.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

No screenshots attached. Manual iOS viewport verification remains pending because the local in-app browser surface was unavailable.

Summary by CodeRabbit

  • Bug Fixes

    • Prose Guardian drafts now save automatically before the Agent Suite closes, with an error notification if saving fails.
    • Text-to-speech playback delays now handle invalid values safely and respect the configured maximum.
    • Chat messages and code blocks now wrap long content more reliably and support horizontal scrolling on touch devices.
  • Tests

    • Added regression coverage for draft persistence, playback delay handling, and markdown layout behavior.

🔄 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/3896 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/21/2026 **Status:** ✅ Merged **Merged:** 7/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3718-tts-dialogue-pause-ceiling` --- ### 📝 Commits (2) - [`b488526`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4885265f15dd5c515c098d11bae787c1821dd1c) fix: honor configured TTS dialogue pauses - [`5c90dd1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c90dd1e2da09d56ad4f796209bc63fc1f6ebd96) fix: persist agent edits and contain mobile code ### 📊 Changes **5 files changed** (+64 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+30 -1) 📝 `packages/client/src/lib/tts-service.ts` (+9 -1) 📝 `packages/client/src/styles/globals.css` (+7 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+13 -0) 📝 `scripts/regressions/tts-source-persistence.regression.ts` (+5 -0) </details> ### 📄 Description ## Linked issues Closes #3718 Closes #3897 Closes #3898 ## Why this change Three user-visible regressions interrupted normal chat use: configured TTS pauses were silently shortened, code-formatted messages could expand beyond an iOS viewport, and Prose Guardian edits could be discarded when Chat Settings closed before the textarea blur save ran. ## What changed - Normalize TTS playback delays against the shared 60-second ceiling instead of the obsolete 1,500 ms limit. - Keep chat markdown within its message container, allow long inline code to break, and preserve horizontal scrolling for fenced code blocks. - Flush changed Prose Guardian per-chat preferences before closing Chat Settings, keep the drawer open on save failure, and surface an error toast. - Extend regression coverage for the TTS ceiling, mobile markdown containment, and the Prose Guardian close/save ordering. ## 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 validation performed by Codex: - pnpm regression:tts completed successfully. - pnpm regression:issues completed successfully. - pnpm regression:prompt completed successfully. - pnpm check completed successfully. - git diff --check completed successfully. ### Manual verification notes - [ ] Enable Only read dialogues, choose a pause greater than 1.5 seconds, and verify the next utterance waits for the selected duration. - [ ] On iOS, verify long inline and fenced code stay inside the message viewport; fenced code should scroll horizontally. - [ ] Edit each Prose Guardian preference, close Chat Settings by outside click and by the close button, then verify the next rewrite uses the saved values. - [ ] Force a metadata save failure and verify Chat Settings remains open with an error toast. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No screenshots attached. Manual iOS viewport verification remains pending because the local in-app browser surface was unavailable. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Prose Guardian drafts now save automatically before the Agent Suite closes, with an error notification if saving fails. * Text-to-speech playback delays now handle invalid values safely and respect the configured maximum. * Chat messages and code blocks now wrap long content more reliably and support horizontal scrolling on touch devices. * **Tests** * Added regression coverage for draft persistence, playback delay handling, and markdown layout behavior. <!-- 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:07:32 +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#6147
No description provided.