fix(tool): guard Object.entries against null in ToolRegistry.state#29369
fix(tool): guard Object.entries against null in ToolRegistry.state#29369SpencerJung wants to merge 1 commit into
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Found a potential duplicate: PR #27512: "fix: add null checks in ToolRegistry to handle re-export barrels" This appears to be closely related to PR #29369. Both PRs address adding null checks in ToolRegistry to handle edge cases with re-exports and prevent crashes when tool modules have unexpected shapes. The #27512 PR specifically mentions "re-export barrels" which aligns with the description of the current PR. You may want to verify if #27512 was already merged and if this PR (#29369) is addressing the same issue or a different occurrence. |
Fixes #27456. Adds null/undefined guards before Object.entries() calls in ToolRegistry.state to prevent crashes when tool modules contain re-exports or unexpected shapes.