fix(agents): use macOS product version in runtime prompt OS metadata#95216
fix(agents): use macOS product version in runtime prompt OS metadata#952161052326311 wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close: the linked Tahoe runtime prompt bug is valid, but this branch is superseded by an open proof-positive candidate that covers the same three runtime prompt paths with a cached macOS product-version helper and focused regression coverage. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this branch as superseded and continue the canonical fix in #95189, or an equivalent cached, tested macOS-label implementation. So I’m closing this here and keeping the remaining discussion on #95189. Review detailsBest possible solution: Close this branch as superseded and continue the canonical fix in #95189, or an equivalent cached, tested macOS-label implementation. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows the three current runtime prompt builders still pass Is this the best way to solve the issue? No. The direction is right, but this branch returns a Darwin/product-version hybrid and bypasses the cached Security review: Security review cleared: No concrete security or supply-chain concern was found; the diff only changes local TypeScript OS metadata formatting. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47. |
|
Good approach. Would it make sense to handle edge cases like test as well? |
os.release() returns the Darwin kernel version (e.g. "25.5.0"), which diverged from the macOS marketing version starting with macOS 26 Tahoe. This caused agents to report "Darwin 25.5.0" instead of "Darwin 26.5.1". Add resolveAgentOsString() that uses sw_vers -productVersion on Darwin and update all three agent runtime-info sites to use it. Closes openclaw#95145
4d851cf to
e2f241d
Compare
Real behavior proofEnvironment: macOS 26.5.1 (Tahoe), Darwin kernel 25.5.0, Node v22.22.0 Drift proof (upstream/main → fix branch): Test evidence: Branch rebuilt: only 4 files changed (os-summary + 3 agent runtime-info sites). No Workboard commit. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Closes #95145
Summary
os.release()returns the Darwin kernel version (e.g. "25.5.0"), which diverged from the macOS marketing version starting with macOS 26 Tahoe. Agents reported "Darwin 25.5.0" instead of "Darwin 26.5.1" in their runtime prompts.Changes
resolveAgentOsString()tosrc/infra/os-summary.tsthat usessw_vers -productVersionon Darwinsrc/agents/embedded-agent-runner/compact.tssrc/agents/embedded-agent-runner/run/attempt.tssrc/agents/cli-runner/helpers.tsTest