mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-01 08:00:40 +00:00
* fix(goal): fall back gracefully for an unsupported reply locale goal_reply_text and goal_status_text indexed _TEXT directly with the caller's locale, so a locale outside NotificationLocale (en-US/zh-CN) raised KeyError. The /connect handshake (connect_reply_text) normalizes with supported_locale and falls back to en-US; the /goal replies must do the same instead of surfacing an internal error to the user. Normalize the locale in both public entry points. Adds tests pinning the fallback for an unknown locale and the zh-CN wording for a supported one. * style(tests): format goal status locale assertion --------- Co-authored-by: lisry-1 <249596828+lisry-1@users.noreply.github.com> Co-authored-by: Willem Jiang <willem.jiang@gmail.com>