#15953: fix: Android/Termux node fails to discover commands
gateway
stale
size: S
Cluster:
Cross-Platform Fixes
## Summary
This PR fixes the issue where Android/Termux nodes connect successfully but fail to execute any commands due to an empty commands array. The root cause was that the Android platform default allowlist in `node-command-policy.ts` did not include `SYSTEM_COMMANDS` (containing `system.run`, `system.which`, etc.). When a node connects, the gateway filters the node's declared commands against the platform allowlist, and since these commands were missing from Android's defaults, the filtered list became empty.
## Changes
- Added `...SYSTEM_COMMANDS` to the Android platform defaults in `PLATFORM_DEFAULTS` in `src/gateway/node-command-policy.ts`
- This aligns Android with other command-capable platforms (macos, linux, windows) that already include `SYSTEM_COMMANDS`
## Testing
- Ran existing unit tests: `npx vitest run src/gateway/node-command-policy.test.ts` - 2 tests pass
- Ran gateway test suite: `npx vitest run --config vitest.gateway.config.ts` - 315 tests pass
- Linting passes with no warnings
Fixes openclaw/openclaw#15944
Most Similar PRs
#8311: feat(gateway): add SYSTEM_COMMANDS to Android node allowlist
by ipv1337 · 2026-02-03
75.8%
#23326: fix(daemon): graceful degradation on unsupported platforms
by indistinctchatter604 · 2026-02-22
68.9%
#7060: fix: handle uv_interface_addresses failure on Android/Termux
by kjoh94 · 2026-02-02
65.8%
#20014: fix(nodes): use formatExecCommand for approval request command text
by openperf · 2026-02-18
63.7%
#22341: fix(status): detect node-only mode and show remote gateway info
by therk · 2026-02-21
63.4%
#9433: fix: pass raw command string to node exec instead of argv array
by dbottme · 2026-02-05
63.1%
#5496: Fix: Windows path separators stripped in Gateway scheduled task
by giuliozelante · 2026-01-31
62.6%
#15951: fix: Android production build permits cleartext traffic globally
by coygeek · 2026-02-14
62.6%
#18112: fix(daemon): gateway install on macOS ignores fnm/nvm node (#18090)
by yinghaosang · 2026-02-16
61.9%
#8683: fix: Exec approval bypass via client-controlled flags in system.run
by coygeek · 2026-02-04
61.9%