mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-25 00:35:09 +00:00
- stream_events/astream now pre-validate restore_from_state_id when raise_on_missing_state=True, so the ValueError surfaces at session creation time instead of only while consuming frames (Bugbot finding). - Extract _missing_state_error/_no_persistence_error builders shared by the eager check and the runtime fork block so messages stay in sync. - Add streaming tests: eager raise via stream_events, kickoff(stream=True), astream, kickoff_async(stream=True); valid-id strict streaming still hydrates and reports last_restore_succeeded=True. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>