[PR #5367] [MERGED] fix: sweep open Engine issues #6743

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issue-sweep-5361-5366


📝 Commits (8)

  • e242e0b fix(client): keep chat names in roleplay sidebar
  • 4db137a fix: resolve browser and roleplay issue sweep
  • 24c94af feat(client): dismiss the topmost overlay on hardware/gesture back
  • b8b8a9a docs: record Android back navigation fix
  • 68b010c test: align regressions with current contracts
  • 27d175c fix: address issue sweep review findings
  • 8eb4615 fix: close issue sweep review gaps
  • 0796844 fix: bound compatible sprite export reads

📊 Changes

25 files changed (+949 additions, -59 deletions)

View changed files

📝 CHANGELOG.md (+5 -1)
📝 e2e/core-flows.e2e.ts (+12 -8)
📝 packages/client/src/App.tsx (+20 -0)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+22 -8)
📝 packages/client/src/components/chat/CyoaChoices.tsx (+12 -1)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+9 -1)
📝 packages/client/src/components/chat/SpriteOverlay.tsx (+1 -1)
📝 packages/client/src/components/chat/sprite-display-modes.ts (+2 -2)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+5 -5)
📝 packages/client/src/components/ui/Modal.tsx (+7 -0)
➕ packages/client/src/hooks/use-back-dismiss.ts (+22 -0)
📝 packages/client/src/hooks/use-generate.ts (+20 -1)
➕ packages/client/src/lib/back-layers.ts (+93 -0)
➕ packages/client/src/lib/back-navigation.ts (+128 -0)
📝 packages/client/src/lib/generation-stream-policy.ts (+12 -1)
📝 packages/server/src/routes/characters.routes.ts (+47 -6)
📝 packages/server/src/services/import/marinara.importer.ts (+49 -8)
📝 packages/server/src/services/import/st-character.importer.ts (+22 -0)
📝 scripts/regressions/agent-runtime.regression.ts (+1 -0)
➕ scripts/regressions/back-navigation.regression.ts (+233 -0)

...and 5 more files

📄 Description

Linked issues

Closes #5361
Closes #5362
Closes #5363
Closes #5364
Closes #5365
Closes #5366

Why this change

The current issue queue contains several small but disruptive interaction and persistence bugs across the online card browser, Roleplay, streaming, and Android navigation. This sweep fixes their shared user-facing symptoms in one staging PR while retaining existing helpers and native browser behavior.

What changed

  • Added direct page selection to the online character-card browser and reset pagination when search criteria change.
  • Made CYOA choices disappear persistently after selection or tracker clearing, and continued impersonated choices into the character reply automatically.
  • Kept expression sprites below CYOA prompts, allowed true zero opacity, and preserved sprites through PNG card export/import.
  • Locked the already-correct favorite-background and non-card cleanup-backup behavior with regression coverage.
  • Confirmed auto-created Lorebook Keeper category books remain chat-linked and reusable on the next run, preventing duplicate creation.
  • Restored chat names in the Roleplay sidebar while retaining branch names in the branch selector.
  • Batched iOS typewriter paints at 20 FPS without reducing the configured stream speed.
  • Made Android hardware and gesture back dismiss the topmost modal or overlay before the WebView can exit.
  • Updated stale regression expectations so the complete suite tests current agent and prompt contracts in isolation.

The Beholder honorable mention in #5362 has no agent version, diagnostics, or reproducible provider payload. Existing Beholder work remains owned by #5281, #5284, and #5305; this PR does not duplicate that active stack.

The Android navigation implementation is the contributor patch from @luma-inibitor, cherry-picked with original authorship preserved.

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 completed locally:

  • pnpm check
  • pnpm test — 142/142 regressions passed
  • pnpm --filter @marinara-engine/client lint
  • pnpm --filter @marinara-engine/server lint
  • Targeted open-issue, Roleplay streaming, spatial-context, and Android back-navigation regressions
  • Desktop Chromium Playwright coverage for exact browser pagination and Roleplay sidebar names — 2/2 passed

Manual verification notes

  • Manually verify exact online-browser page selection on mobile and desktop.
  • Manually verify CYOA choice persistence, impersonation follow-up, tracker clearing, and sprite layering/opacity.
  • Manually verify PNG sprite round-trip with a real character card.
  • Manually verify iOS streaming on a long formatted Roleplay response.
  • Manually verify Roleplay chat and branch labels.
  • Manually verify Android hardware and gesture back dismissal for stacked menus and overlays.

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
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG.md includes user-facing entries. No user documentation, translation pack, or version metadata changes are required.

UI evidence

Automated browser evidence covers the new exact-page selector and the distinction between chat names and branch names. Hardware-specific iOS and Android behavior remains listed above for manual device verification.

Summary by CodeRabbit

  • New Features

    • Added page-number selection for online character search results.
    • Added mobile back-navigation support for dismissing open panels, dialogs, and editors.
    • Improved streaming text performance on iOS and iPadOS.
    • Character-card exports and imports now preserve compatible embedded sprites.
  • Bug Fixes

    • Fixed CYOA choice cleanup and follow-up generation.
    • Roleplay branch names now display and search consistently.
    • Improved sprite layering, opacity controls, and export/import validation.

🔄 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/5367 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/21/2026 **Status:** ✅ Merged **Merged:** 8/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-sweep-5361-5366` --- ### 📝 Commits (8) - [`e242e0b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e242e0bc79c141d36762e9f4a7d9330dc839d782) fix(client): keep chat names in roleplay sidebar - [`4db137a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4db137a130160fe73ea8f3fa54fe1212f243a948) fix: resolve browser and roleplay issue sweep - [`24c94af`](https://github.com/Pasta-Devs/Marinara-Engine/commit/24c94af159991db60f41ccff1cc2b9b2ddbec5cc) feat(client): dismiss the topmost overlay on hardware/gesture back - [`b8b8a9a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8b8a9a9aa80223bffd1ddb7c4bcb154e081e2b2) docs: record Android back navigation fix - [`68b010c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/68b010c04c91a6cdb9b83ace3ad668173aac66fc) test: align regressions with current contracts - [`27d175c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/27d175cdb786e3c866888e2b363952e0cd690238) fix: address issue sweep review findings - [`8eb4615`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8eb46158e1276ee6782f7bf83926b4f42c29a71b) fix: close issue sweep review gaps - [`0796844`](https://github.com/Pasta-Devs/Marinara-Engine/commit/07968448a473721dbff17339246130276fe5f786) fix: bound compatible sprite export reads ### 📊 Changes **25 files changed** (+949 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -1) 📝 `e2e/core-flows.e2e.ts` (+12 -8) 📝 `packages/client/src/App.tsx` (+20 -0) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+22 -8) 📝 `packages/client/src/components/chat/CyoaChoices.tsx` (+12 -1) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+9 -1) 📝 `packages/client/src/components/chat/SpriteOverlay.tsx` (+1 -1) 📝 `packages/client/src/components/chat/sprite-display-modes.ts` (+2 -2) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+5 -5) 📝 `packages/client/src/components/ui/Modal.tsx` (+7 -0) ➕ `packages/client/src/hooks/use-back-dismiss.ts` (+22 -0) 📝 `packages/client/src/hooks/use-generate.ts` (+20 -1) ➕ `packages/client/src/lib/back-layers.ts` (+93 -0) ➕ `packages/client/src/lib/back-navigation.ts` (+128 -0) 📝 `packages/client/src/lib/generation-stream-policy.ts` (+12 -1) 📝 `packages/server/src/routes/characters.routes.ts` (+47 -6) 📝 `packages/server/src/services/import/marinara.importer.ts` (+49 -8) 📝 `packages/server/src/services/import/st-character.importer.ts` (+22 -0) 📝 `scripts/regressions/agent-runtime.regression.ts` (+1 -0) ➕ `scripts/regressions/back-navigation.regression.ts` (+233 -0) _...and 5 more files_ </details> ### 📄 Description ## Linked issues Closes #5361 Closes #5362 Closes #5363 Closes #5364 Closes #5365 Closes #5366 ## Why this change The current issue queue contains several small but disruptive interaction and persistence bugs across the online card browser, Roleplay, streaming, and Android navigation. This sweep fixes their shared user-facing symptoms in one staging PR while retaining existing helpers and native browser behavior. ## What changed - Added direct page selection to the online character-card browser and reset pagination when search criteria change. - Made CYOA choices disappear persistently after selection or tracker clearing, and continued impersonated choices into the character reply automatically. - Kept expression sprites below CYOA prompts, allowed true zero opacity, and preserved sprites through PNG card export/import. - Locked the already-correct favorite-background and non-card cleanup-backup behavior with regression coverage. - Confirmed auto-created Lorebook Keeper category books remain chat-linked and reusable on the next run, preventing duplicate creation. - Restored chat names in the Roleplay sidebar while retaining branch names in the branch selector. - Batched iOS typewriter paints at 20 FPS without reducing the configured stream speed. - Made Android hardware and gesture back dismiss the topmost modal or overlay before the WebView can exit. - Updated stale regression expectations so the complete suite tests current agent and prompt contracts in isolation. The Beholder honorable mention in #5362 has no agent version, diagnostics, or reproducible provider payload. Existing Beholder work remains owned by #5281, #5284, and #5305; this PR does not duplicate that active stack. The Android navigation implementation is the contributor patch from @luma-inibitor, cherry-picked with original authorship preserved. ## 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 completed locally: - `pnpm check` - `pnpm test` — 142/142 regressions passed - `pnpm --filter @marinara-engine/client lint` - `pnpm --filter @marinara-engine/server lint` - Targeted open-issue, Roleplay streaming, spatial-context, and Android back-navigation regressions - Desktop Chromium Playwright coverage for exact browser pagination and Roleplay sidebar names — 2/2 passed ### Manual verification notes - Manually verify exact online-browser page selection on mobile and desktop. - Manually verify CYOA choice persistence, impersonation follow-up, tracker clearing, and sprite layering/opacity. - Manually verify PNG sprite round-trip with a real character card. - Manually verify iOS streaming on a long formatted Roleplay response. - Manually verify Roleplay chat and branch labels. - Manually verify Android hardware and gesture back dismissal for stacked menus and overlays. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) `CHANGELOG.md` includes user-facing entries. No user documentation, translation pack, or version metadata changes are required. ## UI evidence Automated browser evidence covers the new exact-page selector and the distinction between chat names and branch names. Hardware-specific iOS and Android behavior remains listed above for manual device verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added page-number selection for online character search results. - Added mobile back-navigation support for dismissing open panels, dialogs, and editors. - Improved streaming text performance on iOS and iPadOS. - Character-card exports and imports now preserve compatible embedded sprites. - **Bug Fixes** - Fixed CYOA choice cleanup and follow-up generation. - Roleplay branch names now display and search consistently. - Improved sprite layering, opacity controls, and export/import validation. <!-- 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:18 +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#6743
No description provided.