Conversation
| ) | ||
| from dimos.utils import prompt | ||
|
|
||
| # Named constants for test readability (buffer sizes, powers of 2) |
There was a problem hiding this comment.
this comment is noise (will delete)
Greptile SummaryThis PR fixes a macOS-only bug in Confidence Score: 5/5Safe to merge — targeted one-line logic fix with a correctly updated test suite and no breaking changes. The bug is well-understood (bisection loop silently skipping the save when target halves to equal current), the fix is minimal and provably correct, the No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["fix() called\nfor each (key, target, current) in needs"] --> B{"target >= current\nAND target > 0?"}
B -- No --> G["_save_sysctl_conf(saved)"]
B -- Yes --> C["_write_sysctl_int(key, target)"]
C -- success --> D["saved[key] = target\nbreak"]
C -- CalledProcessError --> E["target //= 2"]
E --> B
D --> G
style E fill:#f9a,stroke:#c00
style D fill:#afa,stroke:#060
style B fill:#aef,stroke:#06a
Reviews (1): Last reviewed commit: "-" | Re-trigger Greptile |
Problem
#1789 had an bug for MacOS.
Solution
Main fix is
>=instead of>the rest is a test readability/consistency cleanup.Breaking Changes
None.
How to Test
MacOS only
Contributor License Agreement