From c97f6aa0b2c3eb02acdaf738e8293b8e3671ac0b Mon Sep 17 00:00:00 2001 From: Jin Yi Date: Sun, 7 Sep 2025 14:29:45 +0900 Subject: [PATCH] Fix OS reporting in /system_stats API to use sys.platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace os.name with sys.platform for more detailed OS identification. This change provides better OS differentiation: - Windows: "nt" -> "win32" - macOS: "posix" -> "darwin" - Linux: "posix" -> "linux" Previously, both macOS and Linux returned "posix", making them indistinguishable. Now each OS has a unique identifier, aligning with the Registry Specifications for proper compatibility checks. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 8f9c88ebf..92c764c45 100644 --- a/server.py +++ b/server.py @@ -558,7 +558,7 @@ class PromptServer(): system_stats = { "system": { - "os": os.name, + "os": sys.platform, "ram_total": ram_total, "ram_free": ram_free, "comfyui_version": __version__,