Commit Graph
158904 Commits
Author SHA1 Message Date
BeniBenj d2c49fa66a update AHP version 2026-06-09 23:48:23 +02:00
Benjamin Christopher Simmonds e52aaf56d9 Merge pull request #320627 from microsoft/benibenj/scattered-wallaby
less dependency on activeSession for pickers
2026-06-09 23:12:16 +02:00
Sandeep Somavarapu 8dbdec9459 fix #320615 (#320628) 2026-06-09 21:03:14 +00:00
Anisha Agarwal e4c6fc1252 Merge pull request #320472 from guomaggie/maggie/capi-v3
Switch from Copilot Proxy to CAPI V3
2026-06-09 13:52:57 -07:00
Gabriel RyanandCopilot 43d80e3ba3 chat: custom trajectory compaction model (#316114)
chat: custom trajectory compaction model (usePrismCompaction) (#316114)

Route conversation-history compaction (foreground /compact and background auto-compaction) to the dedicated trajectory-compaction CAPI model when chat.conversationCompaction.usePrismCompaction is enabled and the agent model matches chat.conversationCompaction.prismModelFilter. When the flag is off, behavior is unchanged from upstream.

Squashed rebase of PR #316114 onto main. Conflicts resolved by unioning additive changes: combined main's isCAPIEndpoint import with the PR's APIUsage import in agentIntent.ts, and kept both main's longToolCallCachePreservation.* and the PR's conversationCompaction.* nls keys. main's #320273 background-summarization anchor-round fix is preserved (backgroundSummarizer.ts unchanged).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 13:50:26 -07:00
vs-code-engineering[bot]Copilotvs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
cdf17eb2ab fix: guard postToolUse hook against closed response stream (fixes #319003) (#319011)
* fix: guard postToolUse hook against closed response stream (fixes #319003)

When the user cancels a chat request while tools are executing, the
response stream is closed. The postToolUse hook would then attempt to
write warnings via hookProgress to the closed stream, causing an
unhandled 'Response stream has been closed' error.

Add a cancellation token check before executing the postToolUse hook.
If the request is already cancelled, skip the hook entirely since the
stream cannot accept further output.

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

* fix: replace unicode em-dash with ASCII hyphen in comment

The Compile & Hygiene check failed due to a non-ASCII character (U+2014
em-dash) in a code comment. Replace with a standard hyphen.

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

---------

Co-authored-by: vs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 20:46:23 +00:00
BeniBenj e4e2449a79 Merge branch 'main' into benibenj/scattered-wallaby 2026-06-09 22:41:16 +02:00
Elijah King f9a9359d74 Merge pull request #320657 from microsoft/copilot/change-sign-in-button-text
Update welcome sign-in button label to "Sign in to use GitHub Copilot"
2026-06-09 13:35:46 -07:00
Justin Chen 2c39db7551 fix undo/redo interactions in agent host (#320650) 2026-06-09 13:20:54 -07:00
Elijah King 1848135c88 Merge branch 'main' into copilot/change-sign-in-button-text 2026-06-09 12:46:28 -07:00
Ladislau SzomoruandCopilot Autofix powered by AI 21c5fffd34 Agent Host - adopt changesets breaking changes (#320636)
* Bring over the latest version of the protocol

* Phase 1 & Phase 2

* Phase 3

* Phase 4

* Phase 5

* Fix diff information in the sessions list

* Wire-up the resolving the changesets when the session is active

* More fixes following the branch

* Attach the changesets for a materialized session

* Manually fix agent host protocol file

* Potential fix for pull request finding

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

* Potential fix for pull request finding

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

* Potential fix for pull request finding

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

* Potential fix for pull request finding

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

* Fix compilation errors

* Skip/fix some tests

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-10 05:40:55 +10:00
copilot-swe-agent[bot]andeli-w-king 28ec68b6eb Update welcome sign-in button label to "Sign in to use GitHub Copilot"
Co-authored-by: eli-w-king <201316543+eli-w-king@users.noreply.github.com>
2026-06-09 19:37:51 +00:00
Megan RoggeandMegan Rogge 4b47f077e4 xterm@6.1.0-beta.285 (#320646)
Diff: https://github.com/xtermjs/xterm.js/compare/6.1.0-beta.220...6.1.0-beta.285

Updates @xterm/* from beta.220 to beta.285 (addon-webgl to beta.284, its latest published).

Co-authored-by: Megan Rogge <meganrogge@Megans-MacBook-Pro.local>
2026-06-09 19:04:24 +00:00
Megan Rogge 50b471bff4 Run background terminal notifications on the conversation model (#320639) 2026-06-09 12:03:26 -07:00
Martin Aeschlimann 99dcaabd28 Skills contributed by VS Code Client do not contain descriptions (#320644) 2026-06-09 18:42:34 +00:00
Megan Rogge 8ed18a4e2d Fix Rerun Task closing/removing one of the terminals (#320432) 2026-06-09 18:31:38 +00:00
Connor PeetandCopilot f8a55977f7 Kill full server process tree in agent host kill_running_server (#320631)
* Kill full server process tree in agent host kill_running_server

The CLI agent host supervisor launches the server via a shell shim
(`<server>/bin/code-server-<quality>`) that spawns `node ... server-main.js`,
which in turn spawns a `bootstrap-fork` agent host process. The previous
`child.kill()` in `kill_running_server` only terminated the shim, leaving
the node descendants reparented to PID 1.

Route the shutdown through `kill_tree` instead, and have the non-Windows
`kill_tree` walk the full descendant tree via `pgrep -P` rather than just
the direct children. Add a depth-3 process-tree unit test on Unix.

Fixes #319516

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

* Fix flaky kill_tree test by reaping spawned child process

The previous test relied on `process_exists` to confirm pids were gone,
but on Linux the outer sh remains a zombie until its parent (the test
runtime) reaps it. Await `child.wait()` immediately after `kill_tree`
so the outer sh is reaped, and rely on init to reap the orphaned
descendants. Also bumps the deadline to 10s to absorb init latency.

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

* Bound kill_running_server wait and check pgrep exit status

Addresses Copilot review feedback:
- kill_running_server: bound child reap with a 5s timeout; escalate to
  SIGKILL via Child::kill if a process ignores SIGTERM, so a misbehaving
  server can't wedge the supervisor's shutdown or upgrade path.
- children_of: distinguish pgrep exit codes — 0/1 are expected (matches
  vs no matches), 2/3 are surfaced as CommandFailed.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 18:28:53 +00:00
Martin Aeschlimann 07f2a8a4fc Avoid fetching chat modes on menu bar update (#320609)
* Avoid fetching chat modes on menu bar update

* update
2026-06-09 18:19:18 +00:00
Don Jayamanne 6492bafb62 agentHost: refresh static changesets after git state (#320564)
* agentHost: refresh static changesets after git state

Use runtime git metadata as a fallback for Branch Changes when the persisted diff base is absent, refresh Branch and Uncommitted changesets after git state attaches, and mark cached static changesets as computing during background refreshes.\n\nScope temp-index git staging to changed pathspecs so nested repos and large checkouts do not require full-tree staging.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: add changeset refresh debug logs

Add low-noise debug logging for git-state-triggered static refreshes, Branch Changes base-branch fallback, preserved cached uncommitted snapshots, and scoped temp-index staging counts.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: preserve git failure contracts

Keep temp-index git failures on the existing undefined-return path instead of throwing through changeset and checkpoint callers.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: remove temp-index timeout changes

Keep temp-index git operations on the same timeout behavior they had before the scoped pathspec change.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: avoid eager status path parsing

Only parse the full changed path list when temp-index diffing is needed for untracked files.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 11:11:16 -07:00
Tyler James Leonhardt 5c9d3ecb5c Revert "Add context size picker for Claude Agent models" (#320614)
Revert "Add context size picker for Claude Agent models (#320166)"

This reverts commit 99d6bf7676.
2026-06-09 11:07:37 -07:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 055061c84e Bump shell-quote from 1.7.3 to 1.8.4 in /test/automation (#320621)
Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.7.3 to 1.8.4.
- [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/shell-quote/compare/v1.7.3...v1.8.4)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-version: 1.8.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-09 17:09:48 +00:00
Christof Marti ccc887a147 Update assessment for installing packages (#320606) 2026-06-09 10:04:44 -07:00
Maggie Guo ec7e1ae049 retrigger test run 2026-06-09 10:00:59 -07:00
Maggie Guo 8018c3608f retrigger tests 2026-06-09 09:38:47 -07:00
BeniBenj ae95cb2c05 less dependency on activeSession for pickers 2026-06-09 18:24:12 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ec9476bcd8 Bump shell-quote from 1.8.1 to 1.8.4 in /extensions/copilot (#320602)
Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.8.1 to 1.8.4.
- [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/shell-quote/compare/v1.8.1...v1.8.4)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-version: 1.8.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-09 09:10:37 -07:00
Benjamin Christopher Simmonds 278e45d450 Merge pull request #320603 from microsoft/benibenj/weak-flea
Fix session part re-entrancy issue
2026-06-09 18:03:03 +02:00
Maggie Guo 5e69d2617c fix code review errors 2026-06-09 09:00:29 -07:00
Megan RoggeandMegan Rogge 5a415030cc Fix background terminal notification agent routing (#320608)
Co-authored-by: Megan Rogge <meganrogge@Megans-MacBook-Pro.local>
2026-06-09 08:46:26 -07:00
Vritant Bhardwaj 40ae583dd5 Merge pull request #320538 from microsoft/mid-lizard
Enhance model fallback behavior for BYOK agents in RunSubagentTool
2026-06-09 08:15:31 -07:00
vs-code-engineering[bot]andvs-code-engineering[bot] <vs-code-engineering[bot]@users.noreply.github.com> e0a1c8385f [cherry-pick] Update link to permission level docs (release branch) (#320598)
Co-authored-by: vs-code-engineering[bot] <vs-code-engineering[bot]@users.noreply.github.com>
2026-06-09 15:00:36 +00:00
BeniBenj fdf6de2ed0 fix session part re-entrancy by moving assignment service call to create() 2026-06-09 16:31:54 +02:00
Ulugbek AbdullaevandCopilot 7a466cc0a2 chat-lib release: add auto option to pick version from copilot's package.json (#319696)
chat-lib release: add 'auto' option to pick version from copilot's package.json

Adds an 'auto' choice to the nextVersion parameter that publishes
whatever version is already in chat-lib/package.json (which
build-chat-lib.yml syncs from extensions/copilot/package.json),
so releasers no longer have to type the version manually.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 16:10:25 +02:00
Benjamin Christopher SimmondsandCopilot 0b63e81f3a sessions: make per-workspace session limit configurable via ExP (#320591)
The sessions list capped each workspace group at a hardcoded 5 sessions before showing the 'show more' affordance. Make this configurable via an IWorkbenchAssignmentService treatment ('sessions.workspaceGroupLimit'), defaulting to 5 when unset or invalid. The resolved value is encapsulated in an observable so rendering code reads it synchronously without spreading promises, and it is refreshed whenever the assignment service refetches treatments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 13:33:00 +00:00
Lee Murrayandmrleemurray 9f2598da2b Replace play icon with runCompact icon in RunScriptActionViewItem (#320593)
Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-06-09 15:10:57 +02:00
7e818b6606 Refactor chat component styles and update chevron icons (#320596)
Refactor chat component styles to use CSS variables for font sizes and update chevron icons to compact versions

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
2026-06-09 15:10:14 +02:00
Lee Murrayandmrleemurray 902f919c4c Update font size and weight variables for consistency (#320594)
Update font size and weight variables in sessionsViewPane.css for consistency

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-06-09 15:09:49 +02:00
4be4810d3e Refactor title bar styles to use CSS variables (#320592)
Refactor font sizes and weights in title bar styles to use CSS variables

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
2026-06-09 15:09:36 +02:00
Alex Ross 7c1dd895f5 Convert mock-llm-server.js to ts (#320567)
* Convert mock-llm-server.js to ts

* Ad eslint rule for no new js files

* Message
2026-06-09 15:08:47 +02:00
Lee Murrayandmrleemurray a66cbe3510 Update @vscode/codicons to version 0.0.46-16 and add 'runCompact' icon registration (#320436)
Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-06-09 11:52:57 +00:00
Benjamin Christopher SimmondsandCopilot 0c617092b6 sessions: experiment to move harness picker below input (#320584)
Add an A/B experiment that moves the session type (harness) picker from next to the workspace picker down into the bottom input controls (dropping the 'with' connector label).

The SessionsPart resolves the 'agentSessionsHarnessPickerInControls' treatment via IWorkbenchAssignmentService and tracks it (re-reading on onDidRefetchAssignments) in an observable. The value is threaded down through IChatViewOptions to the new-chat views, which snapshot it once at creation time so placement stays stable for the view's lifetime.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 11:04:55 +00:00
Christof Marti 14689dbbda Improve smoke test reliability in CI (#317981) 2026-06-09 08:34:41 +00:00
Henning Dieterichs ffd6d6e703 Fixes CI 2026-06-09 09:49:57 +02:00
Henning Dieterichs 58c0981e26 Registers @vscode/markdown-editor in markdown-language-features extension 2026-06-09 09:49:57 +02:00
Don JayamanneandCopilot ed12abf557 agent-host: complete the turn when /compact finishes (#320544)
* agent-host: complete the turn when `/compact` finishes

`/compact` in AHP Copilot sessions short-circuited `send()` by calling
`rpc.history.compact()` and returning early without driving an SDK turn.
Turn completion is only emitted from the SDK's `onIdle` event, so the
turn opened by the server was never closed and the UI spun "working
forever" (#320152).

Mirror the generic `/rename` handling: after the compact RPC resolves,
emit a brief acknowledgement response and complete the active turn so
the session returns to idle. This routes through the same
`_runTurnCompleteSideEffects` path as normal `onIdle` completion, so
queued-message draining and turn telemetry are unaffected. The error
path is unchanged (re-throws → `SessionError` ends the turn).

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

* agent-host: emit `/compact` acknowledgement and assert no SDK send

Address Copilot review on #320544:
- Emit the acknowledgement `SessionResponsePart` before completing the
  turn (the previous commit assigned `success` but never used it, which
  also left it unused for `noUnusedLocals`). This restores the
  `/rename`-style inline acknowledgement.
- Assert the failed-compaction test does not fall through to
  `session.send()`.

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

* agent-host: don't emit response content for `/compact`

Per review feedback, `/compact` should silently complete its turn rather
than emitting a markdown acknowledgement into the session transcript. The
compact RPC result is no longer inspected; the turn is completed inline so
the session returns to idle. Tests updated to assert no SessionResponsePart
is emitted.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 05:45:37 +00:00
Don Jayamanne 8ad4bc41d2 chore: update @github/copilot to version 1.0.60 in package.json and package-lock.json (#320521)
* chore: update @github/copilot to version 1.0.60 in package.json and package-lock.json

* chore: update @github/copilot to version 1.0.60 in package.json and package-lock.json

* test: update feature flag service creation in Copilot CLI tests
2026-06-08 22:25:38 -07:00
Maggie Guo e015913f8a fix typescript error 2026-06-08 21:00:05 -07:00
Connor PeetandCopilot e8303fa712 Add tooltips to agent host session config pickers (#320542)
* Add tooltips to agent host session config pickers

The agent host session config dropdowns (Approvals, Mode, Branch,
Worktree, etc.) set an aria-label but never wired up a hover tooltip,
even though the underlying schemas already carry descriptions. Hook the
schema description (falling back to title) up as a delayed hover on each
picker trigger.

Fixes #319820

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

* Fix hover leak on permission picker re-render

renderLabel can run against a fresh element on subsequent render()
calls (e.g. moving into/out of overflow). Track the current element and
re-wire the delayed hover via a MutableDisposable so the old
registration is disposed and new elements still get a tooltip.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 03:53:03 +00:00
Connor PeetandCopilot cb9600e793 Only show WSL remote picker option on Windows (#320543)
Fixes #320541

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-09 03:49:35 +00:00
Maggie Guo 60596d28d1 Merge branch 'main' into maggie/capi-v3 2026-06-08 20:08:40 -07:00