Repository navigation
Expose history request IDs before dispatch - #1796
Conversation
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Merging this PR will degrade performance by 35.34%3 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
Problem
fetch_message_historygenerates the peer request ID internally but returns it only after the transport send finishes. An on-demand history reply can arrive before that await completes, so callers cannot durably bind the incomingpeer_data_request_session_idto the request in time.Change
fetch_message_history_with_id, accepting the library's validatedMessageId.fetch_message_historysource-compatible: it generates an ID, delegates to the new method, and returns the same ID encoded on the outgoing stanza.The typed ID rejects empty values, and tracing continues to skip method arguments.
Validation
cargo clippy --locked -p whatsapp-rust --lib -- -D warningsCompatibility line
PR #1791 remains an intentionally old compatibility ref used for exact downstream validation without taking unrelated generated API changes. This PR isolates the same history request-ID API on current
mainfor normal upstream review and merge. The desktop pairing profile work remains separately reviewable in PR #1792.