OpenClaw Parallels Smoke
Use this skill for Parallels guest workflows and smoke interpretation. Do not load it for normal repo work.
Global rules
- Use the snapshot most closely matching the requested fresh baseline.
- Gateway verification in smoke runs should use
openclaw gateway status --deep --require-rpcunless the stable version being checked does not support it yet. - Stable
2026.3.12pre-upgrade diagnostics may require a plaingateway status --deepfallback. - Treat
precheck=latest-ref-failon that stable pre-upgrade lane as baseline, not automatically a regression. - Pass
--jsonfor machine-readable summaries. - Per-phase logs land under
/tmp/openclaw-parallels-*. - Do not run local and gateway agent turns in parallel on the same fresh workspace or session.
- For
prlctl exec, pass the VM name before--current-user(prlctl exec "$VM" --current-user ...), not the other way around. - If the workflow installs OpenClaw from a repo checkout instead of the site installer/npm release, finish by installing a real guest CLI shim and verifying it in a fresh guest shell.
pnpm openclaw ...inside the repo is not enough for handoff parity. - On macOS guests, prefer a user-global install plus a stable PATH-visible shim:
- install with
NPM_CONFIG_PREFIX="$HOME/.npm-global" npm install -g . - make sure
~/.local/bin/openclawexists or~/.npm-global/binis on PATH - verify from a brand-new guest shell with
which openclawandopenclaw --version
- install with
npm install then update
- Preferred entrypoint:
pnpm test:parallels:npm-update - Flow: fresh snapshot -> install npm package baseline -> smoke -> install current main tgz on the same guest -> smoke again.
- Same-guest update verification should set the default model explicitly to
openai/gpt-5.4before the agent turn and use a fresh explicit--session-idso old session model state does not leak into the check. - The aggregate npm-update wrapper must resolve the Linux VM with the same Ubuntu fallback policy as
parallels-linux-smoke.shbefore both fresh and update lanes. On Peter's current host, missingUbuntu 24.04.3 ARM64should fall back toUbuntu 25.10. - On Windows same-guest update checks, restart the gateway after the npm upgrade before
gateway status/agent; in-place global npm updates can otherwise leave stale hasheddist/*module imports alive in the running service. - For Windows same-guest update checks, prefer the done-file/log-drain PowerShell runner pattern over one long-lived
prlctl exec ... powershell -EncodedCommand ...transport. The guest can finish successfully while the outerprlctl execstill hangs. - Linux same-guest update verification should also export
HOME=/root, passOPENAI_API_KEYviaprlctl exec ... /usr/bin/env, and useopenclaw agent --local; the fresh Linux baseline does not rely on persisted gateway credentials.
CLI invocation footgun
- The Parallels smoke shell scripts should tolerate a literal bare
--arg sopnpm test:parallels:* -- --jsonand similar forwarded invocations work without needing to callbash scripts/e2e/...directly.
macOS flow
- Preferred entrypoint:
pnpm test:parallels:macos - Default to the snapshot closest to
macOS 26.3.1 latest. - On Peter's Tahoe VM,
fresh-latest-march-2026can hang inprlctl snapshot-switch; if restore times out there, rerun with--snapshot-hint 'macOS 26.3.1 latest'before blaming auth or the harness. - The macOS smoke should include a dashboard load phase after gateway health: resolve the tokenized URL with
openclaw dashboard --no-open, verify the served HTML contains the Control UI title/root shell, then open Safari and require an established localhost TCP connection from Safari to the gateway port. prlctl execis fine for deterministic repo commands, but use the guest Terminal orprlctl enterwhen installer parity or shell-sensitive behavior matters.- Multi-word
openclaw agent --message ...checks should go through a guest shell wrapper (guest_current_user_sh/guest_current_user_clior/bin/sh -lc ...), not rawprlctl exec ... node openclaw.mjs ..., or the message can be split into extra argv tokens and Commander reportstoo many arguments for 'agent'. - When ref-mode onboarding stores
OPENAI_API_KEYas an env secret ref, the post-onboard agent verification should also exportOPENAI_API_KEYfor the guest command. The gateway can still reject with pairing-required and fall back to embedded execution, and that fallback needs the env-backed credential available in the shell. - On the fresh Tahoe snapshot,
brewexists butnodemay be missing from PATH in noninteractive exec. Use/opt/homebrew/bin/nodewhen needed. - Fresh host-served tgz installs should install as guest root with
HOME=/var/root, then run onboarding as the desktop user viaprlctl exec --current-user. - Root-installed tgz smoke can log plugin blocks for world-writable
extensions/*; do not treat that as an onboarding or gateway failure unless plugin loading is the task.
Windows flow
- Preferred entrypoint:
pnpm test:parallels:windows - Use the snapshot closest to
pre-openclaw-native-e2e-2026-03-12. - Always use
prlctl exec --current-user; plainprlctl execlands inNT AUTHORITY\\SYSTEM. - Prefer explicit
npm.cmdandopenclaw.cmd. - Use PowerShell only as the transport with
-ExecutionPolicy Bypass, then call the.cmdshims from inside it. - Multi-word
openclaw agent --message ...checks should call& $openclaw ...inside PowerShell, notStart-Process ... -ArgumentListagainstopenclaw.cmd, or Commander can see split argv and throwtoo many arguments for 'agent'. - Windows installer/tgz phases now retry once after guest-ready recheck; keep new Windows smoke steps idempotent so a transport-flake retry is safe.
- Windows global
npm install -gphases can stay quiet for a minute or more even when healthy; inspect the phase log before calling it hung, and only treat it as a regression once the retry wrapper or timeout trips. - Fresh Windows ref-mode onboard should use the same background PowerShell runner plus done-file/log-drain pattern as the npm-update helper, including startup materialization checks, host-side timeouts on short poll
prlctl execcalls, and retry-on-poll-failure behavior for transient transport flakes. - Fresh Windows ref-mode agent verification should set
OPENAI_API_KEYin the PowerShell environment before invokingopenclaw.cmd agent, for the same pairing-required fallback reason as macOS. - The Windows upgrade smoke lane should restart the managed gateway after
upgrade.install-mainand beforeupgrade.onboard-ref, or the old process can keep the previous gateway token and failgateway-healthwithunauthorized: gateway token mismatch. - Keep onboarding and status output ASCII-clean in logs; fancy punctuation becomes mojibake in current capture paths.
- If you hit an older run with
rc=255plus an emptyfresh.install-main.logorupgrade.install-main.log, treat it as a likelyprlctl exectransport drop after guest start-up, not immediate proof of an npm/package failure.
Linux flow
- Preferred entrypoint:
pnpm test:parallels:linux - Use the snapshot closest to fresh
Ubuntu 24.04.3 ARM64. - If that exact VM is missing on the host, fall back to the closest Ubuntu guest with a fresh poweroff snapshot. On Peter's host today, that is
Ubuntu 25.10. - Use plain
prlctl exec;--current-useris not the right transport on this snapshot. - Fresh snapshots may be missing
curl, andapt-get updatecan fail on clock skew. Bootstrap withapt-get -o Acquire::Check-Date=false updateand installcurl ca-certificates. - Fresh
maintgz smoke still needs the latest-release installer first because the snapshot has no Node or npm before bootstrap. - This snapshot does not have a usable
systemd --usersession; managed daemon install is unsupported. prlctl execreaps detached Linux child processes on this snapshot, so detached background gateway runs are not trustworthy smoke signals.- Treat
gateway=skipped-no-detached-linux-gatewayplusdaemon=systemd-user-unavailableas baseline on that Linux lane, not a regression.
Discord roundtrip
- Discord roundtrip is optional and should be enabled with:
--discord-token-env--discord-guild-id--discord-channel-id
- Keep the Discord token only in a host env var.
- Use installed
openclaw message send/read, notnode openclaw.mjs message .... - Set
channels.discord.guildsas one JSON object, not dotted config paths with snowflakes. - Avoid long
prlctl enteror expect-driven Discord config scripts; preferprlctl exec --current-user /bin/sh -lc ...with short commands. - For a narrower macOS-only Discord proof run, the existing
parallels-discord-roundtripskill is the deep-dive companion.