mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-08 03:30:34 +00:00
Context compaction runs from abefore_model/aafter_model on the shared loop, and its async candidate loop constructed the summary provider inline. create_chat_model can read local CLI credentials while it is constructed (Codex auth.json, Claude Code credential files), so an automatic compaction stalled every other request for that read. Split construction out of _model_for and add _amodel_for, which builds the provider on the assembly pool; the sync path keeps building inline. Anchor and failure-cache semantics are unchanged, so a broken candidate still falls through to the next one, and inference still awaits on the loop. Co-authored-by: Willem Jiang <willem.jiang@gmail.com>