[PR #7147] [MERGED] Prepare v2.5.0 staging release readiness #7500

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

📋 Pull Request Information

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

Base: staging ← Head: chore/prepare-v2.5.0


📝 Commits (10+)

  • b6211ca chore(release): prepare v2.5.0 version metadata (#7146)
  • b5f024a Merge branch 'staging' into chore/prepare-v2.5.0
  • 6d02214 fix(multiplayer): keep the room listener fair, dual-stack and answered on close
  • 0dc213c fix(multiplayer): end guest sessions cleanly and let players return
  • b31e6fe fix(multiplayer): clearer room status, scoped Leave and room roster edits
  • 163e602 fix(security): pin patched dependencies and harden Bunny Review (#7146)
  • a9c520f fix(multiplayer): give a departed seat back only to the same player
  • dfafa28 fix(chat): clear in-flight translation state when switching to an unloaded chat
  • 3cbbf1e test(e2e): match the plain-language agent cost help in chat-sweep
  • c1fb515 fix(server): keep the export image budget message on its 413

📊 Changes

127 files changed (+3350 additions, -619 deletions)

View changed files

📝 .github/workflows/bunny-review-auto.yml (+1 -1)
📝 .github/workflows/bunny-review.yml (+2 -0)
📝 CHANGELOG.md (+25 -0)
📝 README.md (+2 -2)
📝 android/README.md (+1 -1)
📝 android/app/build.gradle (+3 -3)
📝 docs/REMOTE_ACCESS.md (+1 -1)
📝 docs/TROUBLESHOOTING.md (+2 -2)
📝 docs/agents/built-in-agents.md (+4 -4)
📝 docs/home/professor-mari.md (+4 -4)
📝 e2e/advanced-memory.e2e.ts (+28 -6)
📝 e2e/assigned-chat-sweep.e2e.ts (+6 -6)
📝 e2e/chat-control-windows.e2e.ts (+13 -0)
📝 e2e/chat-position.e2e.ts (+1 -1)
📝 e2e/chat-settings-tools.ts (+6 -1)
📝 e2e/chat-settings-window.e2e.ts (+20 -3)
📝 e2e/chat-sweep.e2e.ts (+1 -1)
📝 e2e/claude-opus55.e2e.ts (+1 -1)
📝 e2e/conversation-background-opacity.e2e.ts (+6 -1)
📝 e2e/core-flows.e2e.ts (+84 -23)

...and 80 more files

📄 Description

Important

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

Linked issue

Closes #7146

Why this change

Staging is 1,800+ commits past v2.4.6 and becomes v2.5.0 today. This PR gives it one consistent version on every platform, adds the bug and security fixes found by a full audit of everything since v2.4.6 (with a dedicated multiplayer review), and gets the full browser regression matrix, which had gone unrun during the chat window redesign, passing again on desktop, Android-sized and iPhone-sized browsers.

What changed

Release metadata

  • v2.5.0 across the Engine, Home/PWA manifest, README, Windows installer and Android bootstrap (version code 48), with refreshed credits.
  • README and the Built-in agents guide list Quartermaster and Relationship Tracker as stable (they joined the stable catalog in Pasta-Devs/Marinara-Agents#1234).

Security

  • Pinned patched @fastify/busboy, proxy-addr, fast-copy and source-map-js (pnpm audit clean); removed the pnpm-workspace.yaml overrides block pnpm silently ignores.
  • Professor Mari: mari code check runs in her shell sandbox (no network, no secrets) and is refused without one; she cannot read or change the API-key encryption key file; her shell cannot write the saved-data folder.
  • /api/health only reports local model names and GPU details to this machine, a trusted network or a signed-in browser.
  • The disabled Bunny Review workflow can no longer run a pull request's Python modules with its secrets, and only trusts its own review markers.

Multiplayer (WIP): Stop/disable reaches connected guests; guests can rejoin as themselves (keeping their Game character); Leave is scoped to its chat; roster changes go through the room; stale sessions and failed ports no longer dead-end; correct Offline and toggle copy; IPv6 room addresses; per-address request and socket limits with idle-socket reaping; invisible-character names can't impersonate; guests see the host.

Data safety: streamed bulk chat export; same-name items kept in bulk lorebook/preset/profile ZIPs; oversized native exports import again (read in pieces); trash restore brings back agent lore; restored feature switches apply at once; server-folder backups work on Docker/Termux; honest export-budget error.

Platforms: Termux client builds get the heap they need on every path (first start after auto-update from v2.4.6, in-app updater, channel switch); Game Mode directed combat works over plain HTTP on phones (Kolache approved the one-liner); Chromium phones open a bubble on the first tap after a flick.

UI fixes found while repairing the matrix: Escape no longer closes a whole side panel when it was meant for a drag or picker; window buttons never stack; phone Help explains the Chat tools menu and labels map/party again; Home's phone browser bar matches the topbar; reduced motion skips theme transitions; Conversation message buttons work on phone-width WebKit; active sprites, Game translation state and the Trackers button position after chat switches; Game sheet labels and Decision warning colours.

Tests: ~60 stale browser tests updated to the redesigned Chat Settings window, phone layouts and plain-language copy, each with the product change that made it stale; no assertion weakened or skipped.

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

Evidence (automated, by Claude Code)

  • pnpm check passes on 22fa6467d. The complete Node regression lane passed 525/525 locally on the integrated branch before the last UI merges; CI runs it on every push.
  • Platform builds (this PR's platform-artifacts run): native install/build on macOS arm64 and Intel, Ubuntu and Windows; full and Lite containers on amd64 and arm64; Windows installer compile; Android debug APK and signing guard: all passed.
  • Signed APK (Actions-only build): same certificate as the published v2.4.6 APK (e42ab55f…), com.marinara.engine, versionCode 48, versionName 2.5.0.
  • Docker upgrade: data seeded in the published 2.4.6 image (characters, persona, lorebook, connection, two chats) read back identically on the staging image after the format 6 → 7 migration; v2.4.6 then refuses format 7 with an "update instead" error and leaves the files byte-identical.
  • Full browser matrix: 131 failures on the first candidate → 34 → 26 → final run on 22fa6467d (result to be added below).
  • Local CodeRabbit: 3 findings. Fixed: oversized-export detection when another tool reorders keys; pnpm read-root resolution in the sandbox. Dismissed with reason: "mari code check makes dist writable" — the check previously ran with no sandbox at all, its command is fixed to pnpm check, and any build-script output equals what a source edit produces on the next start.

Manual verification needed

  • Install the v2.5.0 APK over an existing v2.4.6 install on a real Android phone, then let Termux auto-update from v2.4.6 and confirm the first start builds and opens.
  • Run the Windows installer on a Windows machine and update an existing install.
  • Open Marinara on an iPhone over the LAN (Safari and Home Screen app): Chat Settings window, Chat tools menu, Help overlay, and a Game Mode fight.
  • Try multiplayer for the first time between two Engines, including Stop, rejoin and IPv6 if available.

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)

Docs touched: docs/REMOTE_ACCESS.md, docs/home/professor-mari.md, docs/agents/built-in-agents.md, docs/TROUBLESHOOTING.md, android/README.md, README; translation follow-up #7155. No main promotion, tag or release is included. The v2.5.0 What's New is #7153 (merge after this).

Known follow-ups not in this PR: opening Trash with thousands of entries is slow on desktop while Accent Pulse is on.

Summary by CodeRabbit

  • New Features

    • Chat Help now highlights mobile Chat tools and explains available tools.
    • Quartermaster and Relationship Tracker are listed as stable built-in agents.
    • Native character and persona JSON exports, including large files, can be imported.
  • Improvements

    • Multiplayer status and errors provide clearer guidance, and disconnected players are identified as offline.
    • Floating chat bubbles snap into place without overlapping.
    • Bulk chat exports stream their contents, and duplicate names are preserved in export archives.
    • Reduced-motion settings skip modal exit animations; Android client builds use a dedicated memory limit.
  • Security

    • Health checks reveal detailed local diagnostics only to authenticated callers.

🔄 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/7147 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/6/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/prepare-v2.5.0` --- ### 📝 Commits (10+) - [`b6211ca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b6211caf573e96a6dd9dd1c014370a6c1fac00b6) chore(release): prepare v2.5.0 version metadata (#7146) - [`b5f024a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b5f024a15c95a826f70c64dc967e3388cf193ce7) Merge branch 'staging' into chore/prepare-v2.5.0 - [`6d02214`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6d0221454ed5bba897536ba673f79b2be048dbb7) fix(multiplayer): keep the room listener fair, dual-stack and answered on close - [`0dc213c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0dc213c4bb9b8ce3461716fc3fabda94687864d0) fix(multiplayer): end guest sessions cleanly and let players return - [`b31e6fe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b31e6fee94202a7fea841f1dbe803f68dd08b891) fix(multiplayer): clearer room status, scoped Leave and room roster edits - [`163e602`](https://github.com/Pasta-Devs/Marinara-Engine/commit/163e6025d0a8ad3838ac643d4abf0533f7e2ab6a) fix(security): pin patched dependencies and harden Bunny Review (#7146) - [`a9c520f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a9c520fa64cf7ab5bf81838a196f0046e165846d) fix(multiplayer): give a departed seat back only to the same player - [`dfafa28`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dfafa28cc730d76d6e5d274d3e202d4ddf0a8655) fix(chat): clear in-flight translation state when switching to an unloaded chat - [`3cbbf1e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3cbbf1e807df94b91514e07d0a44f51204834131) test(e2e): match the plain-language agent cost help in chat-sweep - [`c1fb515`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c1fb51573a044a8d055f973b46703a0df78749c3) fix(server): keep the export image budget message on its 413 ### 📊 Changes **127 files changed** (+3350 additions, -619 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/bunny-review-auto.yml` (+1 -1) 📝 `.github/workflows/bunny-review.yml` (+2 -0) 📝 `CHANGELOG.md` (+25 -0) 📝 `README.md` (+2 -2) 📝 `android/README.md` (+1 -1) 📝 `android/app/build.gradle` (+3 -3) 📝 `docs/REMOTE_ACCESS.md` (+1 -1) 📝 `docs/TROUBLESHOOTING.md` (+2 -2) 📝 `docs/agents/built-in-agents.md` (+4 -4) 📝 `docs/home/professor-mari.md` (+4 -4) 📝 `e2e/advanced-memory.e2e.ts` (+28 -6) 📝 `e2e/assigned-chat-sweep.e2e.ts` (+6 -6) 📝 `e2e/chat-control-windows.e2e.ts` (+13 -0) 📝 `e2e/chat-position.e2e.ts` (+1 -1) 📝 `e2e/chat-settings-tools.ts` (+6 -1) 📝 `e2e/chat-settings-window.e2e.ts` (+20 -3) 📝 `e2e/chat-sweep.e2e.ts` (+1 -1) 📝 `e2e/claude-opus55.e2e.ts` (+1 -1) 📝 `e2e/conversation-background-opacity.e2e.ts` (+6 -1) 📝 `e2e/core-flows.e2e.ts` (+84 -23) _...and 80 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #7146 ## Why this change Staging is 1,800+ commits past v2.4.6 and becomes v2.5.0 today. This PR gives it one consistent version on every platform, adds the bug and security fixes found by a full audit of everything since v2.4.6 (with a dedicated multiplayer review), and gets the full browser regression matrix, which had gone unrun during the chat window redesign, passing again on desktop, Android-sized and iPhone-sized browsers. ## What changed **Release metadata** - v2.5.0 across the Engine, Home/PWA manifest, README, Windows installer and Android bootstrap (version code 48), with refreshed credits. - README and the Built-in agents guide list Quartermaster and Relationship Tracker as stable (they joined the stable catalog in Pasta-Devs/Marinara-Agents#1234). **Security** - Pinned patched `@fastify/busboy`, `proxy-addr`, `fast-copy` and `source-map-js` (`pnpm audit` clean); removed the `pnpm-workspace.yaml` overrides block pnpm silently ignores. - Professor Mari: `mari code check` runs in her shell sandbox (no network, no secrets) and is refused without one; she cannot read or change the API-key encryption key file; her shell cannot write the saved-data folder. - `/api/health` only reports local model names and GPU details to this machine, a trusted network or a signed-in browser. - The disabled Bunny Review workflow can no longer run a pull request's Python modules with its secrets, and only trusts its own review markers. **Multiplayer (WIP)**: Stop/disable reaches connected guests; guests can rejoin as themselves (keeping their Game character); Leave is scoped to its chat; roster changes go through the room; stale sessions and failed ports no longer dead-end; correct Offline and toggle copy; IPv6 room addresses; per-address request and socket limits with idle-socket reaping; invisible-character names can't impersonate; guests see the host. **Data safety**: streamed bulk chat export; same-name items kept in bulk lorebook/preset/profile ZIPs; oversized native exports import again (read in pieces); trash restore brings back agent lore; restored feature switches apply at once; server-folder backups work on Docker/Termux; honest export-budget error. **Platforms**: Termux client builds get the heap they need on every path (first start after auto-update from v2.4.6, in-app updater, channel switch); Game Mode directed combat works over plain HTTP on phones (Kolache approved the one-liner); Chromium phones open a bubble on the first tap after a flick. **UI fixes found while repairing the matrix**: Escape no longer closes a whole side panel when it was meant for a drag or picker; window buttons never stack; phone Help explains the Chat tools menu and labels map/party again; Home's phone browser bar matches the topbar; reduced motion skips theme transitions; Conversation message buttons work on phone-width WebKit; active sprites, Game translation state and the Trackers button position after chat switches; Game sheet labels and Decision warning colours. **Tests**: ~60 stale browser tests updated to the redesigned Chat Settings window, phone layouts and plain-language copy, each with the product change that made it stale; no assertion weakened or skipped. ## 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` ### Evidence (automated, by Claude Code) - `pnpm check` passes on `22fa6467d`. The complete Node regression lane passed 525/525 locally on the integrated branch before the last UI merges; CI runs it on every push. - Platform builds (this PR's `platform-artifacts` run): native install/build on macOS arm64 and Intel, Ubuntu and Windows; full and Lite containers on amd64 and arm64; Windows installer compile; Android debug APK and signing guard: all passed. - Signed APK (Actions-only build): same certificate as the published v2.4.6 APK (`e42ab55f…`), `com.marinara.engine`, versionCode 48, versionName 2.5.0. - Docker upgrade: data seeded in the published `2.4.6` image (characters, persona, lorebook, connection, two chats) read back identically on the staging image after the format 6 → 7 migration; v2.4.6 then refuses format 7 with an "update instead" error and leaves the files byte-identical. - Full browser matrix: 131 failures on the first candidate → 34 → 26 → final run on `22fa6467d` (result to be added below). - Local CodeRabbit: 3 findings. Fixed: oversized-export detection when another tool reorders keys; pnpm read-root resolution in the sandbox. Dismissed with reason: "`mari code check` makes dist writable" — the check previously ran with no sandbox at all, its command is fixed to `pnpm check`, and any build-script output equals what a source edit produces on the next start. ### Manual verification needed - Install the v2.5.0 APK over an existing v2.4.6 install on a real Android phone, then let Termux auto-update from v2.4.6 and confirm the first start builds and opens. - Run the Windows installer on a Windows machine and update an existing install. - Open Marinara on an iPhone over the LAN (Safari and Home Screen app): Chat Settings window, Chat tools menu, Help overlay, and a Game Mode fight. - Try multiplayer for the first time between two Engines, including Stop, rejoin and IPv6 if available. ## 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) Docs touched: `docs/REMOTE_ACCESS.md`, `docs/home/professor-mari.md`, `docs/agents/built-in-agents.md`, `docs/TROUBLESHOOTING.md`, `android/README.md`, README; translation follow-up #7155. No main promotion, tag or release is included. The v2.5.0 What's New is #7153 (merge after this). Known follow-ups not in this PR: opening Trash with thousands of entries is slow on desktop while Accent Pulse is on. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Chat Help now highlights mobile Chat tools and explains available tools. * Quartermaster and Relationship Tracker are listed as stable built-in agents. * Native character and persona JSON exports, including large files, can be imported. * **Improvements** * Multiplayer status and errors provide clearer guidance, and disconnected players are identified as offline. * Floating chat bubbles snap into place without overlapping. * Bulk chat exports stream their contents, and duplicate names are preserved in export archives. * Reduced-motion settings skip modal exit animations; Android client builds use a dedicated memory limit. * **Security** * Health checks reveal detailed local diagnostics only to authenticated callers. <!-- 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:20:24 +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#7500
No description provided.