Files
hermes-ui/docs/chat-chain-changes/2026-10-22-bridge-bootstrap-before-ready.md

20 lines
1.2 KiB
Markdown

---
date: 2026-10-22
feature: Agent Bridge startup
impact: Prevent first-turn connection loss during Hermes interpreter relaunch
commit: pending
---
# Initialize Hermes before Bridge readiness
- Commit: pending local validation.
- Feature: Agent Bridge process startup, first chat/context estimate.
- Cause: importing run_agent after the worker socket was ready invoked Hermes bootstrap, which execed from the selected dependency venv into managed Python and dropped the in-flight request.
- Change: run Hermes bootstrap in the manager launch command before starting the broker. Workers inherit the selected interpreter; vendored Python and Socket.IO contracts remain unchanged.
- Validation: focused manager and bridge tests, cold-worker context estimates and first chat, production build.
## Results
- Harness and full production build passed.
- Focused manager/concurrency suite: 54 passed; two pre-existing no-source tests also fail unchanged on this host because a global Hermes checkout exists.
- Cold magic-conch and snowy-owl context estimates succeeded; the first snowy-owl chat completed with OK.
- Focused browser chat streaming test passed with one worker. Broad parallel browser run: 3 passed, 8 input-locator failures; no client code changed.