[codex] Fix Xiaohongshu search navigation#2011
Draft
ppop123 wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
search_result/search_result_aibefore extracting note cards安全限制,300011,Account abnormal) as typed command errors instead of empty resultsRoot Cause
xiaohongshu/searchnavigated directly to/search_result?...source=web_search_result_notes. In current Xiaohongshu web sessions that route can redirect to/website-login/errorwith300011 Account abnormal, while manual searches from the web UI still work. The adapter also treated non-result pages as empty data, so callers saw(no data)instead of a clear failure.Validation
npx vitest run --project adapter clis/xiaohongshu/search.test.jsnpm run typecheckLocal Live Check
Before preparing this PR, I verified the same change against a logged-in local Chrome/OpenCLI Adapter session with:
opencli xiaohongshu search "增额寿险靠谱吗" --limit 5The command returned relevant search results instead of
(no data).