#6756·openhuman

tinycomputer cursor-overlay: shipped helper not found by default, and PATH fallback runs any same-named binary

Author: M3gA-MindCreated Sep 28, 2026Updated Sep 28, 2026
Labelspriority: p2

Summary

Two problems with the tinycomputer (formerly tinydesktop) v0.5.2 cursor-overlay helper:

  1. With the module loaded into OpenHuman, the shipped tinycomputer-cursor-overlay is not found by default, so the agent's on-screen cursor is silently not drawn.
  2. The lookup falls back to PATH, so OpenHuman's process will spawn any executable named tinycomputer-cursor-overlay found on PATH.

This is a follow-up to the tinycomputer v0.5.2 migration, not a blocker for it.

Problem

  • The tinycomputer module runs in OpenHuman's process and spawns the overlay itself with Command::new(path) (tinycomputer crates/tinycomputer-cursor/src/screen/process.rs:51). openhuman has no reference to the helper.
  • ProcessOverlay::locate() (process.rs, v0.5.2) resolves the path in this order:
    1. $HELPER_ENV, when set;
    2. beside std::env::current_exe(), which inside OpenHuman is the OpenHuman binary's directory, not the module cache directory where the release archive extracts the helper;
    3. the first tinycomputer-cursor-overlay on PATH.
  • So with no cursor.overlay config, step 2 misses the shipped helper, and step 3 runs whatever same-named executable sits earliest on PATH, with OpenHuman's privileges and TCC grants.
  • If none is found, ScreenCursor::new maps the spawn error to None (screen/mod.rs, ProcessOverlay::spawn(...).ok()), so the only symptom is a cursor that never draws.
  • The release ships the helper only on macOS (tinycomputer-cursor-overlay) and Windows (tinycomputer-cursor-overlay.exe), beside the module library. Linux archives have none. The binaries are ad-hoc signed (linker-signed, no Team ID).

Solution (optional)

Whenever openhuman initializes the module, have it pass the module's own cursor.overlay config (supported by tinycomputer tinybus_module/dispatch.rs cursor_config) pointing at the helper inside the verified module cache directory. That makes the shipped, checksum-covered helper the one that runs, and the PATH fallback is never reached.

Separately, it may be worth raising upstream whether locate() should drop the PATH fallback for in-process use, or look beside the loaded module (as the engine's clipboard helper already does) rather than beside current_exe().

Acceptance criteria

  • Shipped helper runs: with the v0.5.2 artifact loaded, the overlay that starts is the one extracted from the verified release archive.
  • No PATH spawn: a tinycomputer-cursor-overlay placed earlier on PATH is not executed.
  • Linux: no helper is spawned, and nothing errors.

Related

  • tinycomputer v0.5.2 migration PR (linked from there)
  • #6750