Repository navigation
fix: preserve complete Tool Search network pages - #201487
Merged
Merged
Conversation
Align network control output with the active model result budget, including wrapping and forwarded image context costs. Omit oversized execution payloads rather than exposing cursors for partially delivered pages; preserve discovery schema excerpts and shared Code Mode fitting. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 19830a27-0ae7-4709-a145-b5d2865301c0
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
roboclaw-bot
marked this pull request as ready for review
November 18, 2026 22:26
This was referenced Nov 21, 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 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.
Closes #194857
What Problem This Solves
Reading a long web page or paged MCP document through Tool Search could stop at 20,000 characters even when the active model could accept more. A continuation cursor could survive while the end of its page was missing, silently skipping document lines.
User Impact
Network-backed Tool Search calls use the active model's existing tool-result budget, including external-content framing, sanitization expansion, and forwarded image context costs. No new setting or migration is required; tool-selection defaults, policy checks, and native harness behavior are unchanged.
If a complete execution result cannot fit, its payload is omitted instead of exposing a cursor for a partial page. Read-only callers are told to request a smaller page from the same starting position, and not to replay mutations just to recover output. Full programmatic details remain intact. Discovery still retains useful schema excerpts.
Why This Change Was Made
Reuse the existing model-aware budget rather than add another configuration limit. Shared rendering keeps Code Mode fitting and final delivery aligned; batch discovery rejects omitted trial renders rather than mistaking their short notice for delivered candidates.
The fixed 20,000-character policy is removed. Necessary growth is budget propagation, cursor-safe omission, and preservation of discovery excerpts: +75 net production lines, +152 net test lines, and +9 documentation lines against the task base.
Evidence
dispatch_actionexecution in the Agent loop with its context guard: malformed partial pages on a 320k context and cursors for undelivered page tails on a 32k context. Both regressions failed before the repair.gpt-5.4-mini: one search, two dispatched network pages, four assistant turns, and exact freshly generated markers from lines 47 and 78. The first page exceeded the old cap. Test time was 14.4 seconds (76 seconds wall); no live Gateway state was changed.pnpm buildpassed in 180 seconds. Core and agents-tools test typechecks, targeted lint/format, andgit diff --checkpassed.deada7dc25d490ad662a290d2def73cf6d131584;openclaw/ci-gatewas verified successful on that head. Hosted ClawSweeper review was still running at the landing check and is advisory under the explicit maintainer land instruction.Requested by @vincentkoc; reported by @lyrakat.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by