Skip to content

fix(xiaohongshu): fall back to the search result URL when the search box is hidden - #2665

Open
Liyux3 wants to merge 1 commit into
jackwener:mainfrom
Liyux3:fix/xhs-search-ai-home-layout
Open

Liyux3 wants to merge 1 commit into
jackwener:mainfrom
Liyux3:fix/xhs-search-ai-home-layout

Conversation

@Liyux3

@Liyux3 Liyux3 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

On accounts that get the AI home layout, #search-input is inside a hidden header (the visible box is the 点点 AI prompt), so opencli xiaohongshu search fails with search_input_not_available.

For that case only, open /search_result?keyword=... directly. Captcha and login detection in the result wait still apply. Added tests for the fallback and the no-fallback path.

…box is hidden

On accounts served the AI home layout, #search-input sits in a hidden header and
in-site search fails with search_input_not_available. Open the search_result URL
directly for that case only; captcha and login detection still apply.

This branch has not been deployed

No deployments
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