You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(os): use sw_vers for macOS version on Darwin instead of os.release() (#95225)
* fix(os): use sw_vers for macOS version on Darwin instead of os.release()
* fix: cache sw_vers, keep resolveOsSummary().release as raw kernel version
Addresses ClawSweeper P1 findings on #95225:
1. Cache sw_vers output for process lifetime: resolveDarwinProductVersion()
is called on the agent prompt hot path (3 callers via resolveOsProductLabel).
Without caching, every prompt build spawns a synchronous subprocess.
Added module-level cache + _resetCachedDarwinProductVersion() for tests.
2. Keep resolveOsSummary().release as os.release(): changing release from
raw kernel to product version breaks status JSON and trajectory metadata
consumers that expect the Darwin kernel release. The darwin product
version is now used only in the label field.
* fix(os): preserve runtime OS labels off Darwin
0 commit comments