deerflow2/backend/src/agents
lailoo 207853de74 fix(checkpointer): return InMemorySaver instead of None when not configured (#1016) (#1019)
* fix(checkpointer): return InMemorySaver instead of None when not configured (#1016)

* fix(checkpointer): also fix get_checkpointer() to return InMemorySaver

Make all three checkpointer functions consistent:
- make_checkpointer() (async) → InMemorySaver
- checkpointer_context() (sync) → InMemorySaver
- get_checkpointer() (sync singleton) → InMemorySaver

This ensures DeerFlowClient always has a valid checkpointer.

* fix: address CI failure and Copilot review feedback

- Fix import order in test_checkpointer_none_fix.py (I001 ruff error)
- Fix type annotation: _checkpointer should be Checkpointer | None
- Update docstring: change "None if not configured" to "InMemorySaver if not configured"
- Ensure app config is loaded before checking checkpointer config to prevent incorrect InMemorySaver fallback

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-03-09 15:48:27 +08:00
..
checkpointer fix(checkpointer): return InMemorySaver instead of None when not configured (#1016) (#1019) 2026-03-09 15:48:27 +08:00
lead_agent refactor: reduce repeated configurable dict lookups (#970) 2026-03-04 20:06:28 +08:00
memory feat: add IM channels for Feishu, Slack, and Telegram (#1010) 2026-03-08 15:21:18 +08:00
middlewares Enhance chat UI and compatible anthropic thinking messages (#1018) 2026-03-08 20:19:31 +08:00
__init__.py Support langgraph checkpointer (#1005) 2026-03-07 21:07:21 +08:00
thread_state.py feat: add view_image tool and optimize web fetch tools 2026-01-29 13:44:39 +08:00