fix:移除_source_messages_by_id

This commit is contained in:
SengokuCola
2026-05-09 16:45:42 +08:00
parent 2a09ce917b
commit c99363680d
7 changed files with 39 additions and 9 deletions

View File

@@ -199,7 +199,7 @@ async def test_reply_tool_puts_monitor_detail_into_metadata(monkeypatch: pytest.
),
)
runtime = SimpleNamespace(
_source_messages_by_id={"msg-1": target_message},
find_source_message_by_id=lambda message_id: target_message if message_id == "msg-1" else None,
log_prefix="[test]",
chat_stream=SimpleNamespace(platform=reply_tool_module.CLI_PLATFORM_NAME),
session_id="session-1",