Repository navigation
fix: replace deprecated fetch_update with CAS loop - #183
Conversation
…dget The `try_acquire` method on `CallBudget` now uses a manual compare-and-swap loop instead of `fetch_update`, which has been deprecated on the latest stable Rust toolchain. The replacement avoids `try_update` as well, since that API is not available in the project's minimum supported Rust version. Auto-committed-on: dragonfly
Tiny Sweeper reviewTiny Sweeper reviewed this change across 6 lane(s) and found 0 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below. State: Incomplete Review snapshot
Completeness: Incomplete What changedThe review could not produce a supported behavioral summary; inspect the cited changed surface and lane details below. FeaturesNone identified with supported citations. TestsNo supported feature-to-test mapping was produced. Test execution is not inferred.
FindingsNo active actionable findings. Could not review: src/memory/persona/distill.rs, tinysweeper/description, tinysweeper/e2e, tinysweeper/tests Before merge
How this fits togetherflowchart LR
n0["CallBudget<br/>changed"]:::changed
n1["digest_session"]:::impacted
n2["unlimited"]:::impacted
n3["digest_window"]:::impacted
n4["digest_window_recovering"]:::impacted
n5["windows"]:::impacted
n6["new"]:::impacted
n1 -->|uses| n0
n1 -->|calls| n4
n1 -->|calls| n5
n1 -->|calls| n6
n1 -->|uses| n6
n2 -->|calls| n6
n3 -->|uses| n0
n4 -->|uses| n0
n4 -->|calls| n3
n4 -->|calls| n6
n5 -->|calls| n6
classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Agent review detailscritique
security
tests
commits
description
e2e
Evidence and run details
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesCall budget
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Call reservations remain bounded, and exhausted budgets still prevent provider calls. No concrete merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
A rabbit checks the counter’s pace Comment |
Newest stable deprecates
AtomicUsize::fetch_update(renamedtry_update), failing the release workflow's clippy step at src/memory/persona/distill.rs. Replaced with acompare_exchange_weakloop, which stays MSRV-compatible. No otherfetch_updateuses.Verified: clippy --all-targets --all-features -D warnings on 1.99.0 and 1.98.0; distill tests pass (12).
Summary by CodeRabbit