Skip to content

automations: fix: revert broad provider configuration changes - #335591

Merged
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
mainfrom
ulugbekna/revert-automation-config-scope
Sep 10, 2026
Merged

automations: fix: revert broad provider configuration changes#335591
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
mainfrom
ulugbekna/revert-automation-config-scope

Conversation

@ulugbekna

@ulugbekna Ulugbek Abdullaev (ulugbekna) commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Revert the broad automation configuration change

Contents

Purpose

Revert #335018, commit 1328607eb90d69b7a66fb2e8d4fdca49dcc0f9d3, so its worktree availability fix and unrelated provider-configuration fixes can be reviewed and landed in smaller units.

The original PR combined the falsely disabled New Worktree checkbox with remote branch discovery, Cloud model and Sandbox configuration, approval-policy state, custom-agent execution, and native session controls. This revert is a scope/review decision, not a claim that CI found a regression.

Scope

This is the exact inverse of the original PR's change to 22 files. Each restored file was checked against the parent of the original merge commit. Later unrelated changes on main are preserved.

The independent shared ActionList IME fix in #335578 is not part of this revert.

Behavior and follow-ups

Until the scoped replacements land, this intentionally restores the pre-PR behavior, including the known Codex/Claude automation worktree capability limitation and the provider-configuration issues the original PR addressed.

Two follow-up PRs are prepared as a stack:

  1. #335593, a ready PR that reintroduces only the seven agreed worktree/startup fixes.
  2. #335595, a draft PR containing the other eight provider-configuration/custom-agent fixes for separate review.

The smaller fix PR is based on this revert branch so its diff contains only the reintroduced worktree behavior. Review this revert before its two scoped follow-ups.

Validation

  • Verified that exactly the original 22 files are reverted and their contents match the original merge commit's parent.
  • 949 targeted unit tests passed, with 27 existing pending tests.
  • npm run typecheck-client passed.
  • git diff --check and the normal commit hygiene hook passed.

Revert 1328607 (#335018) so the worktree availability fix and unrelated provider configuration changes can be reviewed separately. Preserve subsequent main changes and the independent ActionList PR.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e4e70d7c-fbe2-487b-a6c5-177af2abae2f
Copilot AI balanced review requested due to automatic review settings September 10, 2026 23:12
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Sandeep Somavarapu (@sandy081)

Matched files:

  • src/vs/sessions/services/sessions/common/sessionsProvider.ts

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/sessions/services/sessions/common/sessionsProvider.ts

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.

Copilot review overview

🟢 Approval recommended

The diff cleanly restores every original hunk, preserves the separately scoped IME work, and has broad targeted validation.

Review tier: Balanced
Findings: None

What changed in this PR

Reverts the broad automation/provider configuration change so its fixes can be reviewed and landed separately, while preserving the independent ActionList IME work.

Changes:

  • Restores previous worktree discovery and validation behavior.
  • Reverts provider configuration, custom-agent, policy, and sandbox changes.
  • Removes associated APIs and regression tests.
File Description
src/​vs/​sessions/​SESSIONS.md Removes reverted provider worktree documentation.
src/​vs/​sessions/​services/​sessions/​common/​sessionsProvider.ts Removes workspace worktree-options API.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​test/​browser/​remoteAgentHostSessionsProvider.test.ts Reverts remote worktree tests.
src/​vs/​sessions/​contrib/​providers/​copilotChatSessions/​test/​browser/​sandboxPicker.test.ts Reverts Automation sandbox-menu coverage.
src/​vs/​sessions/​contrib/​providers/​copilotChatSessions/​test/​browser/​copilotChatSessionsProvider.test.ts Reverts provider-configuration regression coverage.
src/​vs/​sessions/​contrib/​providers/​copilotChatSessions/​browser/​copilotChatSessionsProvider.ts Restores prior model, sandbox, and approval behavior.
src/​vs/​sessions/​contrib/​providers/​copilotChatSessions/​browser/​copilotChatSessionsActions.ts Removes Automation sandbox control contribution.
src/​vs/​sessions/​contrib/​providers/​agentHost/​test/​browser/​localAgentHostSessionsProvider.test.ts Reverts host worktree capability tests.
src/​vs/​sessions/​contrib/​providers/​agentHost/​test/​browser/​agentHost/​agentHostSessionConfigPicker.test.ts Reverts Automation configuration-picker tests.
src/​vs/​sessions/​contrib/​providers/​agentHost/​browser/​baseAgentHostSessionsProvider.ts Restores Copilot-only worktree advertisement.
src/​vs/​sessions/​contrib/​providers/​agentHost/​browser/​agentHostSessionConfigPicker.ts Removes Automation-specific picker exposure.
src/​vs/​sessions/​contrib/​chat/​browser/​branchPicker.ts Reverts asynchronous provider branch filtering.
src/​vs/​sessions/​contrib/​automations/​test/​browser/​automationTools.test.ts Removes provider worktree validation tests.
src/​vs/​sessions/​contrib/​automations/​test/​browser/​automationDialog.test.ts Reverts provider-owned branch-picker tests.
src/​vs/​sessions/​contrib/​automations/​browser/​automationTools.ts Restores static worktree capability validation.
src/​vs/​sessions/​contrib/​automations/​browser/​automationDialog.ts Restores local Git branch discovery.
src/​vs/​platform/​agentHost/​test/​node/​codex/​codexPrewarmEviction.test.ts Reverts worktree-agent routing coverage.
src/​vs/​platform/​agentHost/​test/​node/​agentService.test.ts Reverts generated-session pending-state coverage.
src/​vs/​platform/​agentHost/​test/​node/​agentHostAutomationService.test.ts Reverts first-turn custom-agent coverage.
src/​vs/​platform/​agentHost/​node/​codex/​codexAgent.ts Restores prior custom-agent URI resolution.
src/​vs/​platform/​agentHost/​node/​agentService.ts Restores prior worktree pending-state timing.
src/​vs/​platform/​agentHost/​node/​agentHostAutomationService.ts Restores model-only first-turn inheritance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ulugbekna
Ulugbek Abdullaev (ulugbekna) merged commit 0845b5f into main Sep 10, 2026
34 checks passed
@ulugbekna
Ulugbek Abdullaev (ulugbekna) deleted the ulugbekna/revert-automation-config-scope branch September 10, 2026 23:47
@vs-code-engineering vs-code-engineering Bot added this to the 1.138.0 milestone Sep 10, 2026
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.

3 participants