tinycomputer cursor-overlay: shipped helper not found by default, and PATH fallback runs any same-named binary
Summary
Two problems with the tinycomputer (formerly tinydesktop) v0.5.2 cursor-overlay helper:
- With the module loaded into OpenHuman, the shipped
tinycomputer-cursor-overlayis not found by default, so the agent's on-screen cursor is silently not drawn. - The lookup falls back to
PATH, so OpenHuman's process will spawn any executable namedtinycomputer-cursor-overlayfound onPATH.
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)(tinycomputercrates/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:$HELPER_ENV, when set;- 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; - the first
tinycomputer-cursor-overlayonPATH.
- So with no
cursor.overlayconfig, step 2 misses the shipped helper, and step 3 runs whatever same-named executable sits earliest onPATH, with OpenHuman's privileges and TCC grants. - If none is found,
ScreenCursor::newmaps the spawn error toNone(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-overlayplaced earlier onPATHis not executed. - Linux: no helper is spawned, and nothing errors.
Related
- tinycomputer v0.5.2 migration PR (linked from there)
- #6750
Source: tinyhumansai/openhuman