Prevent Responses API errors when conversation history is reused in a new provider request.
Fresh and pending Chat-style history conversions no longer include stale
provider-generated item IDs, while preserving function-call IDs for tool
output linkage.
During opaque Responses state replay, remove unsupported status fields from
reasoning items before sending them to the provider. Preserve encrypted
reasoning content and other valid provider fields.
Add regression coverage for stale item IDs and replayed reasoning items with
unsupported status fields.