Commit Graph

157669 Commits

Author SHA1 Message Date
Raymond Zhao
628e477608 Revert "chore: bump octokit and engine versions" (#317402)
Revert "chore: bump octokit and engine versions (#317359)"

This reverts commit 6fe5e43b79.
2026-05-19 22:57:05 +00:00
dependabot[bot]
e82ad7b1ca Bump openssl from 0.10.79 to 0.10.80 in /cli (#317394)
Bumps [openssl](https://github.com/rust-openssl/rust-openssl) from 0.10.79 to 0.10.80.
- [Release notes](https://github.com/rust-openssl/rust-openssl/releases)
- [Commits](https://github.com/rust-openssl/rust-openssl/compare/openssl-v0.10.79...openssl-v0.10.80)

---
updated-dependencies:
- dependency-name: openssl
  dependency-version: 0.10.80
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-19 22:54:26 +00:00
Bryan Chen
c5b65b6d72 Merge pull request #317407 from microsoft/brchen/sanity-agent-mode-diagnostics
Sanity test: enrich agent-mode timeout error with stream diagnostics
2026-05-19 15:51:54 -07:00
vs-code-engineering[bot]
14915b73eb [cherry-pick] [OSS Tool] fix: add copyright for @iconify-json/mdi in cglicenses.json (#317232)
Co-authored-by: vs-code-engineering[bot] <vs-code-engineering[bot]@users.noreply.github.com>
Co-authored-by: Ben Villalobos <bevillal@microsoft.com>
2026-05-19 22:37:47 +00:00
Raymond Zhao
af6d574cf3 chore: exclude on-testplan and error-telemetry issues (#317404) 2026-05-19 22:31:51 +00:00
Bryan Chen
5aea585bca Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-19 15:29:26 -07:00
Connor Peet
0127d4da65 mcp: fix rendering of mcp hover descriptions (#317397)
* mcp: fix rendering of mcp hover descriptions

(Commit message generated by Copilot)

* followup
2026-05-19 22:23:39 +00:00
Bryan Chen
c79641394e Sanity test: enrich agent-mode timeout error with stream diagnostics 2026-05-19 15:19:23 -07:00
Connor Peet
85b37839d7 plugins: fix not showing confirmation for single-plugin repos (#317401) 2026-05-19 22:16:34 +00:00
Connor Peet
e4a4712e42 mcp: escape comman arguments for shell servers on windows (#317400) 2026-05-19 22:11:40 +00:00
Justin Chen
3711da41f2 remove input chevrons and add dividers between each dropdown label (#315599)
* remove input chevrons and add dividers between each dropdown label

* fix some agent host scenarios

* fix labels hiding/compacting

* nuke all chevrons in the pickers

* address some comments

* fix padding + add back chevrons for title

---------

Co-authored-by: copilot <copilot@github.com>
2026-05-19 22:08:09 +00:00
Connor Peet
96df9bf6c7 tools: add additional patterns to default edit restrictions (#317396) 2026-05-19 22:06:33 +00:00
Connor Peet
966dbd7891 mcp: allowlist mcp openable uris (#317391) 2026-05-19 14:56:15 -07:00
Connor Peet
e9628be821 cli: validate paths when pulling update (#317393) 2026-05-19 14:55:35 -07:00
Dmitriy Vasyura
e7faca8ecd Use numeric comparator when re-indexing resolved extensions across pages (#316827)
PreferredExtensionsPagedModel.populateResolvedExtensions sorted numeric Map keys with the default Array.prototype.sort, which compares values as strings. When the resolved map spans both 2-digit and 3+ digit indices (e.g. 20 and 100), lexicographic sort places 100 before 20. The loop then re-keys '100 -> 100 - adjust' before processing 20, which can overwrite a still-occupied lower slot and silently drop an extension from the paged model. Pass an ascending numeric comparator.
2026-05-19 23:23:08 +02:00
Raymond Zhao
6fe5e43b79 chore: bump octokit and engine versions (#317359)
* chore: bump octokit and engine versions

* Add missing lockfile change
2026-05-19 13:56:35 -07:00
Martin Aeschlimann
4fe111f084 customization UI: avoid excessive calls to provideChatSessionCustomizations (#317360)
* customization UI: avoid excessive calls to provideChatSessionCustomizations

* changes from review

* update
2026-05-19 13:56:11 -07:00
Osvaldo Ortega
c96dc550e7 Cloud Agent: Tasks API experimental setting and backend (#317206)
* Cloud Agent: Tasks API experimental setting and backend

Introduces a CloudAgentBackend seam with two implementations:

- JobsApiBackend wraps the existing sweagentd Jobs API (default, no behavior change).

- TaskApiBackend implements the new Mission Control Task API and currently uses a StubTaskApiClient pending CAPI routing.

Selection is controlled by the new 'github.copilot.chat.cloudAgentBackend.version' setting ('v1' = Jobs API, 'v2' = Task API). The setting is tagged experimental and defaults to 'v1', preserving existing behavior for legacy users.

* Review comments

* Address PR review feedback

- TaskArtifactPullData: add optional 'number' field separate from db id
- Add ListTaskEventsOptions for event-specific pagination/filters
- Relax sendFollowUp success check (only undefined is failure)
- Drop unused _configurationService field; read config locally in ctor
- Document that cloudAgentBackend.version requires reload
2026-05-19 13:42:26 -07:00
Logan Ramos
7314c1f6f2 Implement upgrade redirect (#317365)
* Work on redirect flow

* Fix uri double encoding

* Catch command error
2026-05-19 13:41:34 -07:00
Connor Peet
626867c58d plugins: support git-subdir marketplace source kind (#317362)
Adds support for the `git-subdir` plugin source kind in marketplace.json files,
matching the Claude Code marketplace schema. The `git-subdir` source clones an
arbitrary git URL and installs a plugin from a subdirectory of that repository,
useful for monorepos that publish many plugins from a single repo.

- Extends `IGitUrlPluginSource` with an optional `path` field.
- Accepts both `"source": "url"` and `"source": "git-subdir"` discriminants
  when parsing marketplace.json. `git-subdir` requires both `url` and
  `path`; the .git suffix is not required (Azure DevOps / AWS CodeCommit).
- Updates `GitUrlPluginSource` to resolve the install URI as repo-root + path
  (mirroring the existing GitHub sub-path handling), while the clone target
  remains the repository root.
- Includes `path` in update detection (`hasSourceChanged`) and the
  human-readable label (`getPluginSourceLabel`).

Fixes https://github.com/microsoft/vscode/issues/310850

(Commit message generated by Copilot)
2026-05-19 13:41:01 -07:00
Connor Peet
64d422211e Merge pull request #317354 from microsoft/connor4312/ahp-reog
agentHost: apply organized AHP types
2026-05-19 11:54:43 -07:00
Vritant Bhardwaj
4d00e7da5f Merge pull request #317308 from microsoft/dev/vritant24/modelVisibility
Re-introduce model visibility control for chat window model picker
2026-05-19 11:54:25 -07:00
Paul
f5af6b8a1d Use raw quota values (#317344) 2026-05-19 11:26:52 -07:00
Tyler James Leonhardt
f2af4d88e2 agentHost: enable subagent integration test for Claude real SDK (#317353)
agentHost: enable subagent test for Claude real SDK

- Refactor IRealSdkProviderConfig.subagentToolName (string) to
  subagentToolNames (readonly string[]) so providers that expose multiple
  subagent-kind tools can list them all.
- Claude registers both 'Task' and 'Agent' as subagent tools; the model
  may pick either. Listing both exempts both from the 'parent must not
  contain inner tool calls' assertion.
- Flip supportsSubagents to true for Claude now that subagent routing
  works end-to-end.
2026-05-19 18:26:32 +00:00
Connor Peet
9852223be3 agentHost: apply organized AHP types
Brings in https://github.com/microsoft/agent-host-protocol/pull/132. No runtime changes.
2026-05-19 11:12:17 -07:00
Vritant Bhardwaj
6c21d376fc Merge branch 'main' into dev/vritant24/modelVisibility 2026-05-19 11:07:13 -07:00
vritant24
ea6578c472 align visibility toggles to the right 2026-05-19 11:05:34 -07:00
Raymond Zhao
926e9f84b8 chore: npm audit fix (#317334)
* chore: npm audit fix

* address feedback
2026-05-19 17:49:10 +00:00
Connor Peet
c7e690b5f5 agentHost: adopt channel-based AHP wire model (#317251)
* agentHost: adopt channel-based AHP wire model

Adopts the channel-based Agent Host Protocol revision from
microsoft/agent-host-protocol#127. Subscriptions, action delivery, and
protocol notifications now all route over named channels identified by a
top-level `channel: URI` field, replacing the pre-channels subscribe /
dispatch / notify model.

- Renames `ROOT_STATE_URI` from `agenthost:/root` to `ahp-root://` and
  adds an `isAhpRootChannel` helper that tolerates both the canonical
  wire form and the workbench `URI` round-tripped form (`ahp-root:`).
- Threads a `channel` parameter through every action dispatch path:
  `IAgentService.dispatchAction`, `IAgentConnection.dispatch`,
  `AgentHostStateManager.dispatchServerAction` / `dispatchClientAction`,
  and `AgentSubscriptionManager.dispatchOptimistic`. Individual action
  payloads no longer carry `session` / `terminal` / `changeset` fields;
  the envelope carries the channel.
- Replaces the `{ method: 'notification', params: { notification } }`
  wrapper with top-level JSON-RPC methods (`root/sessionAdded`,
  `root/sessionRemoved`, `root/sessionSummaryChanged`, `auth/required`).
  Each notification's params now carry their own `channel: URI` field.
- Renames the per-command identifying field to `channel` for the channel-
  scoped commands (`createSession`, `disposeSession`, `createTerminal`,
  `disposeTerminal`, `fetchTurns`, `completions`,
  `invokeChangesetOperation`). Connection-level commands hard-code the
  root channel string.
- Updates the subscribe result to `{ snapshot? }` and the
  `SubscribeParams` / `UnsubscribeParams` field name from `resource` to
  `channel`.
- Drops the removed `ProtocolNotification`, `NotificationType`,
  `NotificationMethodParams`, and `NotificationMap` exports; provides a
  thin compat `NotificationType` constant keyed by method name for
  consumers that still discriminate notification variants.
- Adapts `AgentSubscription` routing to switch on `envelope.channel`
  rather than inspecting per-action URI fields (`_isRelevantEnvelope`
  replaces `_isRelevantAction`).
- Migrates all producers (`agentService`, `agentSideEffects`,
  `agentConfigurationService`, `agentHostChangesetService`,
  `agentHostTerminalManager`, `agentHostStateManager`,
  `protocolServerHandler`, Claude/Copilot agent sessions, terminal
  manager, etc.) and consumers (workbench session handler, terminal
  contribution, pty, customization harness, provider tests) to the new
  shapes.

(Commit message generated by Copilot)

* agentHost: address Copilot review for channels migration

Addresses feedback from Copilot's review of #317251:

- Update real-SDK integration test helpers and protocol integration
  tests to use the channel-based command shapes (rename `session` /
  `resource` to `channel`, add `channel: 'ahp-root://'` to
  connection-level commands, drop `session` from action payloads, route
  via params-level `channel`).
- Treat the canonical `ahp-root://` and the URI-normalized `ahp-root:`
  forms as equivalent in `_isRelevantToClient` so root broadcasts reach
  a client that subscribed using either form (mirrors `isAhpRootChannel`
  already in use elsewhere).
- Drop a `..` hop from the `NotificationType` import path in the local
  and remote session-provider tests; import from
  `state/sessionActions.js` directly.
- Drop a stale post-merge `session: SESSION_STR` in
  `claudeMapSessionEvents.test.ts:Test 9.5` and the matching
  `requestResourceAccess` test expectation in
  `agentHostFileSystemProvider.test.ts` so they match the new
  channel-based shapes (root cause of the macOS browser CI failure).

(Commit message generated by Copilot)

* tests

* import
2026-05-19 17:28:04 +00:00
Rob Lourens
c40fa0db04 Add chat markdown plain text fast path (#316808)
* Add chat markdown plain text fast path

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

* Handle underscore markdown in chat fast path

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-19 10:02:44 -07:00
vs-code-engineering[bot]
ef64b359cd [cherry-pick] OSS tool: update third-party notices (v1.121) (#317282)
Co-authored-by: vs-code-engineering[bot] <vs-code-engineering[bot]@users.noreply.github.com>
2026-05-19 16:57:00 +00:00
Logan Ramos
27d3a1c385 Fix chat status dashboard detaching on resize (#317340)
* Fix chat status dashboard on resize

* Limit perf impact of resize
2026-05-19 16:54:12 +00:00
vritant24
0a20280e8d fix(chat): add onDidChangeModelVisibility to ILanguageModelsService mock implementations 2026-05-19 09:50:04 -07:00
Logan Ramos
1df0871776 Fix status bar announcing mutliple times (#317336) 2026-05-19 16:46:16 +00:00
Vritant Bhardwaj
692b65eeb9 Merge branch 'main' into dev/vritant24/modelVisibility 2026-05-19 09:01:41 -07:00
Vritant Bhardwaj
972aea05a8 Merge pull request #317318 from microsoft/dev/vritant24/utilityDesc
fix(chat): simplify descriptions for utility model configurations
2026-05-19 08:49:51 -07:00
Ladislau Szomoru
c83b3c152b Agents - refresh repository state after git operation (ex: commit, sync) (#317317) 2026-05-19 15:48:40 +00:00
Aaron Munger
8388ea0efd Add languageModelToolInvoked telemetry from Copilot agent host session (#317180)
* Add languageModelToolInvoked telemetry from Copilot agent host session

* Register NullTelemetryService in createTestAgentContext
2026-05-19 08:34:20 -07:00
vritant24
5cdb46f953 fix(chat): simplify descriptions for utility model configurations 2026-05-19 08:17:45 -07:00
Sandeep Somavarapu
9d202f3863 sessions: remove session deduplication (#317311)
Remove the deduplicationKey concept from ISession and SessionsManagementService.

Previously, local and remote agent-host providers could both expose the same
underlying agent session, causing duplicates in the sidebar. The
deduplicationKey (set to the session URI string) was used to filter these out
in getSessions().

The deduplication is removed entirely. Duplicate sessions from different
providers will now appear as separate entries, which is acceptable given the
rarity of the local+remote overlap scenario.

- Remove deduplicationKey from ISession interface
- Remove deduplicationKey field from AgentHostSessionAdapter
- Remove deduplicateSessions() function and its call in getSessions()
- Remove the now-unused LOCAL_AGENT_HOST_PROVIDER_ID import
- Remove deduplicateSessions test suite

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-19 14:57:57 +00:00
Bryan Chen
41ad341da8 Merge pull request #316453 from microsoft/fix/invalid-telemetry-url-316446-bc535cd6b661e15a
fix: validate copilotTelemetryURL before setting endpointUrl (fixes #316446)
2026-05-19 07:54:55 -07:00
Vritant Bhardwaj
30cf7474ac Merge branch 'main' into dev/vritant24/modelVisibility 2026-05-19 07:36:34 -07:00
Lee Murray
52e3176688 Update @vscode/codicons to version 0.0.46-11 (#317303)
chore: update @vscode/codicons to version 0.0.46-11 in package.json and package-lock.json

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-05-19 14:24:54 +00:00
Dirk Bäumer
6571856ae2 Merge pull request #317286 from microsoft/dbaeumer/divine-guan-violet
Fix BulkTextEdit to prevent applying edits when document version has advanced
2026-05-19 16:08:44 +02:00
vritant24
c330150148 Reset selected model when its visibility changes 2026-05-19 07:06:28 -07:00
vritant24
1a3f8dfa9e Show model visibility controls in chat management 2026-05-19 07:06:21 -07:00
vritant24
3cd798d054 Add hidden chat model visibility state 2026-05-19 07:06:13 -07:00
Lee Murray
4ad9c7c87f Add compact codicon font size for improved UI scaling (#317306)
feat: add compact codicon font size for improved UI scaling

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-05-19 14:03:28 +00:00
Dirk Bäumer
6e0a9cb8b2 Merge branch 'main' into dbaeumer/divine-guan-violet 2026-05-19 15:07:48 +02:00
Alex Ross
82d052e136 Remove project setup info tool (#317284)
* Remove project setup info tool

* Fix tests

* Remove from more places
2026-05-19 15:06:32 +02:00