Skip to content

Conversation

@mting806
Copy link
Contributor

@mting806 mting806 commented Dec 6, 2025

JsonPlusRedisSerializer make obj to LC constructor format, but current implementation only call serde._reviver() , it caused user-defined be kept in constructor dicts inside checkpoint state.
If user use basemodel as state, it cant be deserializes successful.

This is inconsistent behavior vs sqlite backends. With it, pydantic is usable.

So suggest update to prefer _revive_if_needed over _reviver for Redis checkpoint deserialization

@bsbodden bsbodden self-assigned this Dec 12, 2025
Copy link
Contributor

@bsbodden bsbodden left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the contribution @mting806 !

@bsbodden bsbodden merged commit 35a83e1 into redis-developer:main Dec 12, 2025
17 checks passed
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.

2 participants