Three coupled correctness fixes to /tutorial/gift_receive's response: - received_ids / total_receive_count_list / reward_list are now built from `toClaim` (the gifts THIS call granted), not from `requestedIds`. Echoing the client's request meant idempotent re-claims re-fired the "+N received" popup and direct-assigned the same post-state totals again, breaking the documented idempotency contract. - is_unreceived_present is now `unclaimedPresents.Count > 0`. The hardcoded false hid the inbox badge after partial claims even when present_list still carried unclaimed gifts. - tutorial_step echoes the persisted (max-preserved) state instead of a hardcoded 41. A replay against a state>=41 viewer used to surface 41 on the wire and regress the client's tutorial state machine. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 KiB
13 KiB