mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-05 01:02:37 +00:00
_list_json() and _info_json_latest() in checkpoint_cli.py used flat globs (location/*.json) which missed checkpoints stored under branch subdirectories (e.g. main/, fork/exp1/) introduced by the fork-aware checkpoint storage. Changed both functions to use recursive globs (location/**/*.json) so they discover checkpoints in branch subdirectories as well as the legacy flat layout. Added tests covering: - Discovery in single and multiple branch subdirectories - Legacy flat layout backward compatibility - Mixed flat + branch layouts - Empty directory edge case - Latest checkpoint selection across branches Co-Authored-By: João <joao@crewai.com>