fix: delegate unknown tool calls to Pi - #12
Open
any-victor wants to merge 1 commit into
Open
Conversation
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.
Problem
A live isolated Pi turn asked Composer 2.5 for the exact available tool names. The model attempted unavailable
Grep, and pi-cursor terminated the provider response withCursor called unadvertised tool 'Grep'instead of letting Pi return its normal tool error and continue.Root cause
The first standalone stream mapper added advertised-name validation as an inferred fail-closed assertion. That check was not supported by the pinned formatted Cursor source and crossed the provider/host ownership boundary.
Formatted IDE 3.18.9 module
675.js:Tool not foundresult in its executor at lines 54520–54585.Pi 0.84.4 owns the same behavior in
agent-loop.js: it emitsTool <name> not found, appends the errortoolResult, and starts the next provider turn.Fix
Context.toolsto RunInference;Verification
agentLoopintegration provesGrepbecomesTool Grep not found, is sent back to Cursor, and a second provider turn completes;mise run verify: 115 passed, 1 host-only skip;Release
Patch Changeset included.
This PR is intentionally left open for operator review and must not be merged before approval.