From 3d8887bba1a0b4e53fe9e44842c1f884e6663760 Mon Sep 17 00:00:00 2001 From: Zhengshou Lai Date: Tue, 18 Aug 2026 00:56:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(ollama):=20os.getuid()=20=E4=BB=85=20POSIX?= =?UTF-8?q?=20=E2=80=94=E2=80=94=20Windows=20import=20=E5=B4=A9=E6=BA=83?= =?UTF-8?q?=EF=BC=88xiaohe.exe=20smoke=20=E5=A4=B1=E8=B4=A5=E6=A0=B9?= =?UTF-8?q?=E5=9B=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- myagents/commands/ollama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myagents/commands/ollama.py b/myagents/commands/ollama.py index a6ff152..1074760 100644 --- a/myagents/commands/ollama.py +++ b/myagents/commands/ollama.py @@ -37,7 +37,7 @@ from myagents.ollama_adapter import listen_url console = Console() -_UID = os.getuid() +_UID = os.getuid() if hasattr(os, "getuid") else None # POSIX-only; launchctl paths are macOS _LOG_DIR = Path.home() / ".xiaohe" / "logs"