Repository navigation
refactor(code-mode): prepare MCP namespaces once per run - #115459
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Jul 29, 2026
* origin/main: (57 commits) docs: document gateway and memory chat wizards (#115487) fix(agents): restore subagent completion delivery on CLI runtimes (#115422) fix(sandbox): stop provisioning failures from exhausting fallbacks (#115481) refactor: remove duplicate runtime and plugin paths (#115483) fix(ui): canonicalize agent model identity (#115480) fix(ui): preview model picker interactions live (#115477) fix(ui): match disabled microphone picker background (#115472) refactor(code-mode): split focused runtime stress suites (#115462) fix(gateway): preserve restart intent across coalesced config writes (#110397) fix: scope subagent handoff to direct tools (#115466) docs: explain native subagent handoff fix: clarify native subagent completion handoff fix(config): respect agent directory filesystem case (#105402) refactor(code-mode): unify safe OpenAI tool filtering (#115460) refactor(code-mode): prepare MCP namespaces once per run (#115459) fix(ollama): preserve selected model capabilities during onboarding (#115467) refactor(chat): remove duplicate session projection paths (#115461) refactor(code-mode): make tool catalogs run-owned (#115458) fix(cli): preserve mid-turn text in durable replies (#115455) fix(memory): fall back to keyword search when embeddings cannot start (#115397) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 29, 2026
…5459) * refactor(code-mode): prepare MCP namespaces once per run * fix(code-mode): remove unused MCP declaration paths
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.
What Problem This Solves
Code Mode rebuilt equivalent MCP namespace descriptions and virtual TypeScript declarations repeatedly for one run, kept an oversized grandfathered namespace module, and allowed inherited object properties to satisfy untrusted MCP schema inputs.
Why This Change Was Made
Prepare one run-owned MCP namespace model and its virtual API files, split declaration rendering into its owner module, remove the stale max-lines exception, and require own input properties for MCP schema validation.
User Impact
Code Mode uses less repeated namespace work, better rejects hostile MCP schemas, and reduces production code by 11 lines.
Evidence