[PR #6516] [MERGED] fix: folder sorting, scene invitations, and chat controls #7209

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6516
Author: @SpicyMarinara
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/sept22-assigned-issue-sweep


📝 Commits (2)

  • 699b853 chore: begin assigned issue sweep
  • f45d830 fix: folder sorting, scene invitations, and chat controls

📊 Changes

17 files changed (+340 additions, -117 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 docs/TROUBLESHOOTING.md (+4 -0)
📝 docs/roleplay/scenes.md (+1 -1)
➕ e2e/sept22-assigned-sweep.e2e.ts (+183 -0)
📝 packages/client/index.html (+1 -1)
📝 packages/client/src/components/chat/ChatInput.tsx (+4 -4)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+8 -0)
➕ packages/client/src/components/chat/ConversationSceneInvitation.tsx (+52 -0)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+10 -5)
📝 packages/client/src/components/panels/LorebooksPanel.tsx (+2 -4)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+6 -4)
📝 packages/client/src/hooks/use-generate.ts (+0 -31)
📝 packages/client/src/localization/locales/en.json (+4 -0)
📝 packages/server/src/routes/generate.routes.ts (+22 -12)
➖ packages/server/src/services/generation/conversation-scene-command-runtime.ts (+0 -53)
📝 packages/shared/src/types/chat.ts (+11 -0)
📝 scripts/regressions/command-only-regenerate.regression.ts (+27 -2)

📄 Description

Linked issue

Closes #6507
Closes #6497
Closes #6496
Closes #6492

Why this change

Folder contents ignore the selected sidebar sort, the extra-actions menu sits next to Send, automatic scene setup covers conversation replies, and Basic Auth prevents Chrome from reading the PWA manifest. This sweep follows the maintainer's comments and reuses the existing controls and scene setup flow.

What changed

  • Folder members follow the selected character/persona/lorebook sort and search without changing saved membership. Presets and agents already use the selected sort.
  • Move the existing extra-actions menu immediately before Emoji, retaining Post Only and Guided generation.
  • Save a scene invitation with the reply/swipe and open the existing setup only when clicked. It survives reload and cancellation, preserves the resolved connection and /continue, and appears immediately for scene-only replies. Remove the old automatic-popup event path.
  • Request the PWA manifest with credentials, as required for authenticated manifests, and document the proxy check. See MDN's manifest deployment guidance.
  • Add changelog entries and update scene help. All ten translated packs are covered by #6517, which also addresses #6491. Discussions #6453 and #6498 remain outside this sweep.

Validation

  • pnpm check passes: formatting, localization, lint, types and production build. The existing GameNarration effect-dependency warning remains unchanged.
  • pnpm regression:prompt passes.
  • node scripts/run-regressions.mjs --filter scripts/regressions/command-only-regenerate.regression.ts passes, including scene-only persistence/SSE, continuation, swipe restoration, resolved connection and disabled-command handling.
  • pnpm smoke:ui e2e/sept22-assigned-sweep.e2e.ts: 18/18 pass across desktop Chromium, mobile Chromium and mobile WebKit. A further 12/12 pass after making evidence capture wait for menu animation. Synthetic fixtures cover sorting/search/membership, invitation click/cancel/reload/failed-plan recovery, and extra actions without sending.
  • Unmodified staging fails the new folder-sort and composer-position assertions. A separate local Basic Auth + Chromium CDP probe cannot read the manifest before the credential change and can read it afterward.
  • Full ARM64 Docker build and scripts/smoke-container.mjs pass, including API/frontend/native bindings and persistent data across restart.
  • Local CodeRabbit review is complete. Three earlier findings were fixed (resolved connection, continuation preservation, immediate scene-only message event); the final review, including new files, has zero findings.

Manual verification to complete

These checkboxes remain for human verification:

  • 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

Manually verify the new invitation with a real model, then try folder sorting and composer controls on a physical phone. Verify Android Chrome installation behind the deployment's actual Basic Auth/proxy setup. Browser emulation and the authenticated-manifest probe do not establish physical-device installability.

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)

No version bump or new dependency. Translation PR: #6517.

UI evidence

Before/after screenshots and proof notes. Desktop/light and mobile/dark screenshots were visually inspected; all chats and characters shown are synthetic fixtures.

Summary by CodeRabbit

  • New Features

    • Character-initiated scenes now appear as invitations with a Set up scene action, remaining available after cancellation or reload.
    • Scene invitations preserve their setup details and only begin preparation after confirmation.
    • Folder contents in Characters, Personas, and Lorebooks now follow the active sort order.
    • Quick-reply actions now appear beside the text composer before emoji controls.
    • PWA installation behind Basic Auth is supported on Android Chrome by requesting the manifest with credentials.
  • Documentation

    • Added troubleshooting guidance for Android Chrome PWA installation behind Basic Auth.
    • Updated scene setup instructions and release notes.

🔄 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/6516 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/22/2026 **Status:** ✅ Merged **Merged:** 9/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept22-assigned-issue-sweep` --- ### 📝 Commits (2) - [`699b853`](https://github.com/Pasta-Devs/Marinara-Engine/commit/699b8538e4f26ec0af4c71390e39353c792d6cfd) chore: begin assigned issue sweep - [`f45d830`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f45d830d8a45199596d2e662632837a2795043fd) fix: folder sorting, scene invitations, and chat controls ### 📊 Changes **17 files changed** (+340 additions, -117 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `docs/TROUBLESHOOTING.md` (+4 -0) 📝 `docs/roleplay/scenes.md` (+1 -1) ➕ `e2e/sept22-assigned-sweep.e2e.ts` (+183 -0) 📝 `packages/client/index.html` (+1 -1) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+4 -4) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+8 -0) ➕ `packages/client/src/components/chat/ConversationSceneInvitation.tsx` (+52 -0) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+10 -5) 📝 `packages/client/src/components/panels/LorebooksPanel.tsx` (+2 -4) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+6 -4) 📝 `packages/client/src/hooks/use-generate.ts` (+0 -31) 📝 `packages/client/src/localization/locales/en.json` (+4 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+22 -12) ➖ `packages/server/src/services/generation/conversation-scene-command-runtime.ts` (+0 -53) 📝 `packages/shared/src/types/chat.ts` (+11 -0) 📝 `scripts/regressions/command-only-regenerate.regression.ts` (+27 -2) </details> ### 📄 Description ## Linked issue Closes #6507 Closes #6497 Closes #6496 Closes #6492 ## Why this change Folder contents ignore the selected sidebar sort, the extra-actions menu sits next to Send, automatic scene setup covers conversation replies, and Basic Auth prevents Chrome from reading the PWA manifest. This sweep follows the maintainer's comments and reuses the existing controls and scene setup flow. ## What changed - Folder members follow the selected character/persona/lorebook sort and search without changing saved membership. Presets and agents already use the selected sort. - Move the existing extra-actions menu immediately before Emoji, retaining Post Only and Guided generation. - Save a scene invitation with the reply/swipe and open the existing setup only when clicked. It survives reload and cancellation, preserves the resolved connection and `/continue`, and appears immediately for scene-only replies. Remove the old automatic-popup event path. - Request the PWA manifest with credentials, as required for authenticated manifests, and document the proxy check. See [MDN's manifest deployment guidance](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest#deploying_a_manifest). - Add changelog entries and update scene help. All ten translated packs are covered by #6517, which also addresses #6491. Discussions #6453 and #6498 remain outside this sweep. ## Validation - `pnpm check` passes: formatting, localization, lint, types and production build. The existing GameNarration effect-dependency warning remains unchanged. - `pnpm regression:prompt` passes. - `node scripts/run-regressions.mjs --filter scripts/regressions/command-only-regenerate.regression.ts` passes, including scene-only persistence/SSE, continuation, swipe restoration, resolved connection and disabled-command handling. - `pnpm smoke:ui e2e/sept22-assigned-sweep.e2e.ts`: **18/18 pass** across desktop Chromium, mobile Chromium and mobile WebKit. A further **12/12 pass** after making evidence capture wait for menu animation. Synthetic fixtures cover sorting/search/membership, invitation click/cancel/reload/failed-plan recovery, and extra actions without sending. - Unmodified staging fails the new folder-sort and composer-position assertions. A separate local Basic Auth + Chromium CDP probe cannot read the manifest before the credential change and can read it afterward. - Full ARM64 Docker build and `scripts/smoke-container.mjs` pass, including API/frontend/native bindings and persistent data across restart. - Local CodeRabbit review is complete. Three earlier findings were fixed (resolved connection, continuation preservation, immediate scene-only message event); the final review, including new files, has zero findings. ### Manual verification to complete These checkboxes remain for human verification: - [ ] `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` Manually verify the new invitation with a real model, then try folder sorting and composer controls on a physical phone. Verify Android Chrome installation behind the deployment's actual Basic Auth/proxy setup. Browser emulation and the authenticated-manifest probe do not establish physical-device installability. ## 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) No version bump or new dependency. Translation PR: #6517. ## UI evidence [Before/after screenshots and proof notes](https://gist.github.com/SpicyMarinara/05d58a5a5ef44bac3391071fee8bd249). Desktop/light and mobile/dark screenshots were visually inspected; all chats and characters shown are synthetic fixtures. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Character-initiated scenes now appear as invitations with a **Set up scene** action, remaining available after cancellation or reload. - Scene invitations preserve their setup details and only begin preparation after confirmation. - Folder contents in Characters, Personas, and Lorebooks now follow the active sort order. - Quick-reply actions now appear beside the text composer before emoji controls. - PWA installation behind Basic Auth is supported on Android Chrome by requesting the manifest with credentials. - **Documentation** - Added troubleshooting guidance for Android Chrome PWA installation behind Basic Auth. - Updated scene setup instructions and release notes. <!-- 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:17: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#7209
No description provided.