Repository navigation
fix(devices): report available host memory - #144535
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesGateway and paired-node memory readings include reclaimable memory on macOS through one shared reader. Example: The supplied Devices captures use a 64 GB macOS host with controlled memory readings.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR repairs a real macOS diagnostics bug that remains on current main and the latest release; no actionable correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway system.info and paired-node resource snapshots supply memory readings to the Control UI, which subtracts available bytes from total bytes to render utilization. flowchart TD
A[Host memory] --> B[Shared platform reader]
B --> C[Gateway system info]
B --> D[Node host sampler]
D --> E[Node stats publication]
C --> F[Control UI memory meters]
E --> F
Technical reviewBest possible solution: Keep the shared Darwin-aware reader and preserve other platforms, existing wire fields, and the distinction between host utilization and memory pressure. Do we have a high-confidence way to reproduce the issue? Current-main producers count only Darwin free pages, and the Devices renderer converts that reading into exaggerated utilization; official-release reports support this source path, but this review ran no target code. Is this the best way to solve the issue? Correcting both producers through one native runtime reader addresses the cause without shell probes, threshold changes, or additional configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d7f014ae5dea. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +16, Tests +56, Docs +2. Total +74 across 6 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (8 earlier review cycles)
Reviewed October 10, 2026, 9:14 AM ET / 13:14 UTC (Revision 9). |
f55c5ea to
dd62b2a
Compare
a3dc853 to
5033fdf
Compare
5033fdf to
e166e82
Compare
e166e82 to
4dfcc1d
Compare
4dfcc1d to
5fea1c7
Compare
|
I verified the prepared change on Linux Crabbox. Independent review found no actionable P0–P2 issues.
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(devices): report available host memory * fix(devices): use prepared Gateway context in platform coverage --------- Co-authored-by: Altay <[email protected]>
What Problem This Solves
macOS Devices meters count reclaimable cache as used memory.
Fixes #144176
User Impact
Gateway and paired-node meters include reclaimable memory on macOS; Linux and Windows readings stay unchanged.
Why This Change Was Made
Both producers share one platform-aware reader. Utilization remains distinct from kernel memory pressure.
Evidence