Repository navigation
refactor(agents): prepare hot-path runtime facts - #113167
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 22:34
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 24, 2026
* perf(agents): prepare hot-path runtime facts * fix(plugins): preserve catalog registry contracts
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
Agent attempts repeatedly rediscovered stable runtime metadata. System-prompt preparation walked workspace and cwd ancestors for a Git root on every attempt, while message-tool schema construction rescanned the loaded channel registry and durable-final capabilities.
Why This Change Was Made
Resolve the repository root once at run admission, including the explicit configured override, and carry it in the prepared runtime snapshot. Settle a versioned
PreparedMessageToolCatalogfor each exact plugin registry generation, carry it through the same prepared runtime, and keep supplied catalogs authoritative across registry reloads while retaining immutable bundled fallbacks.The added code is the typed lifecycle seam plus focused generation tests; request-time filesystem and registry discovery are removed from the prepared paths. No auto-reply or dispatch-owned files are changed.
AI-assisted: implemented and reviewed with Codex; I understand the ownership and generation boundaries in this change.
User Impact
No user-visible behavior change. Agent attempts avoid repeated synchronous filesystem checks and loaded-channel scans on two hot preparation paths.
Evidence
check:changedplus fullpnpm build: passed on Actions run https://github.com/openclaw/openclaw/actions/runs/30048751717.git diff --check: passed.