Files
hermes-agent/plugins
unsupportedpastels f10bfdbe1f gateway: address BearHuddleston review findings on parallel secondary connects
Address all five Should-fix findings and the docs update from
@BearHuddleston's review of
https://github.com/NousResearch/hermes-agent/pull/160236:

1. Photon sidecar install lock (`plugins/platforms/photon/adapter.py`,
   `plugins/platforms/photon/sidecar/.gitignore`): hold an exclusive
   flock/msvcrt lock in the shared sidecar directory across the deps
   checks and `npm ci`, preventing concurrent Photon profiles (each
   loaded under its own per-home module name) from clobbering
   `node_modules` or spawning against a half-installed tree.
2. Systemd boot-deadline renewal (`gateway/run_adapters.py`,
   `gateway/run_adapters_recovery.py`,
   `website/docs/user-guide/messaging/index.md`): renew systemd's
   `Type=notify` start timeout before every preparation step (each
   profile load and each enabled platform build), drop the 30 s
   throttle and `prep_renewed_at`, and update the messaging docs for
   wave-based secondary startup.
3. Remove test-only serial fallback (`gateway/run_adapters.py`): delete
   `_uses_default_profile_starter`, `_DEFAULT_START_ONE_PROFILE_ADAPTERS`,
   and the serial fallback branch, and update boot-sweep test stubs to
   `_prepare_one_profile_adapters` so boot tests cover the real
   parallel production path.
4. Serialize WhatsApp secondary connects one per wave
   (`gateway/run_adapters_recovery.py`): add `_ONE_PER_WAVE_PLATFORMS`
   for `Platform.WHATSAPP` and `wave_keys` on `_StagedProfileAdapter`
   so WhatsApp secondaries connect one per wave in profile order while
   other platforms still connect in the first wave.
5. Off-loop WhatsApp bridge deps install
   (`plugins/platforms/whatsapp/adapter.py`): run
   `_ensure_bridge_deps` via `asyncio.to_thread` so a cold/stale npm
   install does not block the event loop and time out sibling connects
   in the same wave.
2026-11-26 00:56:51 -05:00
..
…