This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
fix(fetch): suppress duplicated extracted comment text - #1863
Closed
SherlockShemol wants to merge 1 commit into
Closed
SherlockShemol wants to merge 1 commit into
SherlockShemol wants to merge 1 commit into
Conversation
SherlockShemol
force-pushed
the
fix/fetch-url-duplicate-comments
branch
from
April 13, 2026 16:37
b99bfb4 to
f249f8c
Compare
This was referenced Sep 9, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
FetchURLto inspect Trafilatura's main text and comments separatelyRoot cause
trafilaturawithinclude_comments=Truecan misclassify GitHub issue body content as comments and append a second malformed copy of the same text.For pages like
https://github.com/MoonshotAI/Moonlight/issues/4, this causedFetchURLto return the issue body twice:Testing
uv run pytest tests/tools/test_fetch_url.py -quv run pytest tests/tools/test_tool_descriptions.py -quv run pytest tests/tools/test_tool_schemas.py -qRelated issue
Notes
make teststill reports an unrelated existing failure intests/e2e/test_shell_modal_e2e.py::test_approval_consecutive_across_turnsfetch_urlregression covered by this change passes