Skip to content

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

Merged
jackwener merged 1 commit intojackwener:mainfrom
leozejia:fix/xhs-search-stability-pure
Apr 3, 2026
Merged

fix(xiaohongshu): retry once when first pass returns empty results#681
jackwener merged 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
@jackwener jackwener merged commit 2b623b3 into jackwener:main Apr 3, 2026
11 checks passed
@leozejia leozejia deleted the fix/xhs-search-stability-pure branch April 3, 2026 14:15
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.

2 participants