Skip to content

fix: materialize iterable input history in ItemHelpers.input_to_new_input_list#2496

Merged
seratch merged 1 commit intomainfrom
fix/materialize-input-history-iterables
Feb 16, 2026
Merged

fix: materialize iterable input history in ItemHelpers.input_to_new_input_list#2496
seratch merged 1 commit intomainfrom
fix/materialize-input-history-iterables

Conversation

@seratch
Copy link
Member

@seratch seratch commented Feb 16, 2026

This pull request fixes conversation-history replay paths that could preserve Pydantic ValidatorIterator objects in input items. When users persisted and reloaded to_input_list() history (for example with custom Redis workflows), validated payloads could retain iterator-backed fields and become difficult to serialize or inspect. The change updates ItemHelpers.input_to_new_input_list to normalize list inputs through _to_dump_compatible, ensuring nested iterable fields are materialized into JSON-friendly structures before reuse. Tests were updated to cover the validated-input scenario and assert the resulting payload is dump-compatible.

@seratch seratch added this to the 0.9.x milestone Feb 16, 2026
@github-actions github-actions bot added bug Something isn't working documentation Improvements or additions to documentation feature:core labels Feb 16, 2026
@seratch seratch force-pushed the fix/materialize-input-history-iterables branch from c00633d to 7ce0368 Compare February 16, 2026 23:44
@seratch seratch removed the documentation Improvements or additions to documentation label Feb 16, 2026
@seratch seratch merged commit 48cdae4 into main Feb 16, 2026
9 checks passed
@seratch seratch deleted the fix/materialize-input-history-iterables branch February 16, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant