Skip to content

The agent that grows with you

fix(uninstall): mark darwin-only os.getuid as windows-footgun ok

Austin Pickett284c1b08054e
diff --git a/hermes_cli/uninstall.py b/hermes_cli/uninstall.py
index 951fe58cafa..b00a5587588 100644
--- a/hermes_cli/uninstall.py
+++ b/hermes_cli/uninstall.py
@@ -323,7 +323,7 @@ def _remove_launchd_gateway() -> bool:
job whose plist is gone.
"""
plists = _launchd_gateway_plists()
- uid = os.getuid()
+ uid = os.getuid() # windows-footgun: ok — darwin-only (called from the macOS branch)
for plist_path in plists:
label = plist_path.stem
for domain in (f"gui/{uid}", f"user/{uid}"):