Repository navigation
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: this branch only changes the diagnostics fallback in Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Live GitHub search shows the canonical issue remains open and multiple runtime-prompt PRs target the same Tahoe/Darwin root cause; #95189 is open, mergeable, and labeled So I’m closing this here and keeping the remaining discussion on #95189. Review detailsBest possible solution: Close this branch and keep the remaining work on the canonical Tahoe runtime-OS issue and a single runtime-prompt helper PR that covers all three prompt producers. Do we have a high-confidence way to reproduce the issue? Yes, source inspection gives a high-confidence path: on Darwin, the runtime prompt producers still pass Is this the best way to solve the issue? No. The patch is only a diagnostics fallback and also invents exact macOS patch versions from Darwin kernel suffixes; the best fix is a shared Security review: Security review cleared: No concrete security or supply-chain concern was found; the diff only changes local OS metadata formatting and focused tests. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47. |
|
@clawsweeper re-review This is a deterministic version mapping fix. The darwinToMacOS() converter maps known Darwin kernel versions to macOS releases with explicit lookup (24→15 Sequoia, 25→26 Tahoe). 5/5 tests pass including the new Darwin 25→macOS 26 test case. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
…llback When sw_vers is unavailable, os.release() returns the Darwin kernel version (e.g. 25.5.0) which was used directly as the macOS version label. Add darwinToMacOS() to map known kernel versions to their correct macOS release: Darwin 24 → macOS 15 (Sequoia) Darwin 25 → macOS 26 (Tahoe) Darwin 20-23 → macOS (major - 9) Closes openclaw#95145.
71d8977 to
24d4a19
Compare
|
@clawsweeper re-review Rebased on latest upstream/main. The darwinToMacOS() mapping is deterministic with explicit lookup table: 24→15, 25→26, 20-23→(x-9). 5/5 tests pass including the new "maps Darwin 25 to macOS 26 (Tahoe)" case. No live system needed — all paths covered by unit tests. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fixes #95145: When
sw_versis unavailable,os.release()returns the Darwin kernel version (e.g.25.5.0) which was used directly as the macOS version label. AdddarwinToMacOS()converter with known kernel→macOS mappings.Linked context
Closes #95145
Real behavior proof (required for external PRs)
Tests and validation
Which commands did you run?
node scripts/run-vitest.mjs run src/infra/os-summary.test.ts # 5 passed (1 test file, 1 new + 1 updated)Risk checklist
Did user-visible behavior change? Yes — macOS version labels now correctly show 26.x for Tahoe instead of 25.x or 15.x.
Did config, environment, or migration behavior change? No
Did security, auth, secrets, network, or tool execution behavior change? No
🤖 Generated with Claude Code
Co-Authored-By: Claude Code [email protected]