Skip to content

Rename agent workspace api proposal - #350351

Merged
Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/hurt-smelt
Nov 26, 2026
Merged

Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/hurt-smelt

Conversation

@alexr00

Copy link
Copy Markdown
Member

Part of #315776

Copilot AI balanced review requested due to automatic review settings November 25, 2026 11:41
@alexr00 Alex Ross (alexr00) self-assigned this Nov 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The removed declaration breaks type-checking in the built-in Git extension because three accesses still reference workspace.isAgentSessionsWorkspace instead of workspace.isAgentManaged.

No open issues 🎉

What changed in this PR

Renames the proposed workspace API to workspace.isAgentManaged, clarifying how extensions can identify workspaces managed for agent sessions as part of #315776.

Changes:

  • Updates the API declaration and documentation while retaining the old runtime getter with a deprecation report.
  • Migrates Git and Copilot consumers to the new property name.
  • Updates test mocks and adds an API test for runtime backward compatibility.
File Description
src/​vscode-dts/​vscode.proposed.agentSessionsWorkspace.d.ts Renames the property and clarifies workspace semantics.
src/​vs/​workbench/​api/​common/​extHost.api.impl.ts Adds the new getter and preserves the deprecated runtime alias.
extensions/​vscode-api-tests/​src/​singlefolder-tests/​workspace.test.ts Tests both property names in a regular workspace.
extensions/​git/​src/​model.ts Updates the repository-opening check.
extensions/​git/​src/​fileSystemProvider.ts Updates on-demand repository opening.
extensions/​git/​src/​artifactProvider.ts Updates artifact-provider initialization gating.
extensions/​copilot/​src/​platform/​telemetry/​vscode-node/​test/​microsoftExperimentationService.spec.ts Renames the workspace mock property.
extensions/​copilot/​src/​platform/​telemetry/​vscode-node/​microsoftExperimentationService.ts Updates window-kind filter checks.
extensions/​copilot/​src/​platform/​telemetry/​test/​node/​assignmentFilters.spec.ts Updates the assignment-filter mock.
extensions/​copilot/​src/​extension/​prompt/​vscode-node/​gitCommitMessageServiceImpl.ts Updates commit-message progress handling.
extensions/​copilot/​src/​extension/​chronicle/​vscode-node/​sessionSyncStatus.ts Updates sync-status visibility gating.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​test/​copilotCloudSessionsProvider.spec.ts Updates workspace mocks and parameterized tests.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​test/​copilotCLIChatSessions.spec.ts Updates the CLI session workspace shim.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​test/​copilotCLIChatSessionParticipant.spec.ts Updates the participant test mock.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​copilotCloudSessionsProvider.ts Updates cloud discovery, logging, and badge checks.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​copilotCLIChatSessionsContribution.ts Updates repository-label visibility checks.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​copilotCLIChatSessions.ts Updates repository-badge visibility checks.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​chatSessionWorktreeServiceImpl.ts Updates worktree-change and comparison checks.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​chatSessions.ts Updates session-controller configuration selection.
extensions/​copilot/​src/​extension/​chatSessions/​vscode-node/​agentSessionsWorkspace.ts Maps the internal service to the renamed API.
extensions/​copilot/​src/​extension/​chatInputNotification/​vscode-node/​test/​byokUtilityModel.contribution.spec.ts Updates notification test mocks.
extensions/​copilot/​src/​extension/​chatInputNotification/​vscode-node/​byokUtilityModel.contribution.ts Updates Agents window notification suppression.

Review effort: Balanced

@alexr00
Alex Ross (alexr00) marked this pull request as ready for review November 26, 2026 17:11
@alexr00
Alex Ross (alexr00) added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 17781f7 Nov 26, 2026
97 of 99 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/hurt-smelt branch November 26, 2026 19:23
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.

4 participants