Commit Graph
120 Commits
Author SHA1 Message Date
Robo 0d9ade07b6 chore: bump electron@43.7.3 (#336697)
* chore: bump electron@43.7.1

* chore: bump electron@43.7.3

* chore: update rpm dependencies

* test: use async cleanup for AH git integration tests

* chore: bump distro
2026-09-22 02:58:34 +00:00
roblourensandCopilot 6629039ade agentHost: Use the SDK 1.0.14 owned runtime (#336628)
* agentHost: update Copilot runtime to 1.0.86-2

Use the official expanded platform release archives so native modules remain visible to Microsoft product signing, while rejecting SEA-only packages during packaging. (Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c82a8f43-3513-4ca1-a777-c64128109055

* agentHost: use SDK-owned Copilot runtime

Remove the explicit @github/copilot dependency and package the SDK 1.0.14 platform wrapper with its adjacent native runtime so Microsoft product signing covers both files. (Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c82a8f43-3513-4ca1-a777-c64128109055

* agentHost: Restore SDK runtime parity

(Written by Copilot)

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

* agentHost: Complete SDK runtime migration fixes

(Written by Copilot)

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

* agentHost: Update built-in skill expectations

(Written by Copilot)

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c82a8f43-3513-4ca1-a777-c64128109055
2026-09-18 09:08:32 -07:00
roblourensandCopilot 7eb2f0cf68 agentHost: Revert Copilot SDK 1.0.14 bump (#336514)
agentHost: revert Copilot SDK 1.0.14 bump

Reverts #336360 after Insider product builds exposed macOS signing and Linux ARM64 packaging regressions. (Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c82a8f43-3513-4ca1-a777-c64128109055
2026-09-17 03:07:58 +00:00
6e9cf0e4ad agentHost: bump Copilot SDK to 1.0.14 (#336360)
* chore: bump @github/copilot-sdk to 1.0.14-preview.1 and @github/copilot to 1.0.84-9

* test: match invoke_agent span by prefix and wait past batch export

The bumped @github/copilot runtime now names the OTel root span
`invoke_agent {gen_ai.agent.name}` per GenAI semconv (verified in
copilot-agent-runtime session_tracker.rs), so the exact `"name":"invoke_agent"`
substring match no longer holds; match by prefix. The SDK span is also exported
via the runtime's AsyncBatchSpanProcessor (~5s scheduled delay), so widen the
poll budget past that cadence to avoid racing the batched export.

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

* build: preserve built-in Copilot SDK entrypoint

Restore the staged SDK after product packaging before target-native files are materialized, and fail if the SDK entrypoint is absent. (Written by Copilot)

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

* agentHost: stabilize Copilot SDK validation

Tighten OTel span matching, remove cross-chat ordering from the retained-subagent snapshot, and approve the SDK's updated koffi dependency. (Written by Copilot)

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

* agentHost: support stable Copilot runtime packages

Use the final Copilot SDK and CLI versions, resolve their paired platform artifacts, retain them in desktop and remote products, and validate the stable OTel contract. (Written by Copilot)

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

Copilot-Session: c1d23f93-6f44-4570-af50-2fd458472fbb

* build: pin Copilot SDK koffi dependency

Resolve the SDK's transitive koffi dependency to 3.2.1 in both package roots so mirrored registries only need a release older than seven days. (Written by Copilot)

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

Copilot-Session: c1d23f93-6f44-4570-af50-2fd458472fbb

* build: scope Copilot packaging to Agent Host

Keep the root Copilot runtime packaging changes without altering the independently versioned built-in Copilot extension. (Written by Copilot)

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

Copilot-Session: c1d23f93-6f44-4570-af50-2fd458472fbb

* build: update Linux dependency baseline

Remove the obsolete glibc 2.27 requirement after the Copilot runtime package update changes the generated x64 dependency set. (Written by Copilot)

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

Copilot-Session: c1d23f93-6f44-4570-af50-2fd458472fbb

* build: update Linux RPM dependency baseline

Remove the obsolete glibc 2.27 libm requirement after the Copilot runtime package update changes the generated x64 RPM dependency set. (Written by Copilot)

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

Copilot-Session: c1d23f93-6f44-4570-af50-2fd458472fbb

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@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>
Copilot-Session: c1d23f93-6f44-4570-af50-2fd458472fbb
2026-09-16 22:22:12 +00:00
Robo 4ae4d96052 chore: update to Electron 43 (#332935)
* chore: bump electron@43.4.1

* linux: align desktop name and StartupWMClass

Give DEB and RPM installs a package owned reverse DNS desktop name
so runtime wayland portal identity resolves to an installed desktop file.
Keep snap and archive runtime identities aligned with their distribution
specific desktop file behavior.

Set StartupWMClass to the same identity used by the runtime.

* linux: respect native window controls layout

Reserve both left and right WCO safe areas so custom title bar content
does not overlap controls when the desktop environment places them on
either side.

* dialogs: preserve native locations

Electron 43 defaults native dialogs without a defaultPath to the
Downloads directory instead of allowing the platform to retain its
last location. Resolve existing file or folder history before
invoking native open and save dialogs, while preserving an explicit
caller-provided URI.

* protocol: migrate from deprecated handlers

Replace deprecated registerFileProtocol, registerBufferProtocol,
registerHttpProtocol, and interceptFileProtocol APIs with protocol.handle().

* test: migrate unit test protocol handler

* chore: remove obsolete WebSQL preferences

Electron 43 removes WebSQL and its enableWebSQL web preference.

* fix: wco position for windows

* protocol: avoid exposing managed resource errors

* test: preserve file URLs in protocol handler

* test: adopt worker parent identifiers in CDP golden

Electron 43 target lifecycle payloads include parentId and
parentFrameId for worker targets.

* build: support V8 headers with GCC 12

* test: use platform native dialog paths

* build: install custom electron headers

* build: bootstrap electron headers in compile job

* build: bootstrap Electron headers for Alpine and web

* chore: bump electron@43.5.1

* chore: revert system fontconfig init workaround

* temp: bump distro

* chore: bump electron@43.6.0

* test: skip Dev Container agent host smoke test for exploration

The exploration update channel serves an outdated agent host server that
does not include the bundled Copilot CLI, causing the smoke test to time out.

* chore: bump distro
2026-09-16 08:59:16 +02:00
Dmitriy VasyuraandCopilot fbf9593b15 Fix Linux and macOS build failures due to missing native addon (#336227)
* Agent Host changes for agents/fix-linux-macos-build-failures

* Update Linux dependency snapshots for Copilot native addon

Account for GLIBC_2.27 requirements in Debian and RPM packaging after retaining cli-native.node. The existing glibc 2.28 minimum is unchanged.

Refs #336227.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-14 23:35:21 -07:00
759f7f6b94 bump @github/copilot-sdk to 1.0.13-preview.2 and @github/copilot to 1.0.82-0 (#333198)
* chore: bump @github/copilot-sdk to 1.0.13-preview.2 and @github/copilot to 1.0.82-0

* Migrate agentHost to new Copilot SDK permission-mode API

SDK 1.0.13-preview.2 renamed PermissionAllowAllMode->PermissionMode
('on/auto/off'->'allow-all/assisted/manual'), PermissionAutoApproval->
PermissionAssistedApproval, permissions.setAllowAll->setMode, and
promptRequest.autoApproval->assistedApproval, and added the
extension-env-access permission kind. Migrate the agentHost integration
and its unit tests to the new contract per the product build TS errors.

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

* build: drop stale libm GLIBC_2.27 rpm dep after SDK/CLI bump

Bumped @github/copilot native payload no longer requires libm.so.6(GLIBC_2.27) on x86_64/aarch64; the reference rpm dep lists diverged from generated deps, failing 'Prepare rpm package' per product build 467750.

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

* test: elide runtime-authored change-notice preamble in capi-replay projection

CLI 1.0.81-10 now prepends a `<tools_changed_notice>` block to the user
message when tools change between turns (e.g. `exit_plan_mode` is dropped
after plan approval). The Agent Host E2E capture for planning-mode auto-approve
predates this behavior, so capi-replay's request #5 no longer matched a live
run against the newer CLI even though the host composed an identical turn.

These change-notice blocks (`<tools_changed_notice>`, `<mode_changed_notice>`,
`<working_directory_changed>`, `<additional_directories_changed>`) are composed
by the `@github/copilot` runtime from session state, not host-authored prompt
structure, so they belong in the projection's symmetric elision set alongside
the model id and tool_result payload. Elision runs before path elision so the
intact `</…>` closing tag is matched rather than being rewritten into a path
placeholder first.

Fixtures are not edited; the model-changes fixture that records a
`<tools_changed_notice>` model-switch block strips symmetrically on both sides
and still matches.

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

* agentHost: handle Copilot MCP sampling requests

Register sampling event interest, reject pending requests through the SDK UI RPC, and release the registration with the session lifecycle. This restores the canonical MCP cancellation behavior with runtime 1.0.81-12.

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

* test: update Copilot runtime expectations

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

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@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>
Co-authored-by: Aaron Munger <aamunger@microsoft.com>
2026-08-31 17:36:30 +00:00
Anthony KimandCopilot 2668c9fe2e Revert Copilot SDK and runtime bump (#332951)
Revert Copilot SDK and runtime bump (#332803)

This reverts commit a29f231dfa and restores @github/copilot-sdk 1.0.11 with @github/copilot 1.0.81-0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-27 16:03:45 +00:00
a29f231dfa bump @github/copilot-sdk to 1.0.13-preview.0 and @github/copilot to 1.0.81-12 (#332803)
* fix: migrate agentHost to SDK assisted-approval permission API

SDK 1.0.12-preview.0 renamed setAllowAll->setMode, autoApproval->assistedApproval,
PermissionAllowAllMode->PermissionMode (on/auto/off -> allow-all/assisted/manual),
and added the extension-env-access permission kind.

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

* build: drop stale libm GLIBC_2.27 rpm dep after SDK/CLI bump

Bumped @github/copilot native payload no longer requires libm.so.6(GLIBC_2.27) on x86_64/aarch64; the reference rpm dep lists diverged from generated deps, failing 'Prepare rpm package' per product build 467750.

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

* test: elide runtime-authored change-notice preamble in capi-replay projection

CLI 1.0.81-10 now prepends a `<tools_changed_notice>` block to the user
message when tools change between turns (e.g. `exit_plan_mode` is dropped
after plan approval). The Agent Host E2E capture for planning-mode auto-approve
predates this behavior, so capi-replay's request #5 no longer matched a live
run against the newer CLI even though the host composed an identical turn.

These change-notice blocks (`<tools_changed_notice>`, `<mode_changed_notice>`,
`<working_directory_changed>`, `<additional_directories_changed>`) are composed
by the `@github/copilot` runtime from session state, not host-authored prompt
structure, so they belong in the projection's symmetric elision set alongside
the model id and tool_result payload. Elision runs before path elision so the
intact `</…>` closing tag is matched rather than being rewritten into a path
placeholder first.

Fixtures are not edited; the model-changes fixture that records a
`<tools_changed_notice>` model-switch block strips symmetrically on both sides
and still matches.

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

* chore: bump @github/copilot-sdk to 1.0.12-preview.0 and @github/copilot to 1.0.81-12

Pin root and remote to the signed SDK 1.0.12-preview.0 / CLI 1.0.81-12 pair.

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

* chore: retarget @github/copilot-sdk to 1.0.13-preview.0

Keep @github/copilot at 1.0.81-12. Same permission, rpm, and replay fixes.

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

* agentHost: handle Copilot MCP sampling requests

Register sampling event interest, reject pending requests through the SDK UI RPC, and release the registration with the session lifecycle. This restores the canonical MCP cancellation behavior with runtime 1.0.81-12.

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

* fix: route AgentService provider lookups through the provider service

Turn resume and the failed-turn test still called removed AgentService helpers after providers moved to IAgentHostProviderService.

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

* test: gate Copilot failed-turn resume E2Es on 1.0.81-12

Try Again accepts resume but never emits turnComplete. Live re-record
hits the same hang, so this is not a stale fixture.

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

* test: update Copilot snapshots for SDK bump

Refresh prompt baselines for @github/copilot 1.0.81-12 and align user instruction discovery expectations with the new runtime behavior.

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>
Co-authored-by: Aaron Munger <aamunger@microsoft.com>
2026-08-26 20:07:07 -07:00
Christof MartiandCopilot 33fcbf32e3 Update os-proxy-resolver to 0.4.0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-26 08:53:29 +02:00
Robo eff5556afc chore: bump electron@42.9.3 (#331833)
* chore: bump electron@42.9.3

* chore: update build

* chore: remove electron dependency

Dependency was only needed for types, binary download happens
elsewhere. With the 7-day quarantine the dependency adds
unnecessary delay on runtime update.

* fix: monaco type dependency

Locking to node 24.12.4 instead of 24.x to avoid quarantine
delay. Can be bumped again in followup.

* chore: bump distro

* fix: license check for types/node
2026-08-25 05:11:06 +00:00
Paul 121da1b979 Exclude musl os-proxy-resolver binaries from Linux packages (#329084) 2026-08-04 19:56:07 -07:00
Raymond Zhao 723f84ed3c chore: list libc.so dependency (#329054) 2026-08-04 23:03:30 +00:00
Raymond Zhao f45868b204 fix: outdated Debian and RPM deps (#326907) 2026-07-22 02:22:03 +00:00
Megan Rogge eb62e28c3c Dictation: download Foundry Local native runtime on demand (#326839) 2026-07-21 20:51:23 +00:00
Martin Aeschlimann 3fa380ff09 Revert 326678 and 326718 (#326769)
* Revert "Chat dictation: always use Nemotron model, remove model setting (#326718)"

This reverts commit 6d02468e2c.

* Revert "Dictation: migrate on-device runtime to Foundry Local streaming ASR (#326678)"

This reverts commit 6b3ff3c7f0.
2026-07-21 08:52:50 +00:00
Megan Rogge 6b3ff3c7f0 Dictation: migrate on-device runtime to Foundry Local streaming ASR (#326678) 2026-07-20 18:29:05 +00:00
Robo 1cf2f4ee31 chore: cleanup some debt comments (#326502)
* chore: remove old context menu code from code.iss

* chore: remove old app name symlink on macOS

* chore: update comment for windows fs workaround

* chore: update issue link for context menu workaround

* chore: remove stale comment from libcxx-fetcher
2026-07-20 10:03:52 +00:00
Ladislau Szomoru 1b9d4d27ea Engineering - Fix deb packaging shlibdeps resolution for onnxruntime native addon libs (#326306)
* Agents - remove toggled condition

* Engineering - Fix deb packaging shlibdeps resolution for onnxruntime native addon libs

* Revert unrelated change
2026-07-17 09:22:27 +00:00
Robo dc7db07400 chore: update electron@42.6.0 (#325428)
* chore: update electron@42.6.0

* chore: update node.js build

* temp: bump distro

* chore: update deb dependencies

* chore: update rpm dependencies

* chore: add missing platform dep to allow-scripts

* chore: bump distro
2026-07-12 20:30:31 +00:00
Robo 913d5cccc1 feat: restore asar for node_modules (#324897) 2026-07-08 13:10:17 +00:00
Robo 926982696e Revert "feat: restore asar for node_modules" (#324875)
* Revert "fix: builtin resolution of electron modules via asar hook (#324861)"

This reverts commit 5928613aa1.

* Revert "fix: restrict asar esm hook resolution to app resources (#324851)"

This reverts commit 89bc3825bd.

* Revert "feat: restore asar for node_modules (#324084)"

This reverts commit c9dda3b36a.
2026-07-08 07:16:29 +00:00
RoboandCopilot c9dda3b36a feat: restore asar for node_modules (#324084)
* feat: restore node_modules bundled into asar

* fix: store node_modules at top level inside asar archive

* Revert "fix: store node_modules at top level inside asar archive"

This reverts commit 4747aa5e375cc1fe49b8eb510dd1acec1fd6a581.

* fix: pack node_modules into asar

* fix: read copilot/ripgrep natives from node_modules.asar.unpacked

* fix: load node-context modules and native binaries from ASAR

- bootstrap-esm: resolve bare specifiers via package self-reference so
  Node applies the package's real `exports`/`main` and ESM conditions.
  The previous CommonJS `require.resolve()` picked the `require`
  condition and loaded the CJS entry of dual CJS/ESM packages (e.g.
  playwright-core), which did not expose their named ESM exports.

- amdX: in `_nodeJSLoadScript`, read module files with the ASAR-aware
  `require('fs')` instead of `import('fs')`, which the resolution hook
  maps to the ASAR-unaware `original-fs` and therefore cannot read
  files inside the archive (e.g. @vscode/iconv-lite-umd).

- agentHost commandAutoApprover: load the tree-sitter `.wasm` files
  from node_modules.asar.unpacked in built apps (node_modules in dev).

- agentHost copilotAgent: resolve the @github/copilot-<platform> CLI
  and the @microsoft/mxc-sdk sandbox binaries from
  node_modules.asar.unpacked in built apps, and unpack
  @microsoft/mxc-sdk/bin so those executables can be spawned.

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

* fix: resolve ASAR modules relative to the archive root

Two follow-up fixes for ASAR support:

- bootstrap-esm: resolve packages inside node_modules.asar with relative
  specifiers (require.resolve("./<pkg>/package.json") and "./<spec>")
  instead of bare specifiers. The archive directory is named
  node_modules.asar, so a bare-specifier resolution walks for a
  node_modules directory that does not exist and fails. This broke every
  native module imported from main.js in the packaged app
  (@vscode/spdlog, @vscode/sqlite3, native-keymap, @vscode/deviceid,
  @vscode/policy-watcher), preventing startup.

- create-universal-app: pass `singleArchFiles` so the universal merger
  allows files that are unique to a single arch inside the merged
  node_modules.asar (the @github/copilot-<arch> platform package and the
  arch-specific copilot/ripgrep binaries). These paths are ASAR-internal
  (top level, no node_modules prefix); without the allowlist the merge
  aborts with "Detected unique file ... not covered by allowList rule".

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

* fix: resolve sandbox runtime and Windows CJS lookups with ASAR

* fix: resolve ESM modules from the importer's own node_modules

* fix: unpack node-pty package.json

* fix: resolve node-pty binaries from unpacked asar in Copilot shim

* fix: resolve Copilot native binaries from node_modules.asar.unpacked

* fix: universal build for mxc

* fix: load tree-sitter wasm from node_modules on web

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-07 07:39:48 +00:00
RoboandCopilot 4b6f5e55bb chore: bump electron@42.5.0 (#321629)
* chore: bump electron@42.4.0

* chore: apply temp dir workaround for short paths

* chore: use 24.15.x for CI node

* chore: update nodejs build

* chore: bump electron@42.5.0

* fix: unblock playwright install on node 24.17

Node 24.16+ made Readable pause()/resume() a no-op on destroyed streams
which makes yauzl 2.x / extract-zip 2.x and older playwright extraction
hang forever.

- extensions/copilot: add "yauzl": "^3.3.1" override (was missed by #318682)
  so electron and @vscode/vsce no longer resolve the broken yauzl 2.10, fixing the
  hung `npm ci` in the Copilot and Extract chat-lib pipelines.
- extensions/copilot: bump electron ^39.8.5 -> ^42.5.0 so its install
  script uses the native @electron-internal/extract-zip instead of extract-zip.
- bump @playwright/test ^1.56.1 -> ^1.61.1 so `playwright install`
  uses the fixed extractor, unblocking the "Download Electron and
  Playwright" step in all electron test pipelines.

* chore: update build

* agentHost: fix macOS sandbox smoke sentinel parsing

On macOS CI, the AgentHost sandbox smoke test resolves the shell to
/bin/sh, which uses the sentinel-based completion path. In that path, the
parser could consume the echoed sentinel command text
(`<<<COPILOT_SENTINEL_..._EXIT_$?>>>`) before the real numeric marker
arrived, causing a false `Exit code: -1` failure even though the command
later completed successfully.

Harden the sentinel parser to ignore echoed/non-numeric sentinel text
and use the latest complete numeric marker instead. Also force the
macOS AgentHost sandbox smoke test to use /bin/sh and assert that in the
suite log so local runs exercise the same path as CI.

Adds a regression test for echoed sentinel command text.

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

* chore: update screenshot baseline after playwright bump

* chore: bump distro

* chore: fix typecheck

* chore: bump distro

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-29 13:53:48 +00:00
Anthony Kim 8a9cd3dd36 Bump Copilot CLI package to 1.0.65 (#322747)
* Bump Copilot CLI package to stable 1.0.64

* Try to bump to 1.0.65 instead

* Remove stale Copilot sdk/worker materialization for 1.0.65

* Update Debian amd64 deps after excluding Copilot native executable

* Remove stale RPM x64 libstdc++ deps after Copilot CLI 1.0.65 packaging

* Prune Copilot SEA executable before CI packaging

* Exclude Copilot SEA executable from packaging stream

* SDK should be 1.0.4
2026-06-25 12:03:54 -07:00
Don Jayamanne 40fb82c1f8 Add os-theme to .moduleignore as it's not used by the CLI (#321713)
* Add os-theme to .moduleignore as it's not used by the CLI

* Remove outdated libc6 dependency version from referenceGeneratedDepsByArch

* Remove outdated libc6 dependency version from referenceGeneratedDepsByArch
2026-06-16 21:26:20 -07:00
Christof Marti 770a11056f Include node-pty binaries 2026-06-11 16:39:32 +02:00
Don Jayamanne 847d569028 chore: update @github/copilot and related dependencies to version 1.0.61 (#320868)
* chore: update @github/copilot and @github/copilot-sdk to version 1.0.61 and 1.0.1 respectively

- Bump @github/copilot from 1.0.60 to 1.0.61 in package.json and package-lock.json
- Update @github/copilot-sdk from 1.0.0 to 1.0.1 in package.json and package-lock.json
- Modify postinstall script to copy tgrep files instead of sharp files
- Update tests to include tgrep binaries
- Change model in e2e tests from 'claude-opus-4.7' to 'gpt-5-mini'

* fix: add libm.so.6(GLIBC_2.27)(64bit) to referenceGeneratedDepsByArch
2026-06-11 20:46:55 +10:00
Rob LourensandCopilot 98abbd3140 Bump @github/copilot-sdk to 1.0.0-beta.8 (#318683)
* Bump @github/copilot-sdk to 1.0.0-beta.8 (Written by Copilot)

Also bumps @github/copilot CLI to 1.0.55-3 to satisfy the SDK's
`^1.0.55-1` peer requirement.

Key SDK breaking changes adapted in `src/vs/platform/agentHost/`:

- `CopilotClientOptions`: `useStdio`/`cliPath`/`autoStart` →
  `connection: RuntimeConnection.forStdio({ path })`; `remote` →
  `enableRemoteSessions`.
- `SessionContext.cwd` → `workingDirectory`.
- `CopilotSession.getMessages()` → `getEvents()`,
  `destroy()` → `disconnect()`.
- `PermissionRequest` is now a discriminated union; the host-side
  `ITypedPermissionRequest` is no longer `extends PermissionRequest` but
  a standalone bag-of-optionals interface so existing call sites continue
  to work. Extended host signal with the new `extension-management` /
  `extension-permission-access` kinds.
- `BaseHookInput`: `timestamp: number` → `Date`, `cwd` →
  `workingDirectory`, new required `sessionId`.
- `Tool.handler` is now optional — tests use `tool.handler!(...)`.
- `ToolBinaryResult.type` narrowed to literal `'image' | 'resource'`.
- `AssistantUsageData.copilotUsage` and `ShutdownData.totalPremiumRequests`
  removed; corresponding accumulation/trace code dropped.

Validation: 0 TS errors, layers check passes, all 1357 agent-host unit
tests pass. Real-SDK integration tests: 9/11 passing. Two failures
documented in the session plan:

- plan-mode session-state test times out (likely needs migration of the
  `_enablePlanModeOnClient` shim to the new public
  `SessionConfig.onExitPlanModeRequest`).
- subagent-routing test: `read_agent` now appears on the parent session
  (likely a CLI 1.0.55 behavior change).

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

* Fix broken @github/copilot-win32-x64 entry in remote/package-lock.json

The committed remote/package-lock.json had a malformed stub entry:

  "node_modules/@github/copilot/node_modules/@github/copilot-win32-x64": {
    "optional": true
  }

with no version field, which caused npm install to crash with:

  TypeError: Invalid Version:
      at Node.canDedupe (.../@npmcli/arborist/lib/node.js:1137:32)
      at PlaceDep.pruneDedupable (.../@npmcli/arborist/lib/place-dep.js:426:14)

Replaced with a proper top-level node_modules entry for
@github/copilot-win32-x64@1.0.55-3 (matches the resolution used for
the other platform optionals on the @github/copilot dep). This is what
npm naturally produces when regenerating the lockfile from scratch.

Fixes the failing 'Install dependencies' step on the macOS / Remote
CI job.

(Written by Copilot)

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

* Bump deb amd64 libc6 floor to 2.15 for new @github/copilot runtime.node

The new @github/copilot 1.0.55-3 ships a Linux x64 runtime.node that
references GLIBC_2.15 (was GLIBC_2.14 in 1.0.49). dpkg-shlibdeps now
emits libc6 (>= 2.15) for amd64; update the reference list so the deb
prepare task no longer fails the build.

Only amd64 is affected: arm64 runtime.node GLIBC version set is
unchanged, and @github/copilot does not ship an armhf binary. The
overall libc6 floor for the package is still 2.28, so distro support
is unchanged.

(Written by Copilot)

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-28 15:50:15 -07:00
Robo 8748be1f1a feat: update to Electron v42 (#316661)
* feat: update to Electron v42

* chore: drop support for arm 32-bit server

* chore: update types/node to v24.x

* chore: temporarily lock the target version for build/

* chore: update v8-source-location.patch

* chore: fix clippy

* chore: cleanup armhf server ci config

* fix: broken lock file

* fix: c++ version requirement for sysroot builds

* fix: msvc compilation of native modules

* fix: handle rejections for fire-and-forget loadurl

* fix: windows build

* ci: fix teardown of daemon process on windows

```
2026-05-15T20:55:09.7717127Z Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 76
```

* chore: update deb and rpm dependencies

* chore: update version info

* spec: improve reliablity of offscreencanvas tests

* spec: retry EPERM failures on teardown

* chore: update x86_64 rpm deps

* ci: exclude server binskim for armhf

* temp: bump distro

* test: ignore deprecation warnings treated as errors

* chore: update lockfile

* fix: externalize electron from auth extension bundles

 Error: Cannot find module 'c:\Users\cloudtest\AppData\Local\Temp\vscode-sanityQvCaze\vscode-server-win32-x64-web\extensions\github-authentication\dist\install.js'
     at Module._resolveFilename (node:internal/modules/cjs/loader:1476:15)
     at wrapResolveFilename (node:internal/modules/cjs/loader:1049:27)
     at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1073:10)
     at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1094:12)
     at Module._load (node:internal/modules/cjs/loader:1262:25)
     at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
     at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
     at node:internal/main/run_main_module:33:47 {
   code: 'MODULE_NOT_FOUND',
   requireStack: []
 }

 Node.js v24.15.0

* test: make wsl sanity tests reliable

* chore: bump electron@42.1.0

* temp: bump distro

* chore: bump electron@42.2.0

* chore: bump distro

* chore: update debian dependencies

* Revert "test: make wsl sanity tests reliable"

This reverts commit b3f2b63e83.

* test: do not fail for deprecation warnings

* chore: patch node24 server binary for wsl1

* chore: address review feedback

* chore: revert global navigation error handler in browserview

* chore: bump distro
2026-05-27 14:57:41 +02:00
Robo 4927766313 chore: add srt sandbox dependencies to deb and rpm (#297819)
* chore: add srt sandbox dependencies to deb and rpm

* fix: move the depedency to recommends
2026-03-30 18:29:20 +09:00
Dirk Baeumer 27b86b5ce7 Update dependency list 2026-02-16 08:29:10 +01:00
Raymond Zhao b5f3937f12 chore: onboard onto new sysroot (#294988) 2026-02-12 12:53:27 -08:00
Robo 67655b30f5 chore: bump electron@39.3.0 (#289985)
* chore: bump electron@39.3.0

* chore: update build

* chore: bump distro
2026-01-26 21:02:29 +00:00
Raymond Zhao 1251d8b737 chore: bump native-watchdog (#287848)
* chore: bump native-watchdog

* Rename more instances

* chore: update Debian x64 dep list
2026-01-15 15:34:13 +09:00
Raymond Zhao 88eb80e805 chore: bump native node modules (#287597)
* chore: bump native node modules

* chore: update Debian deps list
2026-01-13 12:42:10 -08:00
Robo 4c616ec9d1 chore: bump electron@39.2.7 (#283786)
* chore: bump electron@39.2.7

* chore: bump distro

* chore: update electron checksums
2025-12-16 13:57:53 +01:00
Robo 51e7119ccb chore: update debian dependencies for armhf (#279286) 2025-11-25 06:58:37 +00:00
Robo f35b832d60 chore: bump electron@39.2.3 (#278722)
* chore: bump electron@39.2.3

* chore: bump distro
2025-11-24 06:30:18 +00:00
Matt BiernerandJoão Moreno 2648263d3e Run our build scripts directly as typescript (#277567)
* Run our build scripts directly as typescript #277567

Follow up on #276864
For #277526

* Remove a few more ts-node references

* Fix linux and script reference

* Remove `_build-script` ref

* Fix script missing closing quote

* use type only import

* Fix export

* Make sure to run copy-policy-dto

* Make sure we run the copy-policy-dto script

* Enable `verbatimModuleSyntax`

* Pipelines fixes

* Try adding explicit ext to path

* Fix bad edit

* Revert extra `--`

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-11-21 14:56:00 +01:00
Robo 7ba6cc6685 chore: update electron@39.2.0 (#277706)
* chore: update electron@39.2.0

* chore: bump distro
2025-11-17 05:42:43 +01:00
Robo f2531f1c56 chore: update to Electron 39 (#275786)
* chore: bump electron@39.0.0

* chore: update build

* chore: bump distro

* chore: update debian deps

* chore: exclude dlls from symbol scan

* chore: test with patch v8 headers

* chore: bump rpm dependencies

* chore: cleanup preinstall.js

* chore: bump electron@39.1.1

* chore: remove unsupported FontationsLinuxSystemFonts feature flag

* chore: bump electron@39.1.2

* chore: update nodejs build

* temp: update distro

* ci: fix location of preinstall invocation

* chore: bump distro
2025-11-13 08:25:14 +00:00
Matt Bierner fe8fc75455 Pick up latest TS native preview
Fixes the emit for copyright headers
2025-10-28 09:18:27 -07:00
João Moreno 5e4cf386d9 Revert "feat: reenable asar support" (#272935)
Revert "feat: reenable asar support (#272552)"

This reverts commit ff891375f4.
2025-10-23 15:50:48 +00:00
Robo ff891375f4 feat: reenable asar support (#272552) 2025-10-23 07:37:46 +02:00
Robo fd10f9c207 chore: reduce any usage in build/ (#270109) 2025-10-06 22:56:36 +00:00
Matt Bierner 1174f9b951 Compile build scripts too 2025-10-02 23:46:45 -07:00
Matt Bierner 360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Robo 48a6c949aa chore: bump electron@37.5.1 (#268885)
* chore: bump electron@37.5.1

* chore: bump distro
2025-09-29 16:57:17 +00:00
Robo 9d7c34c96a chore: update electron@37.3.1 (#263552)
* chore: update electron@37.3.1 (#262877)

* chore: update electron@37.3.1

* chore: remove workaround for npm scripts argument parsing

Refs https://github.com/nodejs/node/commit/f99aa748c09091ed6ba5bea0c52f23234cafddb1

* chore: update node.js@22.18.0

* temp: bump distro

* chore: bump distro
2025-08-27 13:08:07 +00:00