Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

ci(appshot): check that macOS text copy survives an app without a locale

rubenluetke10-beepc1b399baa5e0
diff --git a/scripts/ci/appshot_desktop_smoke.py b/scripts/ci/appshot_desktop_smoke.py
index aa3d95eda9..abbdce4810 100644
--- a/scripts/ci/appshot_desktop_smoke.py
+++ b/scripts/ci/appshot_desktop_smoke.py
@@ -225,6 +225,14 @@ def check_text_clipboard(report: Report) -> None:
report.add("text copy accepted by the OS", ok)
report.add("text copy returns promptly", took < 3.0, f"{took:.2f}s")
report.add("text reads back unchanged", read_text() == text)
+ if _session() == "macos":
+ # An app started from Finder or the Dock has no locale variables.
+ saved = {k: os.environ.pop(k) for k in ("LANG", "LC_ALL", "LC_CTYPE") if k in os.environ}
+ try:
+ write_text(text)
+ report.add("text survives an app started without a locale", read_text() == text)
+ finally:
+ os.environ.update(saved)
def check_jarvisx_copy(report: Report) -> None: