Files
hermes-agent/tests
teknium1 a4716a8cd2 test(api_server): drive the real _run_agent call site through handler cancellation
The salvaged regression exercises the worker counter and the shutdown gate
directly; this one drives the production entry point (APIServerAdapter._run_agent),
cancels the handler task while the executor thread is parked in the turn, and
asserts the worker-scoped count survives the cancellation and is released only when
the worker exits. Reverting just the api_server.py call-site hunk turns it red.

Refs #116535.
2026-09-20 13:20:55 -07:00
..
…
…