[PR #1655] [MERGED] fix(browser): support Termux Android scenarios #4729

Closed
opened 2026-10-31 00:54:26 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/1655
Author: @tyloryang
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @morluto

Base: main ← Head: fix/termux-android-browser


📝 Commits (3)

  • 5942e40 fix(browser): support Termux Android scenarios
  • 1172a68 fix(build): lock Termux artifact generation
  • 26f1535 ci(android): add manual Termux browser smoke verification

📊 Changes

11 files changed (+384 additions, -3 deletions)

View changed files

➕ .github/workflows/real-termux.yml (+57 -0)
📝 docs/testing.md (+29 -0)
📝 package-lock.json (+16 -0)
📝 package.json (+4 -0)
📝 scripts/rea.mjs (+16 -1)
➕ scripts/verify/termux/browser.mjs (+86 -0)
➕ scripts/verify/termux/emulator.sh (+67 -0)
➕ scripts/verify/termux/in-app.sh (+33 -0)
📝 src/browser/PlaywrightScenarioBrowser.test.ts (+43 -1)
📝 src/browser/PlaywrightScenarioBrowser.ts (+21 -1)
📝 vitest.config.ts (+12 -0)

📄 Description

Summary

  • add an Android-specific Playwright cache fallback before browser modules load
  • retain Termux exec interception for Chromium and use the Android-compatible Chromium flags
  • add a Termux build script using an isolated TypeScript 5.9 compiler because TypeScript 7 has no Android native compiler package
  • cover Android launch options and environment propagation

Validation

  • npm run build:termux
  • node_modules/.bin/vitest run src/browser/PlaywrightScenarioBrowser.test.ts
  • node scripts/verify-test-discovery.mjs
  • node scripts/rea.mjs mcp doctor --format json
  • Real Chromium 138.0.7204.168 capture through capture-browser-scenario: loaded a local HTTP page and captured URL plus DOM.

Notes

The Android launch path uses Chromium --no-sandbox --single-process. This is required on Termux because its Chromium renderer cannot cross Android executable boundaries in Playwright multi-process mode.


🔄 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/morluto/rea/pull/1655 **Author:** [@tyloryang](https://github.com/tyloryang) **Created:** 10/10/2026 **Status:** ✅ Merged **Merged:** 10/11/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `fix/termux-android-browser` --- ### 📝 Commits (3) - [`5942e40`](https://github.com/morluto/rea/commit/5942e40bc60491f251941e4b8a45040a6cc7f27d) fix(browser): support Termux Android scenarios - [`1172a68`](https://github.com/morluto/rea/commit/1172a688bc87e154046dcbf5a928cdecdbd85b69) fix(build): lock Termux artifact generation - [`26f1535`](https://github.com/morluto/rea/commit/26f15354e26ecb218d2c9164e55a8329fb60c859) ci(android): add manual Termux browser smoke verification ### 📊 Changes **11 files changed** (+384 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/real-termux.yml` (+57 -0) 📝 `docs/testing.md` (+29 -0) 📝 `package-lock.json` (+16 -0) 📝 `package.json` (+4 -0) 📝 `scripts/rea.mjs` (+16 -1) ➕ `scripts/verify/termux/browser.mjs` (+86 -0) ➕ `scripts/verify/termux/emulator.sh` (+67 -0) ➕ `scripts/verify/termux/in-app.sh` (+33 -0) 📝 `src/browser/PlaywrightScenarioBrowser.test.ts` (+43 -1) 📝 `src/browser/PlaywrightScenarioBrowser.ts` (+21 -1) 📝 `vitest.config.ts` (+12 -0) </details> ### 📄 Description ## Summary - add an Android-specific Playwright cache fallback before browser modules load - retain Termux exec interception for Chromium and use the Android-compatible Chromium flags - add a Termux build script using an isolated TypeScript 5.9 compiler because TypeScript 7 has no Android native compiler package - cover Android launch options and environment propagation ## Validation - `npm run build:termux` - `node_modules/.bin/vitest run src/browser/PlaywrightScenarioBrowser.test.ts` - `node scripts/verify-test-discovery.mjs` - `node scripts/rea.mjs mcp doctor --format json` - Real Chromium 138.0.7204.168 capture through `capture-browser-scenario`: loaded a local HTTP page and captured URL plus DOM. ## Notes The Android launch path uses Chromium `--no-sandbox --single-process`. This is required on Termux because its Chromium renderer cannot cross Android executable boundaries in Playwright multi-process mode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 00:54:26 +00: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
morluto/rea#4729
No description provided.