Skip to content

[pull] main from microsoft:main#1366

Merged
pull[bot] merged 35 commits into
KingDEV95:mainfrom
microsoft:main
Apr 30, 2026
Merged

[pull] main from microsoft:main#1366
pull[bot] merged 35 commits into
KingDEV95:mainfrom
microsoft:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 30, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

mjbvz and others added 30 commits April 29, 2026 16:42
Make sure we still set isInitialized when git is disabled or not active
…s and active session changes (#313394)

* Fix model selection logic in SessionModelPicker to handle empty models and active session changes

* Updates

Co-authored-by: Copilot <copilot@github.com>

* Updates

Co-authored-by: Copilot <copilot@github.com>

* new tests

---------

Co-authored-by: Copilot <copilot@github.com>
Also bumps to use sha256 since we're changing the hashing

This will cause clients to re-evaluate their checkpoints but should not actually cause a large re-upload because the file hashes themselves haven't changed

Co-authored-by: Copilot <copilot@github.com>
…Search/externalIngestIndex.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Don't try watching readonly file systems
Catch and log error during reconcileDbFiles
* update github copilot npm and update permission handling to use 'approve-once' instead of 'approved'

* Updates

* Fix permissionHelpers tests: update 'approved' to 'approve-once' and fix conditional check

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/6e5d31b2-034c-4c94-8145-c6a5c7c9c81b

Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com>

* Add setPermissionsRequired to MockCliSdkSession test helper

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/25f015e8-12a6-41d3-84b5-26cc1ef86ea1

Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
* Clean up agent host worktrees on session archive

When a session that owns a Copilot CLI worktree is archived, remove the
worktree from disk so it doesn't pile up. When the session is unarchived,
recreate the worktree pointing at the preserved branch so the user can
keep working.

- Persist `copilot.worktree.{path,repositoryRoot}` alongside the
  existing branch metadata so cleanup can reconstruct the worktree
  after a process restart.
- Add an optional `IAgent.onArchivedChanged` hook dispatched from
  `AgentSideEffects` after the archived flag is persisted.
- Add `branchExists`, `hasUncommittedChanges`, and
  `addExistingWorktree` to `IAgentHostGitService`.
- `CopilotAgent.onArchivedChanged` skips removal when the worktree
  is dirty or its branch is gone, and skips recreation when the
  directory already exists. All work is sequenced through
  `_sessionSequencer` so it can't race with `disposeSession`.

(Written by Copilot)

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

* Fall back to legacy metadata for sessions missing worktree path/repo root

Sessions created before `copilot.worktree.path` and
`copilot.worktree.repositoryRoot` were persisted only have the branch
name and the resolved working directory (which, for worktree-isolated
sessions, IS the worktree path). Without a fallback, archive could
delete the worktree but unarchive couldn't recreate it, and any session
older than this change wouldn't recreate at all.

`_readWorktreeMetadata` now falls back to `copilot.workingDirectory`
for the worktree path and reverses the worktrees-root convention
(`<repoBasename>.worktrees/<wt>`) to recover the repository root.
Added `deriveRepositoryRootFromWorktree` for the inversion plus a
unit test for the helper and an end-to-end test that pre-populates
unarchive still works.

(Written by Copilot)

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

* Drop legacy worktree-metadata fallback; just skip cleanup instead

If `copilot.worktree.path` and `copilot.worktree.repositoryRoot`
weren't persisted (sessions created before those keys existed), don't
try to derive them from `_META_CWD` and the worktrees-root naming
convention. Without saved metadata we can't reliably restore the
worktree on unarchive, so deleting it on archive would lose work.

`_cleanupWorktreeOnArchive` and `_recreateWorktreeOnUnarchive`
already early-return when those fields are missing, so dropping the
fallback is enough -- legacy sessions simply leave their worktree on
disk untouched.

(Written by Copilot)

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

* cleanup

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Include uri when computing external ingest checkpoint
This makes `enabled` style settings use working more like we do in core

Co-authored-by: Copilot <copilot@github.com>
Make it easy to switch current md doc between preview and edit mode
Fixes #305931

Takes advantage of the anchor based layout we already use but fixes an issue with the z-index. Previously this fix only worked for the `webviewEditor`

Also aligns the notebook editor with the webvieweditor for clipping and modals
* agents welcome: add theme selection step after sign-in

After signing in (or for first-launch signed-in users after clicking
Get Started), show a theme selection step with 4 theme preview cards
(Dark 2026, Dark HC, Light 2026, Light HC). Theme is applied live on
card click. Continue button dismisses the overlay.

External sign-in via onDidChangeDefaultAccount now transitions to the
theme step instead of auto-completing.

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

* agents welcome: theme importer restructure and environment improvements

- Rename vsCodeThemeImporter folder to vscode, merge interface and service
- Rename hostExtensionsPath to hostExtensionsHome returning URI
- Move host environment paths to common environmentService

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Apr 30, 2026
@pull pull Bot added the ⤵️ pull label Apr 30, 2026
@pull pull Bot merged commit cdd1c54 into KingDEV95:main Apr 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.