Repository navigation
fix(agents): import the side-effect owner key from the module that exports it - #133155
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Independently confirmed this is the canonical repair. The sole diff is byte-identical to our independently reviewed fix in #133162: reconciliation now reads the existing metadata owner, preserving its single WeakMap, producer/wrapper identity, and SDK/client-tool consumers. We will close our duplicate draft in favor of this PR. Before/after proof from trusted main
One historical clarification for the description: The repair is independently verified; our QA campaign is waiting for this existing maintainer-owned PR to unblock main. We are not taking over its branch or landing. |
What Problem This Solves
maindoes not type-check, so every open pull request goes red oncheck-prod-typesand the checks that depend on it:The failure is not in the branch that hits it. It reproduces on a clean checkout of
mainat41dccabf179.Why This Change Was Made
getPluginToolSideEffectOwnerKeyis defined and exported insrc/plugins/tool-metadata.ts.src/plugins/tools.tsnever exported it — it only importscopyPluginToolMetaandsetPluginToolMetafrom that module, so it is not a barrel for this symbol.code-mode-reconciliation.tsreached for it throughplugins/tools.js. Its sibling in the same directory,attempt-client-tools.ts, already imports the same function from the module that owns it:This points the one wrong import at that same owner rather than adding a re-export, so the symbol keeps a single source and the two call sites in this directory agree.
User Impact
maintype-checks again, and pull requests stop inheriting a redcheck-prod-typesthat has nothing to do with their own changes. No runtime behavior changes: the imported function is the same one in both modules' object graph.Evidence
Broken on a clean
main(41dccabf179), before any change:After this change, on the same checkout:
oxfmt --checkpasses on the touched file.