mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-26 21:26:39 +00:00
run_agent() only refreshed runs.model_name when the request named a model, and it read the effective model from agent.metadata, which compiled LangGraph graphs do not have. The default model (no model_name requested) and fallback models were therefore never persisted. Use the effective model that lead-agent assembly already resolves, and write only when it differs from the stored value. Supersedes #3110. Fixes #3109. Co-authored-by: Yi Tang <6054101+yitang@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>