[PR #4856] [MERGED] Fix assigned mobile, Gemini, Home, and chat profile issues #6517

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issue-sweep-aug-10-round-3


📝 Commits (3)

  • 5408572 chore: start assigned issue sweep
  • 14891ae fix: resolve assigned mobile and profile issues
  • 358149f fix: harden reviewed profile and Gemini boundaries

📊 Changes

12 files changed (+218 additions, -25 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 e2e/core-flows.e2e.ts (+81 -3)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+3 -1)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+1 -1)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+11 -9)
📝 packages/server/src/app.ts (+2 -1)
📝 packages/server/src/routes/chat-presets.routes.ts (+12 -2)
📝 packages/server/src/routes/connections.routes.ts (+6 -1)
📝 packages/server/src/services/llm/providers/google.provider.ts (+31 -6)
📝 packages/server/src/services/storage/chat-presets.storage.ts (+2 -1)
📝 packages/shared/src/types/chat-preset.ts (+4 -0)
📝 scripts/regressions/open-issues.regression.ts (+61 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #4849
Closes #4850
Closes #4854
Closes #4855

Why this change

  • Assigned users can currently hit four narrow failures: reusable settings profiles can cross mode and branch boundaries, the Termux Home fallback can recurse into a 404, legacy Gemini connections keep /v1, and mobile Home retains obsolete browser controls.

What changed

  • Reject profile application across chat modes before writes, migrate imported visual_novel profiles to Roleplay, and strip/preserve branch identity at the profile boundary.
  • Serve the production SPA fallback directly from index.html instead of re-entering Fastify static 404 handling.
  • Normalize legacy Google Gemini /v1 base URLs to /v1beta for checks, model listing, chat generation, and embeddings.
  • Hide the fake address row on mobile and remove the close action from embedded Professor Mari tabs on desktop and mobile.
  • Add focused API/provider/Home regression coverage and Unreleased changelog notes.

Validation

Automated evidence from this branch:

  • pnpm check passed.

  • pnpm regression:static-cache passed.

  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts passed.

  • Seven targeted desktop/mobile Chromium tests passed for Home, Professor Mari, and chat settings profiles; three project-inapplicable cases skipped.

  • A production build injection of /mobile-launch returned the SPA shell with HTTP 200.

  • 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

  • Manually verify the mobile Home header contains tabs and Bookmarks with no address row.
  • Manually verify Professor Mari stays navigable exclusively through the Home tab and has no close action.
  • Manually verify a Termux production launch opens Home rather than a black 404 page.
  • Manually verify a saved legacy Gemini connection loads models and sends a message.

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)

The Unreleased changelog is updated. No user-facing documentation or release metadata changed.

UI evidence (if applicable)

  • Responsive behavior is covered by passing desktop (1440×900) and mobile (390×844) Chromium tests. The in-app preview connection was unavailable, so no screenshot is attached.

Summary by CodeRabbit

  • Bug Fixes

    • Chat profiles now preserve roleplay mode during import.
    • Profiles with incompatible chat modes are no longer applied.
    • Branch-specific metadata is excluded when applying profiles.
    • Legacy Google API URLs are automatically corrected.
    • Unknown routes now load correctly in Termux.
  • UI Improvements

    • The mobile Home view hides the desktop address row.
    • Embedded Professor Mari chats no longer show a close button.
  • Quality Improvements

    • Expanded automated coverage for profile migration, routing, and mobile layouts.

🔄 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/4856 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `agent/assigned-issue-sweep-aug-10-round-3` --- ### 📝 Commits (3) - [`5408572`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5408572de56abd6489641108d3050930776b30e7) chore: start assigned issue sweep - [`14891ae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14891aed7d8f57a4aa5f6b731e8d4d31be302809) fix: resolve assigned mobile and profile issues - [`358149f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/358149fb9e93358fec807e06adddf793d59aed19) fix: harden reviewed profile and Gemini boundaries ### 📊 Changes **12 files changed** (+218 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `e2e/core-flows.e2e.ts` (+81 -3) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+3 -1) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+1 -1) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+11 -9) 📝 `packages/server/src/app.ts` (+2 -1) 📝 `packages/server/src/routes/chat-presets.routes.ts` (+12 -2) 📝 `packages/server/src/routes/connections.routes.ts` (+6 -1) 📝 `packages/server/src/services/llm/providers/google.provider.ts` (+31 -6) 📝 `packages/server/src/services/storage/chat-presets.storage.ts` (+2 -1) 📝 `packages/shared/src/types/chat-preset.ts` (+4 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+61 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository staging branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #4849 Closes #4850 Closes #4854 Closes #4855 ## Why this change - Assigned users can currently hit four narrow failures: reusable settings profiles can cross mode and branch boundaries, the Termux Home fallback can recurse into a 404, legacy Gemini connections keep `/v1`, and mobile Home retains obsolete browser controls. ## What changed - Reject profile application across chat modes before writes, migrate imported `visual_novel` profiles to Roleplay, and strip/preserve branch identity at the profile boundary. - Serve the production SPA fallback directly from `index.html` instead of re-entering Fastify static 404 handling. - Normalize legacy Google Gemini `/v1` base URLs to `/v1beta` for checks, model listing, chat generation, and embeddings. - Hide the fake address row on mobile and remove the close action from embedded Professor Mari tabs on desktop and mobile. - Add focused API/provider/Home regression coverage and Unreleased changelog notes. ## Validation Automated evidence from this branch: - `pnpm check` passed. - `pnpm regression:static-cache` passed. - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` passed. - Seven targeted desktop/mobile Chromium tests passed for Home, Professor Mari, and chat settings profiles; three project-inapplicable cases skipped. - A production build injection of `/mobile-launch` returned the SPA shell with HTTP 200. - [ ] `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 - Manually verify the mobile Home header contains tabs and Bookmarks with no address row. - Manually verify Professor Mari stays navigable exclusively through the Home tab and has no close action. - Manually verify a Termux production launch opens Home rather than a black 404 page. - Manually verify a saved legacy Gemini connection loads models and sends a message. ## 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) The Unreleased changelog is updated. No user-facing documentation or release metadata changed. ## UI evidence (if applicable) - Responsive behavior is covered by passing desktop (1440×900) and mobile (390×844) Chromium tests. The in-app preview connection was unavailable, so no screenshot is attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Chat profiles now preserve roleplay mode during import. - Profiles with incompatible chat modes are no longer applied. - Branch-specific metadata is excluded when applying profiles. - Legacy Google API URLs are automatically corrected. - Unknown routes now load correctly in Termux. - **UI Improvements** - The mobile Home view hides the desktop address row. - Embedded Professor Mari chats no longer show a close button. - **Quality Improvements** - Expanded automated coverage for profile migration, routing, and mobile layouts. <!-- 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:11:10 +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#6517
No description provided.