[PR #7834] [MERGED] fix(release): merge main's v2.5.0 hotfixes back into staging and set Android versionCode 49 #7958

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

📋 Pull Request Information

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

Base: staging ← Head: fix/ready-main-backmerge


📝 Commits (10+)

  • 7e28236 Merge pull request #7160 from Pasta-Devs/staging
  • ab6f3f9 fix(termux): keep the server up when sharp's WebAssembly runtime is missing (#7173, #7189)
  • 2ec45b4 docs: Termux image library repair and crash note (#7173)
  • d1f3563 docs: existing thumbnails still show while Sharp cannot load (#7173)
  • a3b74c4 docs: only the built-in background removal needs Sharp (#7173)
  • d6b2feb chore(android): bump versionCode to 49 for the refreshed 2.5.0 APK
  • 25f464f fix(chat): keep chat controls off other screens and let the Agents button close its panel
  • 11e6eb4 test(e2e): make the covered-chat regression's return step deterministic
  • 27b3d5f test(e2e): cover a pinned chat window behind covering screens
  • 4828ebb fix(chat): move keyboard focus into the Tracker Panel when it covers the chat

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 android/app/build.gradle (+1 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Caution

Merge this PR with "Create a merge commit". Do not squash or rebase it. The PR exists to record main as an ancestor of staging. Squash or rebase would discard that ancestry, and the staging-to-main promotion would hit the same three conflicts again.

Warning

The release bump must use --android-version-code 50 or higher, never 49. The refreshed v2.5.0 APK already shipped with versionCode 49. Android rejects an update whose versionCode is not higher than the installed one, and scripts/sync-version.mjs does not check this for you. Use pnpm version:sync -- --android-version-code 50.

Linked issue

None. This is release-readiness housekeeping found while preparing the next staging-to-main promotion, so no issue was opened.

Why this change

  • main carries six v2.5.0 hotfix commits that were never merged back into staging. Promoting staging to main today conflicts in docs/roleplay/hud-and-trackers.md, packages/server/package.json and pnpm-lock.yaml.
  • A normal auto-merge would also quietly add a second copy of the AppShell effect "The overlay Tracker Panel hides the chat control…". Main's cherry-pick 4828ebb26 and staging's a8908a3d3 put it in different places, so git does not see them as the same change.
  • staging has Android versionCode 48, but the refreshed v2.5.0 APK shipped with 49. It was rebuilt from main 1fadc3448 on 2026-10-07 (d6b2feb91). A release built from staging's number would be one step behind the APK people already have.

What changed

  • Merge commit Merge origin/main (c56501495, v2.5.0 hotfixes) into staging uses git merge -s ours. It records main as an ancestor and keeps staging's tree byte for byte. That is correct because:
    • 431eaf74d, 8845cd4e3, 4828ebb26, 25f464f92 and ab6f3f9ca are already on staging. All five were cherry-picked from staging. A trial merge that takes staging's side (-X ours) differs from staging only in android/app/build.gradle and the duplicated AppShell effect.
    • Staging's side is correct in all three conflicts. Staging adds the desktop Tracker Panel paragraph, and it adds @earendil-works/pi-ai and pi-coding-agent 1.2.0. Main's own addition there, @emnapi/runtime, is already on staging.
  • One commit sets versionCode 49 in android/app/build.gradle to match the shipped APK (d6b2feb91). The file is now the same blob as on main.
  • Net effect against staging: git diff origin/staging HEAD --stat shows only android/app/build.gradle | 2 +-. No other file changes.

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

Commands the agent ran on fix/ready-main-backmerge (HEAD 3b4b538d2, base origin/staging b0de4167f, origin/main c56501495):

Command Result
git merge-tree --write-tree --name-only origin/staging origin/main (before) CONFLICT in the 3 files listed above, exit 1
git merge-base --is-ancestor origin/main HEAD exit 0
git merge-tree --write-tree origin/main HEAD clean, exit 0, and the result tree 5a5a75fbd equals HEAD^{tree}, so promotion is a fast-forward
git log --oneline origin/main --not HEAD 0 commits
git diff origin/staging HEAD --stat only android/app/build.gradle
grep -c "The overlay Tracker Panel hides the chat control" packages/client/src/components/layout/AppShell.tsx 1
pnpm install --frozen-lockfile --prefer-offline exit 0, pnpm-lock.yaml unchanged (same shasum)
node scripts/check-workspace-install.mjs exit 0
pnpm version:check "Version files are in sync for 2.5.0."
pnpm check exit 0 (format, lint, localization, impeccable, e2e and token-estimation types, server and client build). One existing warning in HomeProfessorMariChat.tsx, unrelated to this PR

After the run above, staging moved to 26f774e37 (#7832, Tripo removal), which touches none of the files in this PR. I simulated merging this PR into 26f774e37 with git merge-tree --write-tree origin/staging HEAD. The merge is clean and differs from 26f774e37 only in android/app/build.gradle. origin/main is an ancestor of the simulated merge, and merging main into it again leaves the tree unchanged.

Manual verification notes

  • Confirm the PR page shows "Create a merge commit" as the merge method before merging.
  • After merging, on a fresh fetch, confirm git merge-base --is-ancestor origin/main origin/staging exits 0. Then confirm the staging-to-main promotion PR shows no conflicts and no AppShell changes.
  • During the release, run pnpm version:sync -- --android-version-code 50, and confirm android/app/build.gradle reads versionCode 50.
  • On an Android device with the v2.5.0 APK (versionCode 49) installed, confirm the next release's APK installs as an update rather than failing with a "package conflicts" or downgrade error.

Risky lane: claim-boundary proof (release/update flow)

  • Core claim: after a merge-commit merge, origin/main is an ancestor of staging. The staging-to-main promotion is then conflict-free, and staging's Android versionCode equals the shipped APK's (49).
  • Risk type: release/update flow (branch ancestry, Android versionCode ordering).
  • Entrypoints touched: git history (one merge commit) and android/app/build.gradle versionCode. No runtime code, installer script, lockfile or docs content changes.
  • Current paths tested: frozen-lockfile install, workspace install check, version drift check and pnpm check on the merged tree.
  • Legacy paths tested: the v2.5.0 APK's versionCode (49) is read from origin/main's build.gradle (d6b2feb91). The staging build.gradle blob now matches it.
  • Positive rows: the ancestry check exits 0, the merge-tree with main is clean and equals HEAD's tree, and no main commits are missing from HEAD.
  • Negative controls: the same merge-tree against origin/staging (before this PR) still conflicts in 3 files. A plain -X ours trial merge would have added the duplicate AppShell effect (+7 lines). This PR's tree has the effect once.
  • Ground-truth facts used: git log --cherry-pick --right-only --no-merges origin/staging...origin/main listed the 6 main-only patches. Every file they touch is either identical on main and staging, or newer on staging with the hotfix hunk already present.
  • Manual blockers: an APK install-over-update on a real device and the actual promotion PR were not run here. Both are listed above.
  • Not proven: that the GitHub "Create a merge commit" setting is selected at merge time. A squash or rebase merge voids every claim above.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

No docs change. The only version-bearing edit is versionCode 48 to 49, which brings staging up to the APK that already shipped. It is not a new version bump.

UI evidence (if applicable)

Not applicable. No UI changes.

Summary by CodeRabbit

  • Release Information
    • No user-facing changes are included in this release. App features and displayed version information remain unchanged.

🔄 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/7834 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/ready-main-backmerge` --- ### 📝 Commits (10+) - [`7e28236`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7e28236962a000719dddc13f7fa2630f88b51816) Merge pull request #7160 from Pasta-Devs/staging - [`ab6f3f9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ab6f3f9ca694443498f5175ca807e96a17e8bf2b) fix(termux): keep the server up when sharp's WebAssembly runtime is missing (#7173, #7189) - [`2ec45b4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ec45b413dac9f54c3fe21614c125f1e4d18d0f4) docs: Termux image library repair and crash note (#7173) - [`d1f3563`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d1f3563fbce99c83bee6d5f821241a9b316c94a8) docs: existing thumbnails still show while Sharp cannot load (#7173) - [`a3b74c4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3b74c4577ed99c681c21a4392061c9be42926c7) docs: only the built-in background removal needs Sharp (#7173) - [`d6b2feb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6b2feb91dcd3a515592455d008c3b66da683fac) chore(android): bump versionCode to 49 for the refreshed 2.5.0 APK - [`25f464f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/25f464f92c34502404f7c6a48a735e9f7c0d9eec) fix(chat): keep chat controls off other screens and let the Agents button close its panel - [`11e6eb4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/11e6eb4b2ca295b363465c1be1a6b806130ac7fb) test(e2e): make the covered-chat regression's return step deterministic - [`27b3d5f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/27b3d5f8bc4934e0151d182c0f340071da9d4559) test(e2e): cover a pinned chat window behind covering screens - [`4828ebb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4828ebb26b1add5a2d919a20d8f2b117e964ed6d) fix(chat): move keyboard focus into the Tracker Panel when it covers the chat ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `android/app/build.gradle` (+1 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> > [!CAUTION] > **Merge this PR with "Create a merge commit".** Do not squash or rebase it. The PR exists to record `main` as an ancestor of `staging`. Squash or rebase would discard that ancestry, and the staging-to-main promotion would hit the same three conflicts again. > [!WARNING] > **The release bump must use `--android-version-code 50` or higher, never 49.** The refreshed v2.5.0 APK already shipped with versionCode 49. Android rejects an update whose versionCode is not higher than the installed one, and `scripts/sync-version.mjs` does not check this for you. Use `pnpm version:sync -- --android-version-code 50`. ## Linked issue None. This is release-readiness housekeeping found while preparing the next staging-to-main promotion, so no issue was opened. ## Why this change - `main` carries six v2.5.0 hotfix commits that were never merged back into `staging`. Promoting `staging` to `main` today conflicts in `docs/roleplay/hud-and-trackers.md`, `packages/server/package.json` and `pnpm-lock.yaml`. - A normal auto-merge would also quietly add a **second copy** of the AppShell effect "The overlay Tracker Panel hides the chat control…". Main's cherry-pick `4828ebb26` and staging's `a8908a3d3` put it in different places, so git does not see them as the same change. - `staging` has Android `versionCode 48`, but the refreshed v2.5.0 APK shipped with **49**. It was rebuilt from main `1fadc3448` on 2026-10-07 (`d6b2feb91`). A release built from staging's number would be one step behind the APK people already have. ## What changed - **Merge commit** `Merge origin/main (c56501495, v2.5.0 hotfixes) into staging` uses `git merge -s ours`. It records `main` as an ancestor and keeps staging's tree byte for byte. That is correct because: - `431eaf74d`, `8845cd4e3`, `4828ebb26`, `25f464f92` and `ab6f3f9ca` are already on staging. All five were cherry-picked from staging. A trial merge that takes staging's side (`-X ours`) differs from staging only in `android/app/build.gradle` and the duplicated AppShell effect. - Staging's side is correct in all three conflicts. Staging adds the desktop Tracker Panel paragraph, and it adds `@earendil-works/pi-ai` and `pi-coding-agent` 1.2.0. Main's own addition there, `@emnapi/runtime`, is already on staging. - **One commit** sets `versionCode 49` in `android/app/build.gradle` to match the shipped APK (`d6b2feb91`). The file is now the same blob as on `main`. - Net effect against `staging`: `git diff origin/staging HEAD --stat` shows **only** `android/app/build.gradle | 2 +-`. No other file changes. ## 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` Commands the agent ran on `fix/ready-main-backmerge` (HEAD `3b4b538d2`, base `origin/staging` `b0de4167f`, `origin/main` `c56501495`): | Command | Result | | --- | --- | | `git merge-tree --write-tree --name-only origin/staging origin/main` (before) | CONFLICT in the 3 files listed above, exit 1 | | `git merge-base --is-ancestor origin/main HEAD` | exit 0 | | `git merge-tree --write-tree origin/main HEAD` | clean, exit 0, and the result tree `5a5a75fbd` equals `HEAD^{tree}`, so promotion is a fast-forward | | `git log --oneline origin/main --not HEAD` | 0 commits | | `git diff origin/staging HEAD --stat` | only `android/app/build.gradle` | | `grep -c "The overlay Tracker Panel hides the chat control" packages/client/src/components/layout/AppShell.tsx` | 1 | | `pnpm install --frozen-lockfile --prefer-offline` | exit 0, `pnpm-lock.yaml` unchanged (same shasum) | | `node scripts/check-workspace-install.mjs` | exit 0 | | `pnpm version:check` | "Version files are in sync for 2.5.0." | | `pnpm check` | exit 0 (format, lint, localization, impeccable, e2e and token-estimation types, server and client build). One existing warning in `HomeProfessorMariChat.tsx`, unrelated to this PR | After the run above, `staging` moved to `26f774e37` (#7832, Tripo removal), which touches none of the files in this PR. I simulated merging this PR into `26f774e37` with `git merge-tree --write-tree origin/staging HEAD`. The merge is clean and differs from `26f774e37` only in `android/app/build.gradle`. `origin/main` is an ancestor of the simulated merge, and merging main into it again leaves the tree unchanged. ### Manual verification notes - Confirm the PR page shows **"Create a merge commit"** as the merge method before merging. - After merging, on a fresh fetch, confirm `git merge-base --is-ancestor origin/main origin/staging` exits 0. Then confirm the staging-to-main promotion PR shows no conflicts and no AppShell changes. - During the release, run `pnpm version:sync -- --android-version-code 50`, and confirm `android/app/build.gradle` reads `versionCode 50`. - On an Android device with the v2.5.0 APK (versionCode 49) installed, confirm the next release's APK installs as an update rather than failing with a "package conflicts" or downgrade error. ## Risky lane: claim-boundary proof (release/update flow) - **Core claim:** after a merge-commit merge, `origin/main` is an ancestor of `staging`. The staging-to-main promotion is then conflict-free, and staging's Android versionCode equals the shipped APK's (49). - **Risk type:** release/update flow (branch ancestry, Android versionCode ordering). - **Entrypoints touched:** git history (one merge commit) and `android/app/build.gradle` `versionCode`. No runtime code, installer script, lockfile or docs content changes. - **Current paths tested:** frozen-lockfile install, workspace install check, version drift check and `pnpm check` on the merged tree. - **Legacy paths tested:** the v2.5.0 APK's versionCode (49) is read from `origin/main`'s `build.gradle` (`d6b2feb91`). The staging build.gradle blob now matches it. - **Positive rows:** the ancestry check exits 0, the merge-tree with main is clean and equals HEAD's tree, and no main commits are missing from HEAD. - **Negative controls:** the same merge-tree against `origin/staging` (before this PR) still conflicts in 3 files. A plain `-X ours` trial merge would have added the duplicate AppShell effect (+7 lines). This PR's tree has the effect once. - **Ground-truth facts used:** `git log --cherry-pick --right-only --no-merges origin/staging...origin/main` listed the 6 main-only patches. Every file they touch is either identical on main and staging, or newer on staging with the hotfix hunk already present. - **Manual blockers:** an APK install-over-update on a real device and the actual promotion PR were not run here. Both are listed above. - **Not proven:** that the GitHub "Create a merge commit" setting is selected at merge time. A squash or rebase merge voids every claim above. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) No docs change. The only version-bearing edit is `versionCode` 48 to 49, which brings staging up to the APK that already shipped. It is not a new version bump. ## UI evidence (if applicable) Not applicable. No UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Release Information** * No user-facing changes are included in this release. App features and displayed version information remain unchanged. <!-- 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-24 04:09:09 +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#7958
No description provided.