Skip to content

Alignment with 1.143.1 version of VS Code - #845

Merged
RomanNikitenko merged 7681 commits into
che-incubator:mainfrom
RomanNikitenko:alignment-with-upstream-1-143
Nov 16, 2026
Merged

RomanNikitenko merged 7681 commits into
che-incubator:mainfrom
RomanNikitenko:alignment-with-upstream-1-143

Conversation

@RomanNikitenko

@RomanNikitenko RomanNikitenko commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

TODO

What does this PR do?

What issues does this PR fix?

https://redhat.atlassian.net/browse/CRW-13286

Devspaces-auto-validation tests:

Images for testing:

Results:
image

How to test this PR?

Test starting a workspace and basic functionality for the following images

Image Status Link
udi
quay.io/devfile/universal-developer-image:ubi8-latest ✅ click here
quay.io/devfile/universal-developer-image:ubi9-latest click here
quay.io/devfile/universal-developer-image:ubi10-latest click here
ubi-8
registry.access.redhat.com/ubi8-minimal:latest ✅ click here
registry.access.redhat.com/ubi8-minimal:8.10 click here
registry.access.redhat.com/ubi8-minimal:8.9 click here
ubi-9
registry.access.redhat.com/ubi9-minimal:latest ✅ click here
registry.access.redhat.com/ubi9-minimal:9.7 click here
registry.access.redhat.com/ubi9-minimal:9.6 click here
ubi-10
registry.access.redhat.com/ubi10-minimal:latest ✅ click here
registry.access.redhat.com/ubi10-minimal:10.1 click here
registry.access.redhat.com/ubi10-minimal:10.0 click here

Does this PR contain changes that override default upstream Code-OSS behavior?

  • the PR contains changes in the code folder (you can skip it if your changes are placed in a che extension )
  • the corresponding items were added to the CHANGELOG.md file
  • rules for automatic git rebase were added to the .rebase folder

🤖 Generated with Claude Code

federicobrancasi and others added 30 commits October 16, 2026 18:39
Fixes #342083

Collapsing a section in the Agents window sessions list now updates its
chevron even after its header has been shown as a sticky header. Before,
once Pinned (or a workspace section, or a custom group) had stuck to the
top while scrolling, collapsing it left the chevron pointing down.

- `SessionSectionRenderer` and `SessionGroupRenderer` remembered one
rendered template per element. Sticky scroll renders a second copy of
the same header with the same renderer, so that copy replaced the entry,
and disposing it deleted the entry. After that, collapse changes had no
template to update.
- Both renderers now map each rendered template to its element, and
`updateCollapseState` and `setDropTarget` update every rendered copy of
the header, including the sticky one.

### Before


https://github.com/user-attachments/assets/dc4f929e-cf53-4ae5-a736-a958a134dfc4

### After


https://github.com/user-attachments/assets/5a05fe98-fac9-462c-83ba-63bf678b5a80

### How to test

1. In the Agents window, pin a few sessions, expand **Pinned**, and make
the window short enough for the sessions list to scroll.
2. Scroll down until the Pinned header sticks to the top, then scroll
back up.
3. Click **Pinned** to collapse it and keep the pointer on it. The
chevron should point right, and point down again when you expand it.

### Validation

- `npm run typecheck-client`: passed
- `npm run eslint --
src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts`:
passed
- `./scripts/test.sh --run
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts`: 239
passing, including 2 new regression tests (a section and a custom group)
that fail without the fix
- `./scripts/test.sh --runGlob
"**/sessions/contrib/sessions/test/browser/*.test.js"`: 770 passing
- UI scenario with `test/scenario` on the Code - OSS dev build, using
the mock agent host: fails at the collapse step without the fix, and all
8 steps pass with it (videos above)
<!-- Thank you for submitting a Pull Request. Please:
* Read our Pull Request guidelines:

https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests
* Associate an issue with the Pull Request.
* Ensure that the code is up-to-date with the `main` branch.
* Include a description of the proposed changes and how to test them.
-->

Make session dragging more discoverable and let sub-sessions be arranged
independently in the Agents window without losing their parent
relationship.

### Changes

- Use grab cursors and editor-style child titles with a dot-separated
parent description when displayed separately; omit the description when
sharing the parent's tab strip.
- Keep standalone child panes, their drafts, and their focus usable
after the parent pane closes, including child-only layout restoration.
- Open the main chat when dragging a parent session into the grid. Allow
children to reattach through the parent's tab strip in multiple-tab
mode, but reject parent merges in single-tab mode.
- Preserve grid geometry and live widgets across placement, closing, and
reload. Target the represented child pane for positional focus, sidebar
placement, and menu actions.
- Preserve composer chat-reference attachment drops and the drag-free
buffer beside resize sashes. Add lifecycle, DOM, drag-and-drop, command,
accessibility, and provider regressions.

### Validation

Rebased cleanly onto `main` at `1b3cae0f722` and validated with Node
24.18.0.

| Command | Result |
| --- | --- |
| `npm run build-fast -- --client-only` | Passed |
| `npm run typecheck-client` | Passed |
| `npm run valid-layers-check` | Passed |
| `git diff --name-only --diff-filter=ACM -z origin/main...HEAD --
'*.ts' \| xargs -0 npm run eslint --` | Passed, 37 files |
| `git diff --name-only --diff-filter=ACM -z origin/main...HEAD --
'*.css' \| xargs -0 npm run stylelint --` | Passed, 1 file |
| `git diff --check` | Passed |

Focused unit tests: **815 passed, 2 existing pending**.

```sh
./scripts/test.sh \
  --run src/vs/sessions/services/sessions/test/browser/visibleSessions.test.ts \
  --run src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts \
  --run src/vs/sessions/test/browser/sessionGridLayout.test.ts \
  --run src/vs/sessions/test/browser/sessionsPart.test.ts \
  --run src/vs/sessions/test/browser/sessionView.test.ts \
  --run src/vs/sessions/test/browser/chatGroupsView.test.ts \
  --run src/vs/sessions/test/browser/chatCompositeBar.test.ts \
  --run src/vs/sessions/test/browser/sessionHeader.test.ts \
  --run src/vs/sessions/contrib/chat/test/browser/sessionDragAndDrop.test.ts \
  --run src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts \
  --run src/vs/sessions/contrib/sessions/test/browser/sessionsActions.test.ts \
  --run src/vs/sessions/contrib/changes/test/browser/sessionSyncChanges.test.ts \
  --run src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostSessionChangesets.test.ts \
  --reporter dot
```

Native OSS checks before the rebase also passed for parent/child
dragging, retained child DOM and draft after parent closure, child-only
reload, positional keyboard focus, and sidebar placement beside a child
with its parent hidden.

Not run: full smoke/integration suites, live provider requests, or live
Sync Changes operations.

### How to test

1. Open a parent session with two sub-sessions and another session. Try
both single- and multiple-tab modes.
2. Drag a sub-session header or tab into a separate grid pane. Check its
parent description, resize adjacent sashes, and confirm a parent-session
drag opens the main chat rather than moving its child.
3. Leave a draft in a child, close its parent pane, and confirm the
child and draft remain. Drag another child from the sidebar while the
parent is hidden. Close other root panes and reload to check child-only
restoration.
4. In multiple-tab mode, drop a detached child onto its parent's tab
strip to reattach without splitting. In single-tab mode, confirm the
parent merge is rejected.
5. Check numbered pane-focus shortcuts and Open in Grid beside an active
standalone child. Drop a chat reference onto a composer and confirm it
adds context instead of moving a pane.
* Modern UI: balance Connected tab geometry

Share the active Connected tab's top stroke with the editor frame and derive terminal action spacing from the painted cap. Keep fit-sized tabs stable across density, wrapping, and persistent action states.

Fixes #341702

Co-authored-by: Copilot <[email protected]>

* Modern UI: preserve Connected tab accents

Keep custom and modified top accents inside the visible tab viewport, and align persistent upper-row action reservations with cached fit widths.

Fixes #341702

Co-authored-by: Copilot <[email protected]>

* Modern UI: preserve HC Connected outlines

Restrict inset top-accent paint to explicit customizations and modified tabs while leaving high-contrast structural selection borders on the cap.

Fixes #341702

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Align API contracts with valid response shapes

Fixes #342003

Co-authored-by: Copilot <[email protected]>
Invalidate cached file-query state when showing links and only capture an editor source group for picker runs that support links. Add regression coverage for returning to file ranges and initializing file-only, delegated, custom-accept, and quick-navigation pickers.

Co-authored-by: Copilot <[email protected]>
…race (#342054)

Follow-up to #341995, which fixed the older-build check test by waiting for
the drain statement's own trace as well as its completion. The 'burst of
ten creates or ten deletes' test in the same suite still assumed traces of
finished statements arrive before the drain completes. @vscode/sqlite3
delivers trace events through a separate async callback, so its statement
count could miss late traces in the same way.

Use the same trace-fenced drain as the older-build test.

Co-authored-by: Copilot <[email protected]>
…possible re-projection (#342077)

Block 4a (#341904) made every legacy chat catalog convert, including older
provider-scheme sessions whose provider cannot vouch for them (registered
but with an unreadable catalog, or no longer knowing the session). Their
aggregate never becomes verified, so every conversion attempt ended
`notReady` and fed a loop:

- `_migrateChatCatalog` opened the session database (`runMigrationExclusive`)
  and ran legacy reconciliation before the readiness check, then marked the
  payload dirty, which superseded in-flight re-projections and woke parked
  sessions so the reconciliation re-opened them on the next pass.
- The conversion batch re-attempted every legacy session each cursor cycle,
  and `_convertReprojected` treated parked or unverified sessions as ready
  because `_listDirtySessions` omits parked rows, so the retry limit of five
  never bounded them. Each attempt also scheduled a follow-up pass.

Production (one Insiders profile, ~717 sessions, ~110 affected): ~920
migration operations in two ~5 minute windows, passes every 20-30 s.

Conversion now decides readiness from central state first: an unverified or
dirty aggregate returns `notReady` without opening session.db, writing or
waking anything (its re-projection is already owed). A waiting session is
skipped by the conversion batches and owes no follow-up pass; it converts
right after a pass re-projects it (`succeeded` or an already-current
`skipped`) or once its receipt is verified and clean. The check under the
session lock stays authoritative.

With 110 unvouchable sessions over twelve 30 s passes: 150 migration
operations, 350 session database opens and 100 dirty marks per pass before;
50/50/10 operations in the first three passes (re-projections parking each
session once, no conversion opens or writes) and nothing after.

Co-authored-by: Copilot <[email protected]>
The Linux 1ES pool is the PR CI bottleneck. Add a shared Detect Changes job that lists the pull request's changed files, and use it to skip checks the changes cannot affect:

- The CLI and Copilot Shim Rust checks run only when their crates, the files their builds read, or their workflows change. They also move to GitHub-hosted ubuntu-24.04 runners. They skip inside the reusable workflow so the required Linux / CLI check still reports.
- The Copilot extension checks run only when extensions/copilot, the API typings, the root ESLint setup, or the root dependencies change. They test against a downloaded Insiders build, and the Electron jobs still run the Copilot tests against the PR's own build.
- Jobs that never read Git LFS content no longer download the 271 MB Copilot simulation cache.

Every check still runs when the changed files cannot be listed.

Co-authored-by: Copilot <[email protected]>
Explain why an organization default overrides a saved model preference using the existing managed-setting UI. Preserve per-conversation choices and saved preferences.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Reviewed-head: 6fc2924
Pull-request: microsoft/vscode#342122
Approved-by: rwoll via PR Sign-Off
Requested-by: Copilot
* test(agents): cover remote session replacement and reopen failures

Add regressions for shared content loads across provider replacement and explicit reopening of an active session. These fail on the current implementation for #341828.

* test(agents): cover mounted retries and drafts during replacement

Exercise explicit reopen routing through retained and pinned chat groups. Cover draft edits and deletion across repeated provider replacement, and prevent retired content from publishing session options.

* fix(agents): preserve remote chat loads across provider replacement

Keep a shared content request alive when its provider is replaced, while preserving terminal caller and session cancellation. Route explicit reopens to the selected chat Retry action and retain the current draft through repeated loads.

Fixes #341828.

* test(agents): cover cached load and navigation retry races

Reproduce provider retirement after content is cached but before the shared request returns. Verify obsolete navigation stops waiting on a retained chat retry while provider preparation keeps its existing lifetime.

* test(chat): retain cached content for a joining caller

Cover a caller acquiring newly cached content before the original caller cancels. The shared request must retain that content while another caller still needs it.

* test(chat): cover acquisition during cancelled request cleanup

Exercise cancel-before-reacquire, a cancelled newcomer, and stalled untitled input metadata so shared-request cleanup cannot expose stale cache entries or block future callers.

* fix(agents): respect cancellation through chat recovery

Validate provider attempts before returning cached content. Keep cancelled resolutions registered until cleanup settles so another caller cannot acquire content being disposed, and make untitled input-state waits cancellable.

Release obsolete navigation waits without cancelling the retained chat retry or changing provider preparation.
… session.db (#342096)

The fixture's seeded summary change was flushed 100 ms later, in the middle
of whichever test was running. On a slow agent its background catalog write
replays the removal's sync, and session.db briefly keeps the caller's
serialization of the artifacts until the session state store mirrors its
own. Tests that read session.db right away (the idempotent removal test in
CI, and the first removal test) then see a different key order.

Wait for the seeded summary change and its background write in the fixture,
and read store-owned keys from session.db only once the store has mirrored
them. The dedicated summary-flush test still forces that interleaving.

Follow-up to #341001

Co-authored-by: Copilot <[email protected]>
Reuse the rendered model catalog for managed-default presentation and hover text. Prefer the Agent Host advertised default over local policy, matching model selection. Cover lookup counts and host precedence with regression tests.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Reviewed-head: b63b07c
Pull-request: microsoft/vscode#342122
Approved-by: rwoll via PR Sign-Off
Requested-by: Copilot
…2097)

* sessions: read session list hover change counts from the catalog

Building the hover for a chat row read the chat's changes and changesets.
For an agent host chat that is not open this subscribed the chat on the
host and released it at once, before the snapshot arrived, so the hover
showed no counts while every mouseover cost a full subscribe. Moving the
pointer across 8 peer chat rows caused 122 subscribes.

The hover now reads the catalog changesSummary whenever the provider
supplies one; providers without it keep reading their in-memory changes.

Co-authored-by: Copilot <[email protected]>

* sessions: keep the previous hover counts for providers without catalog summaries

When neither the session nor its main chat has a catalog summary, read the
main chat's own changes as before instead of its default changeset. For an
archived Copilot Chat session the default changeset is All Changes, whose
changes resolve a diff when read, so the hover would have started that
work on every mouseover.

Co-authored-by: Copilot <[email protected]>

* sessions: match the open main chat's row counts in the session hover

The row of a multi-folder session shows its open main chat's Branch
Changes and observes them, so the hover can read them without loading
anything. Show those in the main chat section while that chat is open,
and its catalog counts otherwise.

Co-authored-by: Copilot <[email protected]>

* Sessions list: let the hover read Branch Changes only when the row observes them

Compact rows, comparison attempts and compact quick chats return before reading counts, so the open main chat's Branch Changes are unobserved there and reading them from the hover loaded the chat again. The details row now records whether it observes them and the hover uses that.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
* agentHost: update bundled Codex SDK to 0.162.0

* agentHost: adapt tests to Codex SDK 0.162.0

Add the required rootTurnId to typed Turn fixtures. Recognize the base prompt in developer-role Responses messages so strict replay keeps asserting instruction presence with Codex 0.162.0.

* agentHost: refresh Codex model selection recordings

Re-record the three fixtures that previously omitted the system-prompt marker. Codex 0.162.0 supplies the prompt through developer-role input messages. Verify the regenerated captures with strict replay.

* agentHost: stabilize legacy metadata concurrency test

Wait for the metadata reads to start before asserting their concurrency. The fixed timer-tick budget could expire during SDK startup on CI and report zero active reads. Preserve the four-read concurrency assertions.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Giuseppe Cianci <[email protected]>
Fixes microsoft/vscode#342119

## Summary

Honor explicit open-to-side requests for `agent-host-session://` links
in regular editor windows.

The built-in session-link opener previously discarded opener options and
always targeted the Chat view. This made Alt+click / Alt+Enter ignore
side placement even when the link source passed `openToSide: true`.

- Forward opener options into the agent-session handler.
- Open side requests in a chat editor using `SIDE_GROUP`.
- Disable `revealIfOpened` for explicit side requests, so a session
already visible elsewhere is opened/moved to the requested side rather
than merely revealed at its previous location.
- Forward editor options such as pinning and preserving focus.
- Preserve normal opening/reveal behavior when side opening is not
requested, including delegated request-origin links.
- Add six regression cases covering session and peer-chat links with
absent, false, and true side options.

## Validation

- 50 tests passed across the agent-session link opener and Quick Open
link test files.
- Client type-check, focused ESLint, incremental client build, and
commit hygiene passed.
- Tested the combination with microsoft/vscode#342081 in a live Code OSS
instance via dbgjs: Ctrl+P with a scoped local
`agent-host-session://ahp-session/...` URI followed by Alt+Enter opened
the actual session in a second editor group while retaining `Untitled-1`
in the original group. Also exercised Alt+click on the Quick Pick result
and verified the two-group result with no notifications.

This PR contains **only the session-link handler and its tests**. The
Quick Open implementation remains in #342081; both fixes are present on
a separate local integration branch for manual testing.

Related: #342050, #340724, #342051.
Fixes #342051.

## Summary

- Recognize explicit hierarchical links in Ctrl+P before file
range/symbol parsing, while preserving file-only and delegated picker
behavior.
- Open through shared link handlers, including contributed handlers,
preserving queries and fragments.
- Offer Alt+Enter and a side-open button, anchored to the originating
editor group.
- Add discoverability and feedback for invalid, unhandled, or failed
links.

## Validation

- Client build, client type-check, targeted lint, and commit hygiene
passed.
- 83 targeted tests passed across Quick Open links, Quick Access, range
parsing, and opener services, including a real contributed-opener
integration test.
- Live Code OSS verification through dbgjs: paste a file URI with `#L3`
into Ctrl+P, then Alt+Enter. The target opens in a second editor group,
the original README stays visible, and the status bar shows line 3.

## Live validation follow-up

Fixed the result-row layout: the link codicon now renders inline instead
of applying icon-font classes to the entire row. Also fixed the
integrated browser's localhost handler to honor explicit side-opening
intent. Both regressions have tests.

With `workbench.browser.openLocalhostLinks: true`, tested in **live Code
OSS through dbgjs**:

1. Paste `https://127.0.0.1:9448/review?pr=342081#changes` into Ctrl+P,
then Alt+Enter.
2. The integrated browser opens to the right, leaving the README
visible.
3. Attach dbgjs to the embedded page and verify its actual URL (query
and fragment included), title, and served content.
4. Repeat with another HTTPS localhost URL using the side-open button.
The existing side group is reused and the source document stays visible.

The local HTTPS fixture uses a task-local self-signed certificate; its
prompt was accepted specifically for this demo, without disabling
certificate checks globally. Screenshots and the refreshed animated
screen recording were inspected.

The updated client build, type-check, lint, hygiene, and all **83
targeted tests** pass. Code OSS and its local HTTPS demo server remain
open. The refreshed recording is ready; the author will attach it
manually.
…42099)

Agent Host changes for lszomoru/agents/fix-session-diff-statistics-regression
* agentHost: map opaque host URIs without error

A remote agent host can send a valid opaque URI, for example the
`mcp-top-level:<provider>:<session>:<name>` URI of a top-level MCP server.
The client mapper put the path of this URI below an authority. The path did
not start with "/", thus `URI.from` threw an error. The error occurred in the
session snapshot, and the client did not open the session.

- Add "/" to the start of the wrapped path when the original path does not
  start with "/". Keep the original path in the existing `_ah` metadata, thus
  `fromAgentHostUri` restores the original URI exactly.
- Add a round-trip test for an opaque URI.
- Add a `CustomizationIndex` test with a remote mapper and an opaque URI.

(Commit message generated by Copilot)

Co-authored-by: Copilot <[email protected]>

* sessions: use a label failure in the reconnect isolation test

The test used an opaque artifact URI to make a session fail. The agent host
URI mapper now maps opaque URIs, thus that artifact does not fail.

- Make the session label fail for the old session, as the neighboring
  isolation test does. The test continues to make sure that a malformed
  session does not prevent new sessions after reconnect.

(Commit message generated by Copilot)

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
* ci: report skipped Rust checks under their required names

When GitHub skips a job, it does not evaluate expressions in the job's name. The Rust jobs skipped inside the shared reusable workflow, whose job name is ${{ inputs.job_name }}, so they reported as 'Linux / inputs.job_name'. The required Linux / CLI check then never reported, which blocks every pull request that does not change the CLI.

Run both Rust checks as jobs with fixed names in pr.yml, and move their shared steps from the reusable workflow into a composite action.

Also run the Copilot checks when build/npm/dirs.ts or build/azure-pipelines/win32/exec.ps1 change. The node_modules cache setup in those jobs uses both files (review feedback on #342091).

Co-authored-by: Copilot <[email protected]>

* ci: use a fixed name for the shared Rust job instead of a composite action

Revert the composite action and fix the skipped check name with a one-line change: the reusable workflow's job is named CLI instead of ${{ inputs.job_name }}. The required Linux / CLI check is unchanged; the Copilot Shim check (not required) reports as Linux Copilot Shim / CLI.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Pin microsoft/vscode-distro#1468 so product builds allow Copilot Chat to register its BYOK voice provider.

Co-authored-by: Copilot <[email protected]>
…#342126)

Exclude the runtime's built-in `semantic_code_search` tool from Copilot SDK
sessions in favor of the Agent Host's own `semantic_search` client tool.
The runtime tool is remote-only (no local chunking/embedding or external
ingest) and the CLI is still A/B testing its prompt variations and
deferred-loading strategies; revisit in a future iteration.

Co-authored-by: Copilot <[email protected]>
Since the policies moved to their own [Files] entry in January, setup has
installed only the top-level .admx file. The .adml files in the language
subfolders (en-us, de-de, ...) were skipped because the entry didn't recurse,
so the installed templates can't be loaded in the Group Policy editor. The ZIP
archive was not affected.

Co-authored-by: Copilot <[email protected]>
* Keep contributed tool sets whose members register late

A contributed tool set whose members could not be resolved at contribution
time was dropped permanently, while partially resolved sets picked up late
members. Copilot's read, web, vscode, and execute sets could therefore lose
read_file and other tools when their members were not yet resolvable at
startup.

Co-authored-by: Copilot <[email protected]>

* Handle late and recursive tool set members

Retry pending tool set members when tool sets change, since tool set
registration does not fire onDidChangeTools, and reject tool sets that would
create an indirect nesting cycle.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
…42098)

* Agent Host changes for agents/review-upstream-epics-for-prs

* agentHost: tighten checksumless downloads and incomplete catalog searches

A file without a published checksum now requires the response's strong ETag to equal the resolved one, and a placed copy that can't be reused is removed before downloading again so a retry doesn't need room for two copies. A public search that still has pages after the page limit fails the refresh instead of selecting versions from partial results.

Co-authored-by: Copilot <[email protected]>

* chat: acknowledge the on-device ready offer once the user takes it

Selecting the on-device model in the picker, selecting Auto once Auto may use it, or making a second install active now acknowledges its ready offer, and the notice stays hidden in an input already on that model.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
* agentHost: inject Copilot home URIs (Written by Copilot)

Resolve the Copilot home once through an injectable service in the agent host and workbench. Keep URI composition in consumers and convert to filesystem paths only at native and SDK boundaries.

Give unit fixtures isolated Copilot homes so inherited COPILOT_HOME does not override mocked user homes. Preserve production environment overrides and add poisoned-environment and URI-scheme regression coverage.

Co-authored-by: Copilot <[email protected]>

* test: normalize Copilot home expectation (Written by Copilot)

Compare the extension's inherited home against the URI filesystem path so Windows drive-letter normalization matches the injected home service.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
* chat: add remote connection method dropdown (Written by Copilot)

Replace the backend setting with an application-local stored preference and migrate existing local user choices. Add descriptive method selection outside Stable and keep remote controls keyboard accessible.

Co-authored-by: Copilot <[email protected]>

* chat: keep remote method setting and preview UI (Written by Copilot)

Write method selections directly to the preview setting, preserve data-handling disclosures, and remove the transient sharing confirmation label.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Use the editor remote connection authority for Agent Host resource links and content snapshots, and map pending edit resources through the connection's URI mapper.

Fixes #342112

Co-authored-by: Copilot <[email protected]>
RomanNikitenko and others added 3 commits November 11, 2026 07:16
Since the 1.143 rebase the terminal initial hint advertises the `copilot`
command ("Type copilot to use Copilot CLI.") whenever AI features are not
hidden, but the Copilot CLI is not preinstalled in workspace containers,
so out of the box the advertised command does not exist.

Flip the default of terminal.integrated.initialHint to false via the
workbench construction-option configurationDefaults, the same mechanism
already used for workbench.colorTheme, the Che status bar colors and
workbench.experimental.modernUI (1cc3307); mirror the change in
workbench-config.json, which is injected at esbuild bundle time. The
setting stays registered and user-tunable: an explicit value in user,
machine or workspace settings still overrides the default.

The same setting also gates the Ctrl+Space suggestions hint shown when
AI features are hidden; that hint disappears with it — accepted.

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
Upstream 1.143 (microsoft/vscode#341667) replaced the runtime script
shims that the Copilot extension generated with a native Rust shim that
product builds install into bin/copilot-shim/ next to node, and the
extension appends that directory to the end of the terminal PATH.
che-code only runs the gulp packaging task, which never produced the
binary, so typing `copilot` in a workspace terminal printed "command
not found" while the terminal initial hint advertised the command.

Build the shim from the in-tree sources (code/copilot_shim/) inside
each platform builder stage with the distro Rust toolchain (rust/cargo
via apk on Alpine, rust-toolset via yum on UBI8/UBI9) and install it at
<server-tree>/bin/copilot-shim/copilot — the only path the extension
checks on Linux. cargo build --release --locked keeps the build pinned
to the untouched in-tree Cargo.lock, and the toolchain stays in the
builder stages: the FROM scratch content stages only gain the ~700 KB
binary. Distro toolchain, inline RUN step and --locked also keep this
directly reusable by the downstream hermetic (Konflux/Hermeto) build.

The shim stays dynamically linked on all three platforms. On UBI it
needs glibc + libgcc_s.so.1, which the bundled node needs anyway (and
which downstream FIPS check-payload requires); on Alpine it needs musl
+ libgcc_s.so.1 — a subset of the dependencies of the musl node itself
(libstdc++/libgcc_s/musl), so no RUSTFLAGS crt-static override is
needed.

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
The Copilot CLI shim build installs rust-toolset, but the ubi-8-appstream
repo currently references the rust-toolset module in its module metadata
while shipping none of its RPMs (broken x86_64 publication, 2026-11-11),
so "yum install rust-toolset" fails with "No match for argument" and only
the x86_64 CI job breaks (the aarch64 tree still has the RPMs).

Install the exact module RPM set directly from cdn-ubi.redhat.com instead:
rust/cargo 1.92.0 + llvm-libs 21.1.8, the newest versions actually
published and the same ones the module resolves to on aarch64. The files
are verified present for x86_64, aarch64, ppc64le and s390x, and the full
dependency closure resolves against the current repo state. This mirrors
the existing vault.centos.org RPM pins in the same RUN step.

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

RomanNikitenko and others added 3 commits November 11, 2026 10:57
The 1.143 rebase regenerated the lockfile from upstream VS Code, whose
lockfile is generated inside the npm workspace, so 77 peer dependencies
are recorded without resolved URLs. devspaces-code installs each
directory standalone — cachi2/hermeto cannot prefetch packages that
lack resolved URLs, causing ENOTFOUND in the hermetic build. Restore
the explicit registry URLs from the previously fixed lock state (same
name@version for all 77 entries); every URL verified against the npm
registry dist.tarball.

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
Commit 7694778 (dependency audit) rewrote rebase.sh and dropped its
executable mode (100755 -> 100644). Both rebase workflows
(rebase-insiders.yml, rebase-release-branch.yml) invoke ./rebase.sh
directly, so the next automated rebase would fail with
"Permission denied".

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
Commit 7694778 rewrote rebase.sh via a temp-file + mv pattern and
silently dropped its executable bit; the fix landed separately
(da5b5cc). Neither diff review nor CI can catch a mode-only change,
and the rebase workflows call ./rebase.sh directly.

Record the rule in one place and reference it:

- AGENTS.md (Shell Portability): the full rule right under the temp+mv
  recommendation that caused it — mechanism, chmod +x remedy,
  verification commands (git diff --summary / git ls-files -s)
- the five skills that edit or validate rebase.sh now carry 1-2-line
  references with the verify command (house style: command inline,
  details referenced)

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
@RomanNikitenko
RomanNikitenko marked this pull request as ready for review November 11, 2026 09:55
@github-actions

Copy link
Copy Markdown
Contributor

RomanNikitenko and others added 4 commits November 11, 2026 15:49
A workspace loaded in a background tab keeps a stale FocusTracker state in the browser and never receives a focus event on return, so the title bar stays in inactive colors until clicked. Upstream #335056 started reading the live window focus on every updateStyles() call, exposing this. On web the focus state is unreliable, so never render the title bar inactive there; desktop behavior is unchanged.

Related: microsoft/vscode#336522

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
Protects the title bar fix across upstream rebases by replacing the focus-based isInactive computation in updateStyles().

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
In 1.128 the status bar did not depend on window focus at all. After the rebase, the theme's statusBar.inactiveBackground overrides a customer-configured statusBar.background whenever the browser focus state is stale (a workspace loaded in a background tab), leaving the status bar discolored until clicked. On web the focus state is unreliable, so never render the status bar inactive there; desktop behavior is unchanged.

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
…n web

Protects the status bar fix across upstream rebases: adds the isWeb import and replaces the focus-based isInactive computation in updateStyles(), and routes statusbarPart.ts through the multiline replace handler in resolve_conflicts().

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

…r offline downstream builds

@vscode/[email protected] (the version resolved in this package's
lockfile) declares its dependency on @vscode/hubrpc using the "next"
dist-tag. A dist-tag spec cannot be resolved from the lockfile alone:
npm must fetch the packument from registry.npmjs.org to learn what the
tag currently points to, even though the lockfile already pins
@vscode/[email protected] and its tarball is prefetched by the downstream
build tooling (hermeto/cachi2).

The downstream devspaces Konflux build (hermetic, no network access)
installs each sub-package with npm install, so resolving "next" fails
with ENOTFOUND and the build of markdown-language-features — and with
it the whole image — fails.

Pin the spec to 0.0.2-20 with a scoped override inside web-editors'
subtree only. This is the version already recorded in the lockfile and
also declared as the direct devDependency of this package, so nothing
changes about what gets installed; the tree only becomes resolvable
without network access. This also protects online installs from future
"next" tag drift (the tag has already moved to 0.0.2-54).

Verified in an offline container against the Konflux-prefetched
dependency cache: npm install of this package exits 0 with the override.

Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
@github-actions

ghost commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Since upstream dropped the `electron` npm devDependency (eff5556), the
root postinstall (build/npm/electronTypes.ts) downloads electron.d.ts from
the GitHub release of the Electron `target`. Hermetic downstream builds
(Dev Spaces / Konflux) have no network and fail with ENOTFOUND github.com.

Keep a checksum-verified copy in build/typings/electron.d.ts (outside the
code/ subtree) for downstream builds to seed .build/typings/electron.d.ts:
- rebase.sh: update_electron_types syncs the file with `target` in
  code/.npmrc and the sha256 in code/build/checksums/electron.txt after
  each rebase and commits the update
- pull-request-check.yml: offline check that the file matches the checksum
- .gitattributes: mark the file as generated to collapse it in diffs
- AGENTS.md: document the rebase.sh step

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Roman Nikitenko <[email protected]>
@RomanNikitenko
RomanNikitenko force-pushed the alignment-with-upstream-1-143 branch from 71542b4 to ce35446 Compare November 12, 2026 08:51
@github-actions

ghost commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@sbouchet

ghost commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

additionally, i've ran the autovalidation workflow against it : https://github.com/redhat-developer/devspaces-auto-validation/actions/runs/43243739662/job/131270802767. results :

Image

ghost left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ran several provided workspace and played around it ( open terminals, install extensions, ... )

@RomanNikitenko
RomanNikitenko merged commit 9f6a7b1 into che-incubator:main Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.