Commit Graph

3 Commits

Author SHA1 Message Date
Devin AI
db626ec99d test: add has_set_count field to PoemState
Co-Authored-By: Joe Moura <joao@crewai.com>
2025-01-19 08:30:38 +00:00
Devin AI
4f4f229a0b test: improve state restoration verification with has_set_count flag
Co-Authored-By: Joe Moura <joao@crewai.com>
2025-01-19 08:28:58 +00:00
Devin AI
44b92ef12f fix: ensure persisted state overrides class defaults
- Remove early return in Flow.__init__ to allow proper state initialization
- Add test_flow_default_override.py to verify state override behavior
- Fix issue where default values weren't being overridden by persisted state

Fixes the issue where persisted state values weren't properly overriding
class defaults when restarting a flow with a previously saved state ID.

Co-Authored-By: Joe Moura <joao@crewai.com>
2025-01-19 07:42:38 +00:00