Skip to content

[pull] main from microsoft:main#995

Merged
pull[bot] merged 44 commits intocode:mainfrom
microsoft:main
Mar 4, 2026
Merged

[pull] main from microsoft:main#995
pull[bot] merged 44 commits intocode:mainfrom
microsoft:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 4, 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 : )

pierceboggan and others added 30 commits February 24, 2026 16:56
The copy action was only available via right-click context menu (ChatContext).
Add it to the ChatMessageTitle toolbar so it appears as a visible icon button
on hover, using the copy codicon.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Register CopyItemAction on MenuId.ChatMessageFooter so responses show a copy button alongside thumbs up/down and retry actions.
Instead of immediately returning empty results for Unknown-state servers
and refreshing in the background, wait up to 5 seconds for the server to
become live on the first list call. Subsequent calls find the already-
resolved promise in _startupGrace and return immediately, so only the
first message pays the startup cost.

- _waitForStartup: races _ensureServerReady against the configurable
  grace period (default 5 000 ms); result is cached per server
- _shouldUseCachedData: awaits the grace period for Unknown servers,
  falls back to background-refresh for Outdated servers
- _listTools: refactored to Promise.all to parallelise per-server waits
- Tests: updated 'starts server when cache state is unknown' to assert
  tools are returned after the grace period; added new test for the
  timeout path using createNeverStartingServer
Per review feedback: Outdated servers should use the same per-server
startup grace period as Unknown servers. A prior fast startup does not
guarantee a fast restart, so both states now race startup against the
5s timeout before returning results.
Switching to a slightly older postcss version to avoid the official build issue
Make sure we specify a tsconfig.browser.json for browser ext
connor4312 and others added 14 commits March 3, 2026 16:13
…compile-error

Fix compile error in mcpGatewayToolBrokerChannel test
* Don't show Used n references when opening an old session
Alternate fix for #297152

* Don't show Used n references when opening an old session
Alternate fix for #297152
* api: fix memory leaks in MainThreadManagedSockets

Refactors MainThreadManagedSockets to properly manage disposables and prevent
memory leaks. Uses DisposableMap for registrations and DisposableStore to
collect socket disposal listeners.

- Changes _registrations from Map<number, IDisposable> to DisposableMap to
  leverage automatic disposal when clearing entries.
- Collects Event.once listeners for socket disposal in a DisposableStore to
  ensure they are properly disposed of when the factory is unregistered.
- Minor whitespace fix on closeRemote method signature.

Refs #293200

(Commit message generated by Copilot)

* Better
…9094)

* Commit customization files to main repo for worktree persistence

Customization files (agents, skills, instructions, prompts, hooks) are
now always committed to the main repository so they persist across
worktrees. When a worktree session is active, the file is also copied
and committed there so the running session picks it up immediately.

- Rewrite SessionsAICustomizationWorkspaceService.commitFiles() with
  dual-commit logic (main repo + worktree)
- Add deleteFiles() to IAICustomizationWorkspaceService interface
- Wire delete action to commit removals to git
- Show friendly warning when main repo commit fails from a worktree

* Apply suggestions from code review

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: add dynamic customization slash commands to sessions new-chat page

Add individual prompt/skill files as slash commands in the sessions
window's new-chat input, matching what the customizations view shows.

- Add getFilteredPromptSlashCommands() to IAICustomizationWorkspaceService
  - Core: passthrough to IPromptsService
  - Sessions: filters via applyStorageSourceFilter() per prompt type
- Add second completion provider in SlashCommandHandler for dynamic
  prompt/skill slash commands alongside existing static ones
- Update decorations to recognize and highlight dynamic prompt commands
- Subscribe to onDidChangeSlashCommands for cache refresh
- Fix regex in tryExecuteSlashCommand to support Unicode prompt names

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

* feat: expand prompt slash commands into CLI-friendly references

When a user types /my-prompt in the sessions new-chat input, expand it
before sending to: 'Use the prompt file located at [name](uri).' so
the CLI agent can locate and process the prompt file.

- Add tryExpandPromptSlashCommand() to SlashCommandHandler
- Call it in _send() before session.setQuery() to rewrite the query

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 Mar 4, 2026
@pull pull bot added the ⤵️ pull label Mar 4, 2026
@pull pull bot merged commit ea82cfa into code:main Mar 4, 2026
2 of 4 checks passed
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.