[PR #6116] [MERGED] fix(roleplay): start VN replies at first paragraph #7066

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6116
Author: @Promansis
Created: 9/13/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @Promansis

Base: staging ← Head: fix/6115-roleplay-vn-first-paragraph


📝 Commits (2)

  • 3641530 fix(roleplay): start VN replies at first paragraph (#6115)
  • c1df7d1 fix(roleplay): preserve VN navigation after generation

📊 Changes

5 files changed (+201 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/roleplay-vn.e2e.ts (+147 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+19 -1)
📝 packages/client/src/hooks/use-generate.ts (+20 -0)
📝 packages/client/src/stores/chat.store.ts (+13 -0)

📄 Description

Linked issue

Closes #6115

Why this change

  • Newly generated multi-paragraph Roleplay Visual Novel replies opened on their final paragraph, making users miss the start of the response.

What changed

  • Reset completed new replies and regenerated swipes to paragraph 1.
  • Preserve existing selection for unchanged, cancelled, or empty streams.
  • Track message revisions per chat across inactive-chat switches.
  • Added desktop/mobile Playwright regressions and an Unreleased changelog entry.

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

Manual verification notes

  • Automated pnpm check passed with one pre-existing React Hook warning in GameNarration.tsx.
  • Focused Roleplay VN Playwright coverage passed 6/6 on desktop and mobile Chromium.
  • Manual browser, container, and hosted-CI verification remain for the human contributor.

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] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Automated browser regression covers the affected VN presentation; no manual screenshots supplied.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed Roleplay Visual Novel mode so newly generated multi-paragraph replies open at the first paragraph.
    • Preserved paragraph navigation after edits and when returning to chats with regenerated swipes.
  • Tests

    • Added end-to-end coverage for paragraph selection, regeneration behavior, and generation-state controls.

🔄 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/6116 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/13/2026 **Status:** ✅ Merged **Merged:** 9/13/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/6115-roleplay-vn-first-paragraph` --- ### 📝 Commits (2) - [`3641530`](https://github.com/Pasta-Devs/Marinara-Engine/commit/36415308e784ea5b15709257721cd3039d7b50ae) fix(roleplay): start VN replies at first paragraph (#6115) - [`c1df7d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c1df7d14404167e748723b7ebadef6d4bd75e8ae) fix(roleplay): preserve VN navigation after generation ### 📊 Changes **5 files changed** (+201 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/roleplay-vn.e2e.ts` (+147 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+19 -1) 📝 `packages/client/src/hooks/use-generate.ts` (+20 -0) 📝 `packages/client/src/stores/chat.store.ts` (+13 -0) </details> ### 📄 Description ## Linked issue Closes #6115 ## Why this change - Newly generated multi-paragraph Roleplay Visual Novel replies opened on their final paragraph, making users miss the start of the response. ## What changed - Reset completed new replies and regenerated swipes to paragraph 1. - Preserve existing selection for unchanged, cancelled, or empty streams. - Track message revisions per chat across inactive-chat switches. - Added desktop/mobile Playwright regressions and an Unreleased changelog entry. ## 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` ### Manual verification notes - Automated `pnpm check` passed with one pre-existing React Hook warning in `GameNarration.tsx`. - Focused Roleplay VN Playwright coverage passed 6/6 on desktop and mobile Chromium. - Manual browser, container, and hosted-CI verification remain for the human contributor. ## 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]` follow-up issue opened (see `CONTRIBUTING.md` § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Automated browser regression covers the affected VN presentation; no manual screenshots supplied. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed Roleplay Visual Novel mode so newly generated multi-paragraph replies open at the first paragraph. * Preserved paragraph navigation after edits and when returning to chats with regenerated swipes. * **Tests** * Added end-to-end coverage for paragraph selection, regeneration behavior, and generation-state controls. <!-- 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:16:15 +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#7066
No description provided.