[GH-ISSUE #7214] [Issue]: In-app updater installs every platform's binaries on Termux (about 1.7 GB) because of --force #4029

Closed
opened 2026-10-21 06:09:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7214

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On Android/Termux, the in-app updater installs dependencies with pnpm install --force --frozen-lockfile (PNPM_UPDATE_INSTALL_ARGS in packages/server/src/routes/updates.routes.ts). --force ignores pnpm's platform filtering and installs every platform's optional binaries, including all eight @anthropic-ai/claude-agent-sdk platform builds at about 220 MB each. That's roughly 1.7 GB of unusable downloads on a phone.

Expected behavior

An in-app update on Termux installs only what an android/arm64 install needs, like start-termux.sh does without --force.

Actual behavior

Measured during #7178's verification with pnpm 10.34.5: under --os android --cpu arm64, install --force still installed all 25 rollup platform packages and every claude-agent-sdk build. start-termux.sh deliberately avoids --force on Android for exactly this reason (see the comment in install_workspace_dependencies).

Steps to reproduce

  1. On Termux, update Engine through Settings → Advanced → Updates (in-app updater).
  2. Compare the .pnpm virtual store size before and after, or check that @anthropic-ai/claude-agent-sdk-linux-*, -darwin-* and -win32-* packages were installed.

Environment

  • Marinara Engine version: staging / 2.5.0
  • Install type: termux
  • OS + version: Android
  • Browser or app shell: any

Additional context

Found by the adversarial verifier of #7198 (#7178). Note: --force is what heals the stale-skipped state that caused #7173. With @emnapi/runtime now a direct dependency (#7179), the Android path may no longer need --force, or it could clear node_modules/.modules.yaml instead (the verified repair) and run a frozen install without --force. Check desktop updater behaviour stays unchanged.

Originally created by @SpicyMarinara on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7214 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On Android/Termux, the in-app updater installs dependencies with `pnpm install --force --frozen-lockfile` (`PNPM_UPDATE_INSTALL_ARGS` in `packages/server/src/routes/updates.routes.ts`). `--force` ignores pnpm's platform filtering and installs every platform's optional binaries, including all eight `@anthropic-ai/claude-agent-sdk` platform builds at about 220 MB each. That's roughly 1.7 GB of unusable downloads on a phone. ## Expected behavior An in-app update on Termux installs only what an android/arm64 install needs, like `start-termux.sh` does without `--force`. ## Actual behavior Measured during #7178's verification with pnpm 10.34.5: under `--os android --cpu arm64`, `install --force` still installed all 25 rollup platform packages and every claude-agent-sdk build. `start-termux.sh` deliberately avoids `--force` on Android for exactly this reason (see the comment in `install_workspace_dependencies`). ## Steps to reproduce 1. On Termux, update Engine through **Settings → Advanced → Updates** (in-app updater). 2. Compare the `.pnpm` virtual store size before and after, or check that `@anthropic-ai/claude-agent-sdk-linux-*`, `-darwin-*` and `-win32-*` packages were installed. ## Environment - Marinara Engine version: `staging` / 2.5.0 - Install type: termux - OS + version: Android - Browser or app shell: any ## Additional context Found by the adversarial verifier of #7198 (#7178). Note: `--force` is what heals the stale-`skipped` state that caused #7173. With `@emnapi/runtime` now a direct dependency (#7179), the Android path may no longer need `--force`, or it could clear `node_modules/.modules.yaml` instead (the verified repair) and run a frozen install without `--force`. Check desktop updater behaviour stays unchanged.
bsakaguchi 2026-10-21 06:09:41 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 7, 2026):

Fixed on staging by #7215. Ships to main with the next promotion.

<!-- gh-comment-id:6031233655 --> @SpicyMarinara commented on GitHub (Oct 7, 2026): Fixed on `staging` by #7215. Ships to `main` with the next promotion.
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#4029
No description provided.