Forward idempotency_key on AI assist so retries are not charged twice - #110
Conversation
ePoints dedupes a repeated ai-assist request only when it sees the same idempotency_key. The proxy was dropping the key the SDK already sends. Co-authored-by: hivetrending <hiveuprss@users.noreply.github.com>
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 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. Comment |
PR Summary by QodoForward AI assist idempotency keys to prevent duplicate charges
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
The test validator used GetValue<string>(), which throws on a lone-surrogate escape that production ValidateCode accepts via JsVal.TryGetStringLenient. Note in the parity driver why keyed-retry forwarding stays out of KNOWN_DIVERGENCES: the catalog never sends a valid code, so those cases still match the reference image, and the unit test covers the key. Co-authored-by: hivetrending <hiveuprss@users.noreply.github.com>
|
@hiveuprss thank you! 👍 |
ePoints dedupes a repeated ai-assist request only when it sees the same idempotency_key. The proxy was dropping the key the SDK already sends.