Skip to content

fix(xiaohongshu): retry once when first pass returns empty results#681

Open
leozejia wants to merge 1 commit intojackwener:mainfrom
leozejia:fix/xhs-search-stability-pure
Open

fix(xiaohongshu): retry once when first pass returns empty results#681
leozejia wants to merge 1 commit intojackwener:mainfrom
leozejia:fix/xhs-search-stability-pure

Conversation

@leozejia
Copy link
Copy Markdown
Contributor

@leozejia leozejia commented Apr 2, 2026

Summary

Improve xiaohongshu search stability by retrying once when the first page render returns an empty result set.

Changes

  • update src/clis/xiaohongshu/search.ts
    • wrap extraction in a single-attempt function
    • retry one extra navigation when first attempt returns zero results
  • update src/clis/xiaohongshu/search.test.ts
    • add regression test for first empty, second non-empty behavior

Out of Scope

  • no changes to global workspace behavior
  • no changes to daemon-level retry logic

Validation

  • npx vitest --project adapter src/clis/xiaohongshu/search.test.ts

@leozejia leozejia force-pushed the fix/xhs-search-stability-pure branch from ebc8769 to c80b6d4 Compare April 2, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant