Repository navigation
refactor(agents): split Tool Search internals - #113296
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 24, 2026 09:43
steipete
force-pushed
the
refactor/tool-search-internals-split
branch
from
July 24, 2026 09:46
1464aa5 to
29692ac
Compare
steipete
force-pushed
the
refactor/tool-search-internals-split
branch
from
July 24, 2026 09:54
29692ac to
004e458
Compare
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Jul 24, 2026
…omic-publication-20260724 * origin/main: refactor(memory-lancedb): remove dead legacy path scan (#113299) fix(test): satisfy no-map-spread in exec approvals (#113303) fix: keep OAuth refresh failures terminal [AI] (#112957) fix: reusable exec approvals apply to approved arguments (#112946) refactor(agents): split tool search internals (#113296) fix: keep inline eval approvals one-shot [AI] (#112956) refactor(normalization): reuse trimmed list helpers (#113295) fix(openai): fail fast on invalid TLS certificates (#111818) fix: recognize more shell wrappers [AI] (#112955) fix(i18n): correct Indonesian seconds labels chore(i18n): refresh native locales fix: block opaque exec dispatch wrappers (#112953)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 25, 2026
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
src/agents/tool-search.tsremained a 2,328-line grandfathered module after the earlier code-controller extraction, so catalog state, directory projection, runtime execution, code-mode IPC, transcript projection, and config ownership were still coupled behind a max-lines suppression.Why This Change Was Made
This Peter-requested behavior-neutral refactor keeps
tool-search.tsas the compatibility facade while splitting its internals by cohesive ownership: catalog lifecycle, code-mode IPC, config resolution, directory hydration, JSON projection, runtime execution, transcript projection, and shared contracts. The max-lines suppression and baseline entry are removed; all resulting production modules are 29–547 lines. Net production LOC grows by 64 lines (2.8%) for explicit imports, shared contracts, and the stable facade boundary.AI-assisted: yes. The implementation and moved behavior were reviewed against the existing callers and focused suites.
User Impact
No user-visible behavior, tool names, schemas, help text, runtime defaults, or public imports change. Maintainers gain smaller ownership boundaries and the repository no longer needs the Tool Search max-lines exception.
Evidence
node scripts/run-vitest.mjs src/agents/tool-search.test.ts— 79 passed.node scripts/run-vitest.mjs src/agents/tool-search.stream-errors.test.ts— 2 passed.node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/attempt.tool-search-run-plan.test.ts— 12 passed.node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/attempt.tool-search-catalog-abort.test.ts— 1 passed.node scripts/check-changed.mjs -- <touched files>— passed on Blacksmith Testbox, including production/test typechecks, formatting, max-lines ratchet, lint, import cycles, and architecture guards.node scripts/check-deadcode-exports.mjs— all three Knip unused-export scans passed with 0 entries on Blacksmith Testbox.origin/main— clean, 0 accepted/actionable findings. The mandated global wrapper was attempted first but its pre-review regex scanner recursively crashed on the moved regex-heavy patch before invoking Codex.