Files
crewAI/lib
Devin AI 7b629b4357 fix: JSON checkpoint discovery now finds branch subdirectories (#5491)
_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>
2026-04-16 08:29:55 +00:00
..
2026-04-16 05:18:24 +08:00