Skip to content

fix(sdk): reset SDK nonce caches after failed transitions - #2851

Merged
lklimek merged 4 commits into
v2.2-devfrom
codex/github-mention-sdk-nonce-cache-incorrectly-retains-stale-va
Nov 12, 2025
Merged

lklimek merged 4 commits into
v2.2-devfrom
codex/github-mention-sdk-nonce-cache-incorrectly-retains-stale-va

Conversation

@lklimek

@lklimek lklimek commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Fixes #2737

What was done?

If an error is received from state transition, we remove cached identity nonce to force refreshing it.

How Has This Been Tested?

Added some more logging and used dash-evo-tool to send invalid transactions.

  • error happens => nonce still at 1
  • no error => nonce increased to 2

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

  • New Features

    • Added method to manually refresh identity nonce from Platform.
    • Added capability to remove mock expectations in test utilities.
  • Improvements

    • Automatic identity nonce refresh triggered on failed state transition broadcasts.
    • Enhanced structured logging for broadcast errors and nonce operations.

@github-actions

github-actions Bot commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor

✅ gRPC Query Coverage Report

================================================================================
gRPC Query Coverage Report - NEW QUERIES ONLY
================================================================================

Total queries in proto: 47
Previously known queries: 47
New queries found: 0


================================================================================
Summary:
--------------------------------------------------------------------------------
No new queries found

Total known queries: 47
  - Implemented: 44
  - Not implemented: 2
  - Excluded: 1

Not implemented queries:
  - getConsensusParams
  - getTokenPreProgrammedDistributions

@coderabbitai

coderabbitai Bot commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Reworked nonce retrieval to always derive inserted nonces from platform-fetched values (optionally +1), added refresh_identity_nonce to clear cached nonces, introduced mock expectation removal APIs, and trigger identity-nonce refresh on broadcast failure while improving a log line.

Changes

Cohort / File(s) Change Summary
Nonce logic & public API
packages/rs-sdk/src/sdk.rs
Compute nonce to insert solely from the platform-fetched platform_nonce (use platform_nonce + 1 when bump_first); add tracing; add pub async fn refresh_identity_nonce(&self, identity_id: &Identifier) which clears relevant caches so next fetch reloads from platform.
Broadcast path
packages/rs-sdk/src/platform/transition/broadcast.rs
On broadcast failure after retries, asynchronously call sdk.refresh_identity_nonce(&self.owner_id()).await; change a log to include structured error (error=?e).
DAPI mock removal API
packages/rs-dapi-client/src/mock.rs
Add MockDapiClient::remove and Expectations::remove to remove expectation entries by request key and return whether an entry was removed.
SDK mock removal coordination
packages/rs-sdk/src/mock/sdk.rs
Add pub async fn remove_fetch_expectation<O, Q>(&mut self, query: Q) -> bool and internal async fn remove<I: TransportRequest>(&mut self, grpc_request: I) -> bool to prune from_proof_expectations and the embedded DAPI mock expectations.
Tests (nonce refresh & mocks)
packages/rs-sdk/src/...tests*, packages/rs-sdk/src/*.rs
Tests updated/added to exercise nonce refresh behavior and mock expectation removal paths (imports and mocks adjusted accordingly).

Sequence Diagram(s)

sequenceDiagram
  participant Caller as SDK caller
  participant SDK as Sdk
  participant Platform as Platform
  participant Cache as LocalCache
  Note over Caller,SDK: get_identity_nonce (query path)
  Caller->>SDK: get_identity_nonce(identity_id, bump_first)
  SDK->>Platform: fetch platform_nonce
  Platform-->>SDK: platform_nonce
  SDK->>SDK: compute insert_nonce = platform_nonce + (bump_first ? 1 : 0)
  SDK->>Cache: upsert identity nonce = insert_nonce
  Cache-->>SDK: ack
  SDK-->>Caller: insert_nonce
Loading
sequenceDiagram
  participant Test as Caller
  participant MockSdk as MockDashPlatformSdk
  participant ProofMap as from_proof_expectations
  participant DapiMock as MockDapiClient
  Note over MockSdk: remove_fetch_expectation(query)
  Test->>MockSdk: remove_fetch_expectation(query)
  MockSdk->>MockSdk: grpc_request = query.prove()
  MockSdk->>ProofMap: remove(key(grpc_request))
  MockSdk->>DapiMock: DapiMock.remove(grpc_request)
  alt removed from either
    DapiMock-->>MockSdk: true
    ProofMap-->>MockSdk: true
  end
  MockSdk-->>Test: bool (removed?)
Loading
sequenceDiagram
  participant Broadcaster as TransitionBroadcaster
  participant SDK as Sdk
  participant Platform as Platform
  Note over Broadcaster,SDK: on broadcast failure after retries
  Broadcaster->>SDK: refresh_identity_nonce(owner_id)
  SDK->>Platform: fetch platform_nonce (async)
  Platform-->>SDK: platform_nonce
  SDK->>SDK: update cache with platform-derived nonce
  SDK-->>Broadcaster: done
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • Pay attention to cache concurrency and lock/atomic usage in packages/rs-sdk/src/sdk.rs around refresh_identity_nonce and fetcher removal.
  • Verify that the new remove flows correctly keep from_proof_expectations and MockDapiClient expectations consistent.
  • Confirm logging change and async call in broadcast path do not alter retry semantics or swallow errors.

Poem

🐰
I hopped through caches, found a nonce untrue,
Asked the Platform politely, "What number are you?"
Pruned mock leaves, reset the count just right,
Tests cheer carrots in the soft moonlight,
A tiny hop — the ledger now says true 🥕

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the core fix: resetting SDK nonce caches after failed transitions.
Linked Issues check ✅ Passed The PR implements the core fix from issue #2737 by adding refresh_identity_nonce API and calling it on broadcast errors, plus structured logging improvements.
Out of Scope Changes check ✅ Passed All changes are directly related to the issue #2737 objectives: nonce refresh API, mock testing utilities, and integration with broadcast error handling.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/github-mention-sdk-nonce-cache-incorrectly-retains-stale-va

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6f79830 and f6b385d.

📒 Files selected for processing (4)
  • packages/rs-dapi-client/src/mock.rs (2 hunks)
  • packages/rs-sdk/src/mock/sdk.rs (2 hunks)
  • packages/rs-sdk/src/platform/transition/broadcast.rs (2 hunks)
  • packages/rs-sdk/src/sdk.rs (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/rs-sdk/src/platform/transition/broadcast.rs
  • packages/rs-dapi-client/src/mock.rs
  • packages/rs-sdk/src/sdk.rs
🧰 Additional context used
📓 Path-based instructions (1)
**/*.rs

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.rs: Format Rust code with cargo fmt
Run Clippy linter for Rust code

Files:

  • packages/rs-sdk/src/mock/sdk.rs
🧠 Learnings (6)
📓 Common learnings
Learnt from: QuantumExplorer
Repo: dashpay/platform PR: 2673
File: packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/identity_update/mod.rs:1164-1197
Timestamp: 2025-06-18T03:44:14.385Z
Learning: QuantumExplorer determined that a CodeRabbit suggestion about fixing signable_bytes calculation in identity update tests with contract-bound keys was incorrect - the code flow is working as intended without the suggested changes.
Learnt from: shumkov
Repo: dashpay/platform PR: 2449
File: packages/rs-sdk/src/platform/transition/fungible_tokens/unfreeze.rs:148-148
Timestamp: 2025-02-14T04:31:57.245Z
Learning: The third boolean parameter in `get_identity_contract_nonce` method controls whether to bump (increment) the nonce when set to `true`.
📚 Learning: 2024-10-10T10:30:19.883Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2232
File: packages/rs-sdk/src/mock/sdk.rs:90-95
Timestamp: 2024-10-10T10:30:19.883Z
Learning: In `packages/rs-sdk/src/mock/sdk.rs`, the `load_expectations` method in `MockDashPlatformSdk` remains asynchronous (`async`) for backward compatibility, even though it now delegates to the synchronous `load_expectations_sync` method.

Applied to files:

  • packages/rs-sdk/src/mock/sdk.rs
📚 Learning: 2024-10-30T11:04:33.634Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2277
File: packages/rs-sdk/src/platform/fetch_unproved.rs:0-0
Timestamp: 2024-10-30T11:04:33.634Z
Learning: In `packages/rs-sdk/src/platform/fetch_unproved.rs`, the `execute()` method consumes the request object, so cloning the request is necessary before passing it to `execute()` and `maybe_from_unproved_with_metadata`.

Applied to files:

  • packages/rs-sdk/src/mock/sdk.rs
📚 Learning: 2024-10-29T14:16:40.972Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2277
File: packages/rs-dapi-client/src/address_list.rs:63-73
Timestamp: 2024-10-29T14:16:40.972Z
Learning: In the Rust SDK, it's acceptable to use `expect()` that panics on errors in the `Mockable` trait implementations during testing, and the `Mockable` trait will be refactored in a future PR.

Applied to files:

  • packages/rs-sdk/src/mock/sdk.rs
📚 Learning: 2024-10-30T11:13:22.398Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2277
File: packages/rs-sdk/src/platform/fetch_many.rs:0-0
Timestamp: 2024-10-30T11:13:22.398Z
Learning: In the `fetch_many` method in `packages/rs-sdk/src/platform/fetch_many.rs`, we cannot move `request` into the async closure, as moving `request` into the async context will not work correctly.

Applied to files:

  • packages/rs-sdk/src/mock/sdk.rs
📚 Learning: 2025-10-15T14:45:30.856Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2716
File: packages/dashmate/src/test/constants/services.js:4-4
Timestamp: 2025-10-15T14:45:30.856Z
Learning: In the dashmate codebase (packages/dashmate), during the DAPI Rust migration (rs-dapi), the old service keys `dapi_api` and `dapi_core_streams` are intentionally kept in `generateEnvsFactory.js` for backward compatibility even though the test constants in `src/test/constants/services.js` have been updated to use `rs_dapi`. These deprecated keys will be removed in a future PR after the transition is complete.

Applied to files:

  • packages/rs-sdk/src/mock/sdk.rs
🧬 Code graph analysis (1)
packages/rs-sdk/src/mock/sdk.rs (3)
packages/rs-sdk/src/platform/query.rs (18)
  • query (99-99)
  • query (107-112)
  • query (116-126)
  • query (130-140)
  • query (144-161)
  • query (166-184)
  • query (241-263)
  • query (267-273)
  • query (324-339)
  • query (343-350)
  • query (354-360)
  • query (364-376)
  • query (381-383)
  • query (388-390)
  • query (395-402)
  • query (406-412)
  • new (217-224)
  • new (619-624)
packages/rs-dapi-client/src/mock.rs (4)
  • remove (67-84)
  • remove (280-282)
  • new (42-44)
  • new (169-171)
packages/rs-dapi-client/src/dump.rs (1)
  • new (90-103)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Swift SDK and Example build (warnings as errors)
🔇 Additional comments (2)
packages/rs-sdk/src/mock/sdk.rs (2)

318-329: LGTM! Clean removal API for mock expectations.

The method correctly mirrors the expect_fetch pattern, delegates to the internal remove method, and provides a clear boolean return value indicating removal success.


429-438: LGTM! Correct dual-source removal logic.

The method properly removes expectations from both from_proof_expectations and the internal DAPI mock, maintains thread safety with mutex locking, and correctly returns true if removed from either source, mirroring the dual-storage pattern used in the expect method.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@lklimek lklimek changed the title fix: reset SDK nonce caches after failed transitions fix(sdk): reset SDK nonce caches after failed transitions Nov 3, 2025
@github-actions

github-actions Bot commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor

✅ DashSDKFFI.xcframework built for this PR.

SwiftPM (host the zip at a stable URL, then use):

.binaryTarget(
  name: "DashSDKFFI",
  url: "https://your.cdn.example/DashSDKFFI.xcframework.zip",
  checksum: "eae04c4a33632b5d3d2562789818bc454d7c73a48ffce61ae64285fad8a5e6a6"
)

Xcode manual integration:

  • Download 'DashSDKFFI.xcframework' artifact from the run link above.
  • Drag it into your app target (Frameworks, Libraries & Embedded Content) and set Embed & Sign.
  • If using the Swift wrapper package, point its binaryTarget to the xcframework location or add the package and place the xcframework at the expected path.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d7c3536 and 293a700.

📒 Files selected for processing (1)
  • packages/rs-sdk/src/sdk.rs (4 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.rs

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.rs: Format Rust code with cargo fmt
Run Clippy linter for Rust code

Files:

  • packages/rs-sdk/src/sdk.rs
packages/rs-*/**/*.rs

📄 CodeRabbit inference engine (AGENTS.md)

packages/rs-*/**/*.rs: Use rustfmt defaults for Rust code (format via cargo fmt --all)
Keep Rust code clippy-clean (cargo clippy)
Name Rust modules in snake_case
Use PascalCase for Rust types
Use SCREAMING_SNAKE_CASE for Rust constants

Files:

  • packages/rs-sdk/src/sdk.rs
🧠 Learnings (11)
📓 Common learnings
Learnt from: QuantumExplorer
Repo: dashpay/platform PR: 2673
File: packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/identity_update/mod.rs:1164-1197
Timestamp: 2025-06-18T03:44:14.385Z
Learning: QuantumExplorer determined that a CodeRabbit suggestion about fixing signable_bytes calculation in identity update tests with contract-bound keys was incorrect - the code flow is working as intended without the suggested changes.
Learnt from: shumkov
Repo: dashpay/platform PR: 2449
File: packages/rs-sdk/src/platform/transition/fungible_tokens/unfreeze.rs:148-148
Timestamp: 2025-02-14T04:31:57.245Z
Learning: The third boolean parameter in `get_identity_contract_nonce` method controls whether to bump (increment) the nonce when set to `true`.
Learnt from: shumkov
Repo: dashpay/platform PR: 2343
File: packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_validation_versions/v1.rs:134-134
Timestamp: 2024-11-21T12:43:26.103Z
Learning: In the codebase, the versioning of `has_nonce_validation` from version 0 to 1 and back to 0 is intentional. Do not flag this as an inconsistency in future reviews.
📚 Learning: 2024-10-30T11:19:59.163Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2277
File: packages/rs-sdk/tests/fetch/config.rs:233-233
Timestamp: 2024-10-30T11:19:59.163Z
Learning: In the Rust SDK's `rs-sdk/tests` integration tests (e.g., in `packages/rs-sdk/tests/fetch/config.rs`), we cannot create objects during tests because there is no support for object creation in this context. Therefore, hardcoded values for test identities must be used.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2024-10-09T00:22:57.778Z
Learnt from: shumkov
Repo: dashpay/platform PR: 2201
File: packages/rs-platform-version/src/version/v2.rs:1186-1188
Timestamp: 2024-10-09T00:22:57.778Z
Learning: In the `IdentityTransitionVersions` structure within `packages/rs-platform-version/src/version/v2.rs`, the field `credit_withdrawal` does not need the `identity_` prefix since it is already encompassed within identity state transitions.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2025-06-18T03:44:14.385Z
Learnt from: QuantumExplorer
Repo: dashpay/platform PR: 2673
File: packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/identity_update/mod.rs:1164-1197
Timestamp: 2025-06-18T03:44:14.385Z
Learning: QuantumExplorer determined that a CodeRabbit suggestion about fixing signable_bytes calculation in identity update tests with contract-bound keys was incorrect - the code flow is working as intended without the suggested changes.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2025-02-14T04:31:57.245Z
Learnt from: shumkov
Repo: dashpay/platform PR: 2449
File: packages/rs-sdk/src/platform/transition/fungible_tokens/unfreeze.rs:148-148
Timestamp: 2025-02-14T04:31:57.245Z
Learning: The third boolean parameter in `get_identity_contract_nonce` method controls whether to bump (increment) the nonce when set to `true`.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2024-10-18T15:43:32.447Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2254
File: packages/rs-sdk/src/sdk.rs:654-658
Timestamp: 2024-10-18T15:43:32.447Z
Learning: In `packages/rs-sdk/src/sdk.rs`, within the `verify_metadata_height` function, when using `compare_exchange` on `last_seen_height`, it's acceptable to use `Ordering::Relaxed` for the failure ordering, as any inconsistency would only trigger an extra loop iteration without affecting correctness.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2024-10-22T10:53:12.111Z
Learnt from: shumkov
Repo: dashpay/platform PR: 2259
File: packages/rs-dapi-client/src/dapi_client.rs:137-139
Timestamp: 2024-10-22T10:53:12.111Z
Learning: In `packages/rs-dapi-client/src/dapi_client.rs`, when passing data into asynchronous code, ensure that data structures are `Send + Sync`. Using `Arc<AtomicUsize>` is necessary for the retry counter.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2024-10-10T10:30:19.883Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2232
File: packages/rs-sdk/src/mock/sdk.rs:90-95
Timestamp: 2024-10-10T10:30:19.883Z
Learning: In `packages/rs-sdk/src/mock/sdk.rs`, the `load_expectations` method in `MockDashPlatformSdk` remains asynchronous (`async`) for backward compatibility, even though it now delegates to the synchronous `load_expectations_sync` method.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2024-10-21T01:03:42.458Z
Learnt from: QuantumExplorer
Repo: dashpay/platform PR: 2227
File: packages/rs-dpp/src/core_types/validator_set/v0/mod.rs:299-299
Timestamp: 2024-10-21T01:03:42.458Z
Learning: In the `test_serialize_deserialize_validator_set_v0` test within `packages/rs-dpp/src/core_types/validator_set/v0/mod.rs`, deterministic BLS keys cannot be easily used; therefore, using `BlsPublicKey::generate()` is acceptable.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2024-10-29T14:13:35.584Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2277
File: packages/dapi-grpc/src/mock.rs:95-109
Timestamp: 2024-10-29T14:13:35.584Z
Learning: In test code (e.g., `packages/dapi-grpc/src/mock.rs`), panicking on deserialization errors is acceptable behavior.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
📚 Learning: 2024-10-29T14:16:40.972Z
Learnt from: lklimek
Repo: dashpay/platform PR: 2277
File: packages/rs-dapi-client/src/address_list.rs:63-73
Timestamp: 2024-10-29T14:16:40.972Z
Learning: In the Rust SDK, it's acceptable to use `expect()` that panics on errors in the `Mockable` trait implementations during testing, and the `Mockable` trait will be refactored in a future PR.

Applied to files:

  • packages/rs-sdk/src/sdk.rs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: Rust packages (dash-sdk) / Unused dependencies
  • GitHub Check: Rust packages (dash-sdk) / Linting
  • GitHub Check: Build Docker images (Drive, drive, drive-abci) / Build Drive image
  • GitHub Check: Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
  • GitHub Check: Build Docker images (RS-DAPI, rs-dapi, rs-dapi) / Build RS-DAPI image
  • GitHub Check: Build JS packages / Build JS
  • GitHub Check: Rust crates security audit
  • GitHub Check: Build rs-sdk-ffi for iOS targets (aarch64-apple-ios-sim)
  • GitHub Check: Build rs-sdk-ffi for iOS targets (aarch64-apple-ios)
  • GitHub Check: Swift SDK and Example build (warnings as errors)

Comment thread packages/rs-sdk/src/sdk.rs Resolved
@lklimek lklimek added this to the v2.2.0 milestone Nov 4, 2025
@lklimek
lklimek force-pushed the codex/github-mention-sdk-nonce-cache-incorrectly-retains-stale-va branch from 6f79830 to 381bc75 Compare November 4, 2025 15:29
@lklimek

lklimek commented Nov 4, 2025

Copy link
Copy Markdown
Contributor Author

@coderabbitai review all

@coderabbitai

coderabbitai Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

@lklimek: I'll review all the changes in this PR.


🧠 Learnings used
Learnt from: QuantumExplorer
Repo: dashpay/platform PR: 2673
File: packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/identity_update/mod.rs:1164-1197
Timestamp: 2025-06-18T03:44:14.385Z
Learning: QuantumExplorer determined that a CodeRabbit suggestion about fixing signable_bytes calculation in identity update tests with contract-bound keys was incorrect - the code flow is working as intended without the suggested changes.
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lklimek lklimek removed the codex label Nov 4, 2025
@QuantumExplorer

Copy link
Copy Markdown
Member

I would have preferred to only reset SDK nonce cache on internal and non paid errors. However this is fine for now.

@lklimek
lklimek merged commit dfebb48 into v2.2-dev Nov 12, 2025
@lklimek
lklimek deleted the codex/github-mention-sdk-nonce-cache-incorrectly-retains-stale-va branch November 12, 2025 23:19
@bezibalazs bezibalazs modified the milestones: v2.2.0, v3.0.0 Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK nonce cache incorrectly retains stale values after failed state transitions

3 participants