Repository navigation
client tools: a set may carry 8192 instruction bytes, and a refusal names the size it saw - #2729
Merged
Merged
Conversation
…ames the size it saw The desk's Personal Afi set carries WorkstreamWorkRules (3125 bytes) plus its own lines and came to 4521 bytes, over the 4096 cap, so agents.tools_set refused it and Afi had no ws_* tools. Raise the cap to 8192, hold the rules to at most half of it with a test, and make the refusal name the one limit crossed and the size sent. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
…ames the size it saw (#2729) Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
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.
Fixes E2 F1 (engine half). The desk's Personal Afi set carries
WorkstreamWorkRules(3125 bytes) verbatim plus its own lines and came to 4521 bytes, overClientToolInstructionsMax= 4096.agents.tools_setrefused it withbad_paramsand Afi had nows_*tools.session.ClientToolInstructionsMax4096 → 8192, with the reason on the constant. Four sets at the cap add at most 32 KiB to a turn.TestWorkstreamRulesLeaveRoomInAClientToolSet: the rules may take at most half the cap.ClientToolSetSizeError, used by both the wire validator and the conversation door).client-tools.mdand a change entry updated.Desk half (test that the declared sets fit + loud warning): companion PR in codeaf-desk.
🤖 Generated with Claude Code