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.

chore(port): translate Mac-line bug numbers into the local register

Ruben Lütke9b0e191d848d
diff --git a/docs/BUGS.md b/docs/BUGS.md
index f6c40067ce..15deabf125 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -5448,7 +5448,9 @@ undiagnosable in the field.
---
-## BUG-065: pynput's darwin keyboard listener aborts the whole app with SIGILL on macOS 15 — hotkeys replaced with a TSM-free Quartz tap backend (HIGH, FIXED 2026-07-17)
+## BUG-077: pynput's darwin keyboard listener aborts the whole app with SIGILL on macOS 15 — hotkeys replaced with a TSM-free Quartz tap backend (HIGH, FIXED 2026-07-17)
+
+<!-- Ported from the public Mac line (numbered BUG-065 there). -->
**Symptom.** During the first real Intel-Mac onboarding (macOS 15.7), the
desktop app died twice within seconds of the hotkey trigger arming — a native
@@ -5514,7 +5516,9 @@ wrapping the crash in try/except that can never catch a SIGILL.
---
-## BUG-066: fresh macOS install crashed at the final launch step — editable .pth invisible to the already-running installer (MEDIUM, FIXED 2026-07-17)
+## BUG-078: fresh macOS install crashed at the final launch step — editable .pth invisible to the already-running installer (MEDIUM, FIXED 2026-07-17)
+
+<!-- Ported from the public Mac line (numbered BUG-066 there). -->
**Symptom.** A fully successful fresh install (all six phases green, bundle
registered) ended in `ModuleNotFoundError: No module named 'jarvis'` from
diff --git a/jarvis/platform/macos_input_source.py b/jarvis/platform/macos_input_source.py
index b3df0b13f2..6b241275ec 100644
--- a/jarvis/platform/macos_input_source.py
+++ b/jarvis/platform/macos_input_source.py
@@ -1,4 +1,4 @@
-"""macOS keyboard-layout (TIS) main-thread guard (BUG-065).
+"""macOS keyboard-layout (TIS) main-thread guard (BUG-077).
macOS 15 enforces that the Text Input Source Services APIs
(``TISCopyCurrentKeyboardInputSource`` / ``TSMGetInputSourceProperty``,
@@ -194,7 +194,7 @@ def install_pynput_layout_guard() -> bool:
raise RuntimeError(
"macOS keyboard layout was not captured on the main thread; "
"refusing to call the TIS APIs off-main (the OS would kill "
- "the process with SIGILL, BUG-065)."
+ "the process with SIGILL, BUG-077)."
)
yield cached
diff --git a/jarvis/setup/macos_app_bundle.py b/jarvis/setup/macos_app_bundle.py
index 4b4d9a98de..2e541c3dcb 100644
--- a/jarvis/setup/macos_app_bundle.py
+++ b/jarvis/setup/macos_app_bundle.py
@@ -37,7 +37,7 @@ log = logging.getLogger(__name__)
APP_NAME = "Personal Jarvis"
APP_DIR_NAME = f"{APP_NAME}.app"
BUNDLE_ID = "com.personal-jarvis.desktop"
-# 2: stub launcher sets only LC_CTYPE (BUG-068 — LC_ALL leaked a de_DE
+# 2: stub launcher sets only LC_CTYPE (BUG-079 — LC_ALL leaked a de_DE
# LC_NUMERIC into native libs; libvosk then emitted malformed JSON). Bumping
# forces existing bundles through a rebuild on the next ensure pass.
_BUNDLE_FORMAT_VERSION = 2
diff --git a/jarvis/setup/macos_stub_launcher.c b/jarvis/setup/macos_stub_launcher.c
index 3d142ae517..64d40933ff 100644
--- a/jarvis/setup/macos_stub_launcher.c
+++ b/jarvis/setup/macos_stub_launcher.c
@@ -29,7 +29,7 @@ int main(int argc, char *argv[]) {
/* Finder-launched apps inherit no locale, which would make CPython
* decode paths and argv as ASCII. Mirror py2app's fix: force UTF-8.
*
- * ONLY LC_CTYPE — never LC_ALL (BUG-068): a plain `python` binary leaves
+ * ONLY LC_CTYPE — never LC_ALL (BUG-079): a plain `python` binary leaves
* LC_NUMERIC in the "C" locale, and native libraries rely on that when
* they format numbers. setlocale(LC_ALL, "") on a German macOS put
* LC_NUMERIC=de_DE into the whole process and libvosk then emitted
diff --git a/jarvis/trigger/backends/__init__.py b/jarvis/trigger/backends/__init__.py
index a826cd3b4c..b26bff98e5 100644
--- a/jarvis/trigger/backends/__init__.py
+++ b/jarvis/trigger/backends/__init__.py
@@ -78,7 +78,7 @@ def make_hotkey_backend() -> HotkeyBackend:
* ``win32`` → ``GlobalHotkeysBackend`` (relocated Windows logic, AD-7).
* else if ``capabilities.has_hotkey`` → ``QuartzHotkeyBackend`` on macOS
- (TSM-free event tap, BUG-065) or ``PynputBackend`` on Linux-X11.
+ (TSM-free event tap, BUG-077) or ``PynputBackend`` on Linux-X11.
* else → ``NoopBackend`` (Wayland or no ``pynput``; logged-once no-op, AD-8).
Never raises and never returns ``GlobalHotkeysBackend`` off Windows — the
@@ -101,7 +101,7 @@ def make_hotkey_backend() -> HotkeyBackend:
# pynput's darwin keyboard listener resolves the keyboard layout
# via HIToolbox TSM calls from its listener thread; modern macOS
# asserts those run on the main queue and aborts the process with
- # an uncatchable SIGILL (BUG-065). The Quartz tap backend matches
+ # an uncatchable SIGILL (BUG-077). The Quartz tap backend matches
# by physical keycode and never touches TSM.
from jarvis.trigger.backends.quartz import QuartzHotkeyBackend
diff --git a/jarvis/trigger/backends/pynput.py b/jarvis/trigger/backends/pynput.py
index 6109a2d0bb..fda9052c92 100644
--- a/jarvis/trigger/backends/pynput.py
+++ b/jarvis/trigger/backends/pynput.py
@@ -52,7 +52,7 @@ def _macos_hotkey_permissions_granted() -> bool:
def _macos_layout_guard_ready() -> bool:
- """Prime + install the TIS main-thread layout guard (BUG-065).
+ """Prime + install the TIS main-thread layout guard (BUG-077).
macOS 15 kills the process with an uncatchable SIGILL when pynput's
listener thread calls the TIS keyboard-layout APIs off the main thread.
@@ -235,7 +235,7 @@ class PynputBackend:
return
self._permission_check = _macos_hotkey_permissions_granted
- # BUG-065: pynput's listener thread calls the TIS keyboard-layout
+ # BUG-077: pynput's listener thread calls the TIS keyboard-layout
# APIs (HIToolbox) as it starts; on macOS 15 an off-main-thread
# TIS call is an uncatchable process kill (SIGILL, "Personal
# Jarvis quit unexpectedly"). Only start the listener once a
diff --git a/jarvis/trigger/backends/quartz.py b/jarvis/trigger/backends/quartz.py
index 369b98aecc..83a125b45c 100644
--- a/jarvis/trigger/backends/quartz.py
+++ b/jarvis/trigger/backends/quartz.py
@@ -1,4 +1,4 @@
-"""macOS hotkey backend via a Quartz ``CGEventTap`` (AD-8, BUG-065).
+"""macOS hotkey backend via a Quartz ``CGEventTap`` (AD-8, BUG-077).
Why not pynput on macOS: pynput's darwin keyboard listener resolves the
keyboard layout through the HIToolbox Text Services Manager
diff --git a/tests/unit/install/test_installer_update_contract.py b/tests/unit/install/test_installer_update_contract.py
index 34c8c8da78..e92a8eeecf 100644
--- a/tests/unit/install/test_installer_update_contract.py
+++ b/tests/unit/install/test_installer_update_contract.py
@@ -196,7 +196,7 @@ def test_desktop_registration_success_still_writes_full_log(
def test_macos_launch_survives_missing_editable_import(
monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
) -> None:
- """BUG-066: on a FRESH install the installer process predates the editable
+ """BUG-078: on a FRESH install the installer process predates the editable
install, so ``import jarvis`` fails in-process (.pth hooks only load at
interpreter startup). step_launch must fall back to launching by app name
instead of crashing after a fully successful install."""
diff --git a/tests/unit/platform/test_macos_input_source.py b/tests/unit/platform/test_macos_input_source.py
index c384883973..e23bf8a2c4 100644
--- a/tests/unit/platform/test_macos_input_source.py
+++ b/tests/unit/platform/test_macos_input_source.py
@@ -1,4 +1,4 @@
-"""Tests for the macOS TIS main-thread layout guard (BUG-065).
+"""Tests for the macOS TIS main-thread layout guard (BUG-077).
macOS 15 kills the process with an uncatchable SIGILL when the TIS
keyboard-layout APIs run off the main thread — which is where pynput calls
diff --git a/tests/unit/trigger/test_hotkey_backends.py b/tests/unit/trigger/test_hotkey_backends.py
index a22c37d1c0..043ba89dcb 100644
--- a/tests/unit/trigger/test_hotkey_backends.py
+++ b/tests/unit/trigger/test_hotkey_backends.py
@@ -72,7 +72,7 @@ def test_factory_selects_global_hotkeys_on_windows(patch_platform):
def test_factory_selects_quartz_on_macos_with_hotkey(patch_platform):
- """macOS gets the TSM-free Quartz tap backend, never pynput (BUG-065)."""
+ """macOS gets the TSM-free Quartz tap backend, never pynput (BUG-077)."""
from jarvis.trigger.backends import make_hotkey_backend
from jarvis.trigger.backends.pynput import PynputBackend
from jarvis.trigger.backends.quartz import QuartzHotkeyBackend
@@ -465,7 +465,7 @@ def test_pynput_backend_darwin_with_grant_starts_listener(monkeypatch):
def test_pynput_backend_darwin_without_layout_snapshot_degrades(monkeypatch, caplog):
- # BUG-065: macOS 15 kills the process (uncatchable SIGILL) when pynput's
+ # BUG-077: macOS 15 kills the process (uncatchable SIGILL) when pynput's
# listener thread calls the TIS keyboard-layout APIs off the main thread.
# With no main-thread layout snapshot the backend must degrade — no
# Listener at all — instead of letting the OS abort the app.
diff --git a/tests/unit/trigger/test_quartz_backend.py b/tests/unit/trigger/test_quartz_backend.py
index 55e0ae0b6f..b1a6801eea 100644
--- a/tests/unit/trigger/test_quartz_backend.py
+++ b/tests/unit/trigger/test_quartz_backend.py
@@ -1,6 +1,6 @@
"""QuartzHotkeyBackend contract: TSM-free chord matching + fail-closed gates.
-BUG-065: pynput's darwin keyboard listener dies with an uncatchable SIGILL on
+BUG-077: pynput's darwin keyboard listener dies with an uncatchable SIGILL on
modern macOS (HIToolbox TSM calls off the main queue). The Quartz backend
matches physical keycodes + modifier flags and must never import pynput's
listener machinery. These tests drive the chord matcher directly and pin the