fix(computer_use): add explicit encoding to /proc/version open()

This commit is contained in:
David Metcalfe 2026-06-27 17:51:27 -07:00 committed by Brooklyn Nicholson
parent 8d4f7a0002
commit f7a6c7a6e5

View file

@ -199,7 +199,7 @@ def _cua_no_overlay() -> bool:
if not os.environ.get("DISPLAY"):
return True
try:
with open("/proc/version") as f:
with open("/proc/version", encoding="utf-8") as f:
if "microsoft" in f.read().lower():
return True
except Exception: