mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-18 03:54:46 +08:00
fix: presever the local setting between frontend and backend (#670)
* fix: presever the local setting between frontend and backend * Added unit test for the state preservation * fix: passing the locale to the agent call * fix: apply the fix after code review
This commit is contained in:
@@ -675,7 +675,7 @@ def test_coordinator_node_with_tool_calls_locale_override(
|
||||
tool_calls = [
|
||||
{
|
||||
"name": "handoff_to_planner",
|
||||
"args": {"locale": "zh-CN", "research_topic": "test topic"},
|
||||
"args": {"locale": "auto", "research_topic": "test topic"},
|
||||
}
|
||||
]
|
||||
with (
|
||||
@@ -689,7 +689,7 @@ def test_coordinator_node_with_tool_calls_locale_override(
|
||||
|
||||
result = coordinator_node(mock_state_coordinator, MagicMock())
|
||||
assert result.goto == "planner"
|
||||
assert result.update["locale"] == "zh-CN"
|
||||
assert result.update["locale"] == "en-US"
|
||||
assert result.update["research_topic"] == "test topic"
|
||||
assert result.update["resources"] == ["resource1", "resource2"]
|
||||
assert result.update["resources"] == ["resource1", "resource2"]
|
||||
|
||||
Reference in New Issue
Block a user