-
Notifications
You must be signed in to change notification settings - Fork 90
fix(agents-core): update tool relations when renaming sub-agent IDs for mcp/function tools #1636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: c22c49f The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @dimaMachina's task —— View job PR Review: Tool Relations Update for Sub-Agent ID RenamingI've conducted a comprehensive review of this PR that addresses a critical issue where tool relations weren't properly maintained when sub-agent IDs were renamed. Executive SummaryThis is a well-implemented bug fix that addresses a data consistency issue in the agent management system. The implementation correctly handles both MCP and function tool relation updates, includes comprehensive test coverage, and follows established patterns. ✅ Strengths1. Solid Problem Definition & Solution
2. Excellent Test Coverage // packages/agents-core/src/__tests__/integration/data-access/agentFull.rename-sub-agent-id.test.ts
- Sets up realistic scenario with both MCP and function tool relations
- Verifies that relations are properly relinked to new sub-agent ID
- Confirms old sub-agent is deleted and new one is created
- Uses proper database assertions with relation IDs3. Architectural Consistency
4. Defensive Programming // Only processes relations that have agentToolRelationId
if (!canUseItem.agentToolRelationId) {
continue;
}This prevents unnecessary operations and ensures only intended relations are updated.
|
No description provided.