You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support deployment-scoped connection management - #526
Manage agent connections across multiple deployments and environments. Switch between deployment and workspace connections without reattaching the agent or changing where sync operations(Pull, Push, and Preview) operate.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The deployment path can reject usable environments without trying the fallback lookup, and cancelling a slow connector lookup can leave the webview controls disabled.
Adds deployment-scoped connection management to the Copilot Studio VS Code extension, allowing users to configure connections across environments without changing the workspace’s Pull, Push, or Preview target.
Changes:
Discovers deployments from hosting configuration and adds a deployment selector with pending-edit protection.
Routes connection listing and binding updates to the selected environment, while keeping new reference declarations local.
Adds controller, webview, and backend tests, plus clearer HTTP error reporting.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved issues can leave connection controls disabled, prevent returning to workspace mode, and incorrectly report Copilot Studio as unavailable for mixed-case environment IDs.
openUsage() holds the operation lock while awaiting file access and showTextDocument(), but leaves the connection controls enabled and sends no completion message. A Refresh or deployment switch during that await disables the webview, then gets silently dropped by the lock, leaving the controls disabled after navigation finishes. Mark navigation busy and restore the idle state when it completes, or queue competing requests instead of dropping them.
Keep workspace action available without a unique deployment
When multiple deployments target the workspace environment, currentDeploymentId is undefined, so every nonempty selection—including an Attached option—uses deployment mode. Hiding the workspace action then prevents users from restoring workspace usages, reference removal, and workflow controls without closing the panel. Show this action when there is no unique currentDeploymentId, and update its click guard at line 299 to permit returning in that case.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Reattaching the same folder can leave cached connection state targeting the previous environment, allowing Apply and connection creation to affect the wrong environment while workflow actions use the new workspace.
Reopening this panel after reattaching the same folder replaces workspace but leaves the cached connection target and displayed rows tied to the previous attachment. With no deployment selected, target validation returns immediately, so Apply and connection creation still use the old environment while workflow actions use the new workspace. Detect attachment changes and block actions until all target-derived state is reloaded, coordinating pending edits and any in-flight operation.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because malformed configuration errors may leak private agent or deployment names through telemetry despite existing redaction.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Public contract changes and cross-environment binding writes require human review and real-tenant validation of compatibility and tenant isolation beyond the supplied mocks and synthetic fixtures.
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
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.
Manage agent connections across multiple deployments and environments. Switch between deployment and workspace connections without reattaching the agent or changing where sync operations(Pull, Push, and Preview) operate.