Repository navigation
fix(pi): T3 tools are callable by Pi's own mcp__t3_code__ names #26845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
juliusmarminge
wants to merge
8
commits into
main
Choose a base branch
from
fix/issue-26822
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+212
−26
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9983e14
test(provider-pi): reproduce #26822 underscore MCP alias unreachable …
juliusmarminge b51ded2
fix(provider-pi): Pi's mcp__t3_code__ tool names are callable again
juliusmarminge 26738c4
test(provider-pi): cover excluded aliases; docs: Pi aliases are callable
juliusmarminge eb5723f
fix(provider-pi): keep Pi's T3 aliases out of codemode and behind the…
juliusmarminge 0b41d11
fix(provider-pi): check an alias's public tool when the alias runs
juliusmarminge 49250a2
Merge remote-tracking branch 'origin/main' into fix/issue-26822
juliusmarminge 0c300c0
refactor(provider-pi): wrap alias guard lines and drop duplicate decl…
juliusmarminge df3f315
Merge remote-tracking branch 'origin/main' into fix/issue-26822
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Web query:
Does Pi (earendil-works/pi coding-agent) 1.x with an openai-completions model API reject or drop assistant tool calls whose tool name is not declared in the request tools array, when the tool is active but hidden through prepareLoadout hiddenDeclarations? Check the Pi docs and source.Result:
Script executed:
Repository: pingdotgg/t3code
Length of output: 26434
Script executed:
Repository: pingdotgg/t3code
Length of output: 45670
Script executed:
Repository: pingdotgg/t3code
Length of output: 953
Web query:
OpenRouter chat completions tool calls function name not declared tools request historical tool call guidance silently dropped behavior documentationResult:
Web query:
Pi coding agent models.json custom provider openai-completions baseUrl configure local OpenAI compatible SGLangResult:
Web query:
SGLang issue 12223 unknown tool calls skip unknown names glm45 parser fixed commit version release October 2025Result:
Web query:
SGLang v0.5.4 glm45 tool parser streaming unknown tool name skipped parse_streaming_increment tool_indices codeResult:
Web query:
earendil works pi 1.4.0 openai completions stream true chat completions create codeResult:
Web query:
SGLang qwen25_detector parse_streaming_increment "self._tool_indices" unknown tool name return StreamingParseResultResult:
Script executed:
Repository: pingdotgg/t3code
Length of output: 11286
Script executed:
Repository: pingdotgg/t3code
Length of output: 11561
Script executed:
Repository: pingdotgg/t3code
Length of output: 11082
Web query:
Pi 1.4.0 prepareLoadout hiddenDeclarations transcript toolsAdded request declarations active callableResult:
Allow alias declarations for affected gateways.
SGLang’s
qwen25parser can drop an emitted alias because the request does not declare it. Pi then cannot execute the call. Provide a way to declare aliases for affected gateways while retaining hidden declarations elsewhere.