Files
hermes-agent/tools/computer_use
unsupportedpastels f88d9f9592 fix(computer-use): keep the cached driver's screen identity for a sandbox-hosted screen
desktop_identity() read DISPLAY from the local cua-driver child env. A
screen hosted inside the terminal backend no longer contributes to that
env, so the identity stopped changing when such a screen came up or went
away, and a cached backend was kept across that change.

It now reads the running Bot Desktop's published DISPLAY first, wherever
the screen is hosted, and falls back to the local child env when no screen
is published. The value is the same as before for gateway-hosted screens
and for sandbox-hosted ones, and the activity stamp is kept.

Tests: identity is ":20" while the sandbox screen is up, the local DISPLAY
once it is down (so the cached backend reads as stale), and the published
display for a gateway-hosted screen.
2026-11-12 19:13:34 -08:00
..
…
…
…