You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
web_fetch reports multibyte pages as truncated when nothing was cut #709
web_fetch caps extracted content at 100,000 characters (fetchExtractedCapChars), but Fetcher.Fetch in internal/webaccess/fetch.go decides whether to truncate by comparing the content's byte length with that character cap:
For non-ASCII pages (for example Cyrillic, Greek, CJK, or accented Latin text) whose extracted content is longer than 100,000 bytes but shorter than 100,000 characters, TruncateRunes returns the content unchanged, yet truncated is still set to true. The tool result then carries "truncated": true and appends "[the upstream extractor truncated this response; all extracted content is shown]", so the agent is told it received partial content when it received the whole page.
Steps to reproduce
Serve a text/plain; charset=utf-8 response containing 99,995 é characters (199,990 bytes).
Fetch it with web_fetch.
Expected: truncated is false and the full content is returned.
Actual: the full content is returned, but truncated is true and the truncation note is appended.
Activity