mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-27 05:30:39 +00:00
`_parse_results` skipped malformed page entries but returned the collected list even when it was empty, so a non-empty `Pages` container holding no usable page fell through to "No results found". That tells the agent the query legitimately matched nothing instead of surfacing the malformed payload -- the failure mode the sibling providers already contain (brave #6550, groundroute #6603, tavily #6645, sofya #6719), and the rule the tavily changelog entry already lists `tencent_wsa` as applying. A missing or null `Pages` stays an empty search, a non-list container keeps the existing structured format error, and individual malformed entries in an otherwise valid container are still skipped so the valid rows survive. Only the non-empty-container-with-no-usable-page case now returns the provider's format error and logs the container, never the query or payload values. RED/GREEN: the 5 new cases fail on main with "No results found" and pass with the fix (stash-compared source-only); test_tencent_wsa_tools.py 33 passed, the five provider suites 281 passed, ruff check and format clean. Co-authored-by: Willem Jiang <willem.jiang@gmail.com>