mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
CuaDriverBackend caches a long-lived cua-driver subprocess for the life of the Hermes process, and stop() was never called from anywhere — the driver outlived the session that spawned it. #69903 stopped the orphan from pegging a core by disabling the cursor overlay, but left the process behind; this is item 3 of #28152 ("Hermes does not keep the driver alive after tool completion"). Register an atexit hook, mirroring browser_tool's atexit.register(_emergency_cleanup_all_sessions). atexit only, no signal handlers, for the prompt_toolkit reason documented there. reset_backend_for_tests now reuses the same teardown instead of repeating it. |
||
|---|---|---|
| .. | ||
| test_cua_atexit_teardown.py | ||
| test_cua_cli_fallback_env.py | ||
| test_cua_no_overlay.py | ||
| test_cua_perf_knobs.py | ||
| test_cua_spawn_env_sanitization.py | ||
| test_cua_telemetry.py | ||
| test_doctor.py | ||
| test_permissions_resolution.py | ||