- app_start.mjs: launch env moves HOME/USERPROFILE/XDG dirs into the
throwaway profile so a packaged app's terminal-command setup cannot
touch ~/.local/bin or shell profiles (launch_env.mjs, tested)
- ErrorRecovery: Try Again reloads the renderer for dynamic-import
failures; resetting the boundary replayed React.lazy's cached rejection
- bench.py idle(): always take one RSS sample and guard the CPU division
for a zero or tiny --idle-window
Addresses review: app_start.mjs passed the caller's OMNIVOICE_*,
VOICESTUDIO_* and proxy variables to Electron, unlike bench.py's backend
isolation, so a developer's settings could redirect the data folder.
The two #3940 fragments are merged into one.
Addresses review: with a proxy set and no loopback exception, the
benchmark's readiness checks went through the proxy and waited out the
300 s timeout although the backend was up.
scripts/bench/bench.py measures backend spawn-to-ready, startup steps,
idle RSS/CPU and boot import times; bundle.mjs reports renderer chunk
sizes and checks them against bundle-baseline.json; app_start.mjs times
Electron launch to first paint and Home plus idle CPU. Runs are isolated
from user data and network: throwaway data dir and profile, offline HF,
a dead proxy for outbound HTTP, updater off, non-local requests aborted.