Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(termux): pin guest bootstrap and align platform contracts

Rahmanb3368c37996b
diff --git a/.env.example b/.env.example
index b488138e..3596f255 100644
--- a/.env.example
+++ b/.env.example
@@ -325,6 +325,12 @@ OS_AGENT_MEMORY_JIT_CHARS=8000
# MSO_BENCH_PROVIDER=openai-codex
# MSO_BENCH_MODEL=gpt-5.6-terra
+# --- Constrained guest builds (optional) ---
+# Limit Next build workers for small PRoot/Android guests; normal builds leave unset.
+# MSO_BUILD_CPUS=1
+# Enable the smaller-memory Next build configuration only on constrained guests.
+# MSO_LOW_MEMORY_BUILD=1
+
# --- Build metadata (optional) ---
# Shown in Settings → About, and compared against the checkout's HEAD by the
# Software-update panel to tell "a build is pending" from "up to date". Set at BUILD
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index f263d58d..59c19b4a 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -12,6 +12,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `termux` pin guest bootstrap and align platform contracts
- `ci` keep PAT scope case parseable by strict Semgrep
**Tests**
diff --git a/lib/platform-support.test.ts b/lib/platform-support.test.ts
index 22a92461..bb3fdbb8 100644
--- a/lib/platform-support.test.ts
+++ b/lib/platform-support.test.ts
@@ -27,7 +27,7 @@ function dispatcherSmoke(uname: string, extraEnv: Partial<NodeJS.ProcessEnv> = {
`#!/bin/sh
[ "\${1:-}" = -n ] && exit 0
if grep -q 'macOS compatibility bootstrap' "\${1:-}" 2>/dev/null; then printf macos >"$MSO_TEST_DISPATCH_LOG"; fi
-if grep -q 'MSO bootstrap for Termux/Android' "\${1:-}" 2>/dev/null; then printf android >"$MSO_TEST_DISPATCH_LOG"; fi
+if grep -q 'Termux is only the launcher' "\${1:-}" 2>/dev/null; then printf android >"$MSO_TEST_DISPATCH_LOG"; fi
exit 0
`,
{ mode: 0o755 },
@@ -112,7 +112,8 @@ describe("MSO platform support contract", () => {
});
it("prevents Termux recursion inside the Ubuntu guest", () => {
- expect(TERMUX_INSTALLER).toContain("unset PREFIX TERMUX_VERSION");
+ expect(TERMUX_INSTALLER).toContain('proot-distro login "$DISTRO" --user "$GUEST_USER" -- /usr/bin/env -i');
+ expect(TERMUX_INSTALLER).not.toMatch(/\/bin\/bash -lc(?:\s|['"])/);
});
it("keeps guest-side shell variables literal until guest execution", () => {
diff --git a/scripts/install.sh b/scripts/install.sh
index b5fd0227..c9a24177 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -14,7 +14,7 @@ CORE_URL="${MSO_INSTALL_CORE_URL:-https://raw.githubusercontent.com/rahmanef63/m
CORE_SHA256="794d8893285c045a8ab608d8c1d2803188b4a2a13058695d6c1fd54520973b65"
CORE_EOF='# MSO_INSTALLER_CORE_EOF'
MACOS_SHA256="668ec3c8bbf3ee36dc2ae70952c3ba43c6f73ebc3acd6956fa4be2f65a076bfe"
-TERMUX_SHA256="27c1a7d558c51ec875d17fd4a02a49e9e309eeb57fb306f62ea8de890ae2e65d"
+TERMUX_SHA256="7e8a07634c2256c2db5970e579d679dd1978f2a8120a4282d206690f37166e13"
TMP_INSTALLER=''
TMP_PLATFORM=''