sync update from LAN repo (source master @ ca48c4ec)

This commit is contained in:
gozeros committed 2026-11-05 10:53:54 +08:00
1 parent 8bc8b0e082
commit ea9dcff9c0
873 files changed
+107866 -14011

No files matched your search

@@ -614,6 +614,9 @@ def test_tool_persists_workbench_session_before_tool_finished(monkeypatch) -> No
_fake_runtime(
"thread-persist",
context={"workbench_session_id": "sess-1"},
messages=[HumanMessage(content=_DEFAULT_TOPIC, additional_kwargs={
"llmwiki_reference_sources": [{"title": _DEFAULT_TOPIC, "content": "新能源汽车市场分析销量证据", "url": "https://example.test/source"}]
})],
),
"call-persist",
_DEFAULT_TOPIC,
@@ -621,6 +624,7 @@ def test_tool_persists_workbench_session_before_tool_finished(monkeypatch) -> No
)
assert updates
assert _FakeEngine.instances[-1].adapters.materials.material_count == 1
assert updates[-1]["session_id"] == "sess-1"
assert updates[-1]["status"] == "completed"
assert updates[-1]["user_id"] is None