Repository navigation
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Closing this duplicate in favor of #133155, which was opened concurrently and contains the byte-identical one-line repair. Independent source review and failing/passing recovery/typecheck evidence have been transferred to #133155 (comment). We are leaving the existing maintainer-owned landing and CI in place rather than running a competing PR. |
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.
Related: #132932. Unblocks the shared build failures observed in #131441, #133143, and #133151.
What Problem This Solves
Resolves a problem where builds from current main fail with a missing export and Code Mode recovery throws when preparing normal tools. Unrelated PRs also fail build, typecheck, and QA jobs when CI combines their branches with the affected main.
Why This Change Was Made
The tool metadata extraction in #132932 moved the side-effect ownership helper into the dependency-light metadata owner but left one recovery import behind. Route that final reader to the same canonical owner already used by the client-tool path and public SDK; do not restore the obsolete runtime export or create another store. The metadata behavior and recovery policy are unchanged.
Provenance: verified the raw parent of 87b7121 and its patch: the helper moved out of
src/plugins/tools.tswhile the reconciliation import stayed unchanged. No containing stable tag was found in the local tag set.User Impact
Developers can build current main again, and bounded Code Mode recovery can prepare normal tools without the missing-function exception. No configuration, protocol, schema, or public SDK change.
Evidence
aace96c6720e283f95d84921c15610b33c9d3171.code-mode-reconciliation.ts:2. Existing recovery tests fail 3/15 withgetPluginToolSideEffectOwnerKey is not a functionat the real recovery preparation boundary.node scripts/run-tsgo.mjs -p tsconfig.core.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/core.tsbuildinfo;OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/code-mode-reconciliation.test.ts src/agents/embedded-agent-runner/run/attempt-client-tools.test.ts.git diff --checkpass. Production LOC: +1/-1, net zero; test LOC: +0/-0. Existing tests provide the regression proof, so no duplicate test was added.d4172019980394296eb9dc6c64ed4ebd79c18bda. Fresh autoreview and separate read-only Codex review found no actionable findings. Independent source review confirms the sole stale importer, shared WeakMap owner, migrated sibling callers, and unchanged upstream dynamic-tool request/response contract.Original shared failures: browser production types, QA build, and TUI build.