fix(xiaohongshu): extract direct comment reply target - #2175
Open
aolast wants to merge 1 commit into
Open
Conversation
aolast
force-pushed
the
fix/xiaohongshu-comment-reply-to
branch
from
July 24, 2026 02:18
d8bde5a to
131c6ee
Compare
aolast
marked this pull request as ready for review
July 24, 2026 02:50
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.
Description
Fixes
comments --with-repliesreporting the top-level thread author asreply_tofor every nested Xiaohongshu/Rednote reply.The extractor previously hard-coded the enclosing top-level author for all nested rows. Xiaohongshu's rendered DOM distinguishes the two cases:
.content > .nickname, which is now extracted intoreply_to.The page exposes the target display name but no target profile link or user ID, so this change does not invent an ID. Rednote reuses the same extractor and receives the same fix.
This PR also:
--with-replieshelp text and adapter documentation;cli-manifest.json.Related issue: Fixes #2174
Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(N/A — both adapters already have pages)docs/adapters/index.mdtable (N/A — no adapter or command was added)docs/.vitepress/config.mts(N/A — no page was added)README.md/README.zh-CN.mdwhen command discoverability changed (N/A — command surface is unchanged)CliErrorsubclasses instead of rawError(no error-path change)Screenshots / Output
Live validation against a signed Xiaohongshu note URL through OpenCLI Browser Bridge:
The signed URL and
xsec_tokenare intentionally omitted.Validation: