Skip to content

Conversation

kantord
Copy link
Member

@kantord kantord commented Oct 13, 2025

@kantord kantord marked this pull request as ready for review October 13, 2025 11:23
@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 11:23
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where copying remote servers to a group would fail because the API call was incorrectly including an image field for remote servers. The fix conditionally structures the request payload based on whether the server is remote (uses url) or local (uses image).

Key Changes

  • Conditional payload structure in useCopyServerToGroup hook to handle remote vs local servers differently
  • Added test coverage for the remote server copy scenario to ensure the fix works correctly

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
renderer/src/features/mcp-servers/hooks/use-copy-server-to-group.ts Restructured the createWorkload payload to conditionally include either remote server fields (url, oauth_config) or local server fields (image, volumes, cmd_arguments)
renderer/src/features/mcp-servers/hooks/__tests__/use-copy-server-to-group.test.tsx Added comprehensive test to verify that remote servers are copied with the correct payload structure

@kantord kantord merged commit 991eb40 into main Oct 15, 2025
13 checks passed
@kantord kantord deleted the bug-in-certain-circumstances-groups-feature-maybe branch October 15, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants