Files
hermes-agent/tests/computer_use
alt-glitch c5eb493375 refactor(browser-desktop): move computer_use test seams out of tools/computer_use/tool.py
Four things in tool.py existed only for tests:

- the module-level _backend injection hook (its own comment: "backward-
  compatible empty-session injection hook (older tests)") and its mirror
  branches in _install_backend, _detach_locked, _get_backend and
  _shutdown_backend_atexit. Production installs backends only through
  _new_backend into the _backends cache, so with nothing assigning _backend
  every branch was a no-op. The two tests that assigned it now patch
  _new_backend, the seam the rest of the suite already uses; the atexit
  tests seed _backends instead.
- reset_backend_for_tests, now tests/computer_use_fakes.reset_backend (the
  same two calls: _shutdown_backend_atexit, _reset_screenshot_dedup).
- _noop_stub and _NoopBackend (pragma: no cover, docstring "Test stub"),
  moved verbatim to tests/computer_use_fakes.py as noop_stub / NoopBackend.
- the _bounds_scale and _bounds_space_note lambdas, which only indexed
  _bounds_hints; the tests index _bounds_hints directly.

None of these names is in hermes_cli/data/plugin_api.json (it publishes
tools.computer_use.backend only) or tests/compat/old_updater_surface.json.
2026-11-16 21:54:46 +05:30
..