Skip to content

sessions: move the reusable Sessions code to vs/workbench/contrib/sessions (no behavior change) - #346421

Merged
Sandeep Somavarapu (sandy081) merged 38 commits into
mainfrom
sandy081/sessions-to-workbench-infra
Nov 6, 2026
Merged

Sandeep Somavarapu (sandy081) merged 38 commits into
mainfrom
sandy081/sessions-to-workbench-infra

Conversation

@sandy081

Copy link
Copy Markdown
Member

What

Moves the reusable Sessions code (domain model, services, session hosts, providers, the Sessions part and session view, the composer, the sessions list, the provider composer UI, the Changes editor, the New Session action and the diff options) from src/vs/sessions down to src/vs/workbench/contrib/sessions, so that the editor window can host it later. 523 files move.

No behaviour change. The Agents window (--agents) and the editor window behave exactly as on main. Nothing new is exposed, so there is no setting or feature gate. The Agents perspective itself is not part of this PR.

How it stays behaviour-neutral

  • Moved code has no module-scope registrations. Every registerSingleton, action, menu, configuration, contribution and onboarding descriptor that moved code used to make is now made by a thin caller in vs/sessions (or a .contribution/.registration module the Agents window entry points load), with the same ids, implementations, instantiation kinds and order.
  • The editor window does not load anything new: it reaches the same three model modules it already loaded from vs/sessions/common (now from their new path), and no vs/sessions module or Sessions stylesheet.
  • vs/workbench never imports vs/sessions; eslint enforces it for contrib/* (component fixtures, which are test-only, get their own target).
  • Moved strings stay in the vscode-sessions localization project (build/lib/i18n.ts).
  • Assets that are loaded by path (*.svg, *.webp, built-in skills, the dev tunnels bundle) stay where they are.

Commits, by kind

Review the prep and config commits normally. The pure move commits are generated (git mv plus relative specifier rewrites by codemod.mjs) and verified by verify-move.mjs: skim them.

Prep (behavioural refactors that make the moves possible)

  1. a31574f sessions: decouple the Sessions part and host layout from the session services
  2. a2cce73 sessions: split context keys and menus into shared and Agents-window parts
  3. da2a516 sessions: register the session changes stats cache from the Agents window entry point
  4. 2539f00 sessions: split the custom view and window canvas service contracts from their implementations
  5. 9b8e078 sessions: register the session services from the Agents window entry point
  6. 1cd21e3 sessions: register the new session composer service from the chat contribution
  7. b098cae sessions: stub ISessionsHostLayoutService in the remaining tests
  8. 0afb4f0 sessions: move the remote agent host command IDs to their own module
  9. dfc2cbd sessions: register the session provider services and contributions from vs/sessions
  10. 1a64d49 sessions: give the session UI the host layout's optional side-pane capability
  11. 9ae2c9b sessions: split the contracts the session UI uses from their Agents window implementations
  12. e95faf8 sessions: keep the New Session title bar entry out of the shared action
  13. d6302a7 sessions: extract registrations from the Changes view and empty state
  14. 1344cef sessions: hide the side pane from the sessions view through the host layout
  15. 5c4e518 sessions: extract registrations from session UI modules that move
  16. e9fb4d4 sessions: extract agent host agent picker registrations
  17. 3288862 sessions: register the session action context keys contribution from vs/sessions
  18. a9840bf sessions: anchor shared composer input styles by specificity
  19. 1c83676 sessions: declare the shared session UI's onboarding descriptors from the Agents window

Pure moves (generated, script-verified)

  1. 9a9502b sessions: move the session domain model to vs/workbench/contrib/sessions/common (pure move)
  2. 4f17993 sessions: move the session services to vs/workbench/contrib/sessions (pure move)
  3. 96ec084 sessions: move provider-neutral shared pieces to vs/workbench/contrib/sessions (pure move)
  4. 55aad28 sessions: move the session providers to vs/workbench/contrib/sessions/providers (pure move)
  5. 992fb8a sessions: move session UI prep modules to vs/workbench/contrib/sessions (pure move)
  6. c759e5b sessions: move the Sessions part and session view to vs/workbench/contrib/sessions (pure move)
  7. 0024afa sessions: move the session composer to vs/workbench/contrib/sessions (pure move)
  8. 1482349 sessions: move the sessions list to vs/workbench/contrib/sessions (pure move)
  9. 571f599 sessions: move the provider composer UI to vs/workbench/contrib/sessions (pure move)
  10. 00a0882 sessions: move the Changes editor to vs/workbench/contrib/sessions (pure move)
  11. 4ba26b5 sessions: move the New Session action to vs/workbench/contrib/sessions (pure move)
  12. e8d80c3 sessions: move the diff editor options service and empty file editor input to vs/workbench/contrib/sessions (pure move)

Config, lint, docs

  1. f75aaa5 eslint, build: prepare vs/workbench/contrib/sessions for the shared sessions code
  2. a77768e eslint: keep non-provider Agents window code from importing the shared providers
  3. 7b4a521 sessions: update links and lint allowlist paths to the moved files
  4. 5750245 CODENOTIFY: notify for the shared sessions model, services and provider specifications
  5. 62123d3 eslint: forbid vs/sessions imports from workbench contributions

Verification

verify-move.mjs on every move commit
$ node verify-move.mjs 9a9502b2f67   # sessions: move the session domain model to vs/workbench/contrib/sessions/common (pure move)
9a9502b2f67: 21 renames (similarity min 94%, median 98%), 616 importers modified, non-specifier changes: 0
$ node verify-move.mjs 4f17993126e   # sessions: move the session services to vs/workbench/contrib/sessions (pure move)
4f17993126e: 55 renames (similarity min 89%, median 98%), 450 importers modified, non-specifier changes: 0
$ node verify-move.mjs 96ec0841fbc   # sessions: move provider-neutral shared pieces to vs/workbench/contrib/sessions (pure move)
96ec0841fbc: 45 renames (similarity min 80%, median 93%), 296 importers modified, non-specifier changes: 0
$ node verify-move.mjs 55aad287afb   # sessions: move the session providers to vs/workbench/contrib/sessions/providers (pure move)
55aad287afb: 99 renames (similarity min 63%, median 91%), 63 importers modified, non-specifier changes: 0
$ node verify-move.mjs 992fb8ac5a6   # sessions: move session UI prep modules to vs/workbench/contrib/sessions (pure move)
992fb8ac5a6: 45 renames (similarity min 64%, median 94%), 184 importers modified, non-specifier changes: 0
$ node verify-move.mjs c759e5bff2c   # sessions: move the Sessions part and session view to vs/workbench/contrib/sessions (pure move)
c759e5bff2c: 44 renames (similarity min 66%, median 94%), 72 importers modified, non-specifier changes: 0
$ node verify-move.mjs 0024afad28b   # sessions: move the session composer to vs/workbench/contrib/sessions (pure move)
0024afad28b: 132 renames (similarity min 64%, median 92%), 93 importers modified, non-specifier changes: 0
$ node verify-move.mjs 1482349b418   # sessions: move the sessions list to vs/workbench/contrib/sessions (pure move)
1482349b418: 36 renames (similarity min 72%, median 96%), 57 importers modified, non-specifier changes: 0
$ node verify-move.mjs 571f599393e   # sessions: move the provider composer UI to vs/workbench/contrib/sessions (pure move)
571f599393e: 12 renames (similarity min 67%, median 91%), 15 importers modified, non-specifier changes: 0
$ node verify-move.mjs 00a0882e345   # sessions: move the Changes editor to vs/workbench/contrib/sessions (pure move)
00a0882e345: 30 renames (similarity min 64%, median 92%), 28 importers modified, non-specifier changes: 0
$ node verify-move.mjs 4ba26b5392a   # sessions: move the New Session action to vs/workbench/contrib/sessions (pure move)
4ba26b5392a: 1 renames (similarity min 71%, median 71%), 3 importers modified, non-specifier changes: 0
$ node verify-move.mjs e8d80c33420   # sessions: move the diff editor options service and empty file editor input to vs/workbench/contrib/sessions (pure move)
e8d80c33420: 3 renames (similarity min 88%, median 97%), 20 importers modified, non-specifier changes: 0
regparity.mjs: registrations before and after
$ node regparity.mjs 438933fdfbd 1c83676f17d
1 -> 0  menu MenuId.CommandPalette sessions.editorInput.windowCanvas
1 -> 0  action sessions.agentHost.newSessionPermissionModePicker
1 -> 0  action sessions.agentHost.newSessionCodexApprovalsPicker
1 -> 0  action sessions.agentHost.newSessionModePicker
1 -> 0  action sessions.agentHost.runningSessionConfigPicker
1 -> 0  action sessions.agentHost.runningSessionPermissionModePicker
1 -> 0  action sessions.agentHost.runningSessionModePicker
2 -> 0  action sessionsViewPane.closeSession
0 -> 1  menu MenuId.CommandPalette sessions.editor.remotes
0 -> 1  menu Menus.TitleBarLeftLayout NEW_SESSION_ACTION_ID
0 -> 1  action NewSessionPermissionModePickerAction
0 -> 1  action NewSessionCodexApprovalsPickerAction
0 -> 1  action NewSessionModePickerAction
0 -> 1  action RunningSessionConfigPickerAction
0 -> 1  action RunningSessionPermissionModePickerAction
0 -> 1  action RunningSessionModePickerAction
0 -> 2  action sessions.chatCompositeBar.close
base: 715 registrations (singleton=137 menu=117 action=278 contribution=138 command=31 keybinding=14)
head: 716 registrations (singleton=137 menu=118 action=278 contribution=138 command=31 keybinding=14)
differences: 17

Reading the differences (all checked against the sources):
- +1 menu Menus.TitleBarLeftLayout NEW_SESSION_ACTION_ID: the New Session title bar entry, previously declared inside the shared action's `menu`, is now appended by the Agents window (commit "keep the New Session title bar entry out of the shared action"). Same menu, group, order and when clause.
- 6 agent picker actions: the extracted registrations pass the action class's static id instead of the string literal; the script keys one side by id and the other by class name. Same 6 actions.
- sessionsViewPane.closeSession x2 -> sessions.chatCompositeBar.close x2: two different constants are named CLOSE_SESSION_COMMAND_ID (a local one in sessionsViewActions.ts, and the shared one in sessionCommands.ts, which moved). The script resolves constants by name, so the winner flipped. Both revisions register the same actions in the same files.
- CommandPalette sessions.editorInput.windowCanvas -> sessions.editor.remotes: the item is `OpenMultiDiffEditorLayoutDebugAction.ID` in changesViewActions.ts at both revisions; the script resolves `X.ID` by member name and picked a different class's static ID.
Totals per kind are identical apart from the +1 menu item.
reach.mjs: what the editor window loads
$ node reach.mjs <editor window entry points>   # at 1c83676f17d (this PR)
== src/vs/workbench/workbench.desktop.main.ts
reachable modules: 5356; under contrib/sessions or vs/sessions: 3
   src/vs/workbench/contrib/sessions/common/agentHostSessionsProvider.ts
   src/vs/workbench/contrib/sessions/common/session.ts
   src/vs/workbench/contrib/sessions/common/sessionsProvider.ts
== src/vs/workbench/workbench.web.main.ts
reachable modules: 5111; under contrib/sessions or vs/sessions: 3
   src/vs/workbench/contrib/sessions/common/agentHostSessionsProvider.ts
   src/vs/workbench/contrib/sessions/common/session.ts
   src/vs/workbench/contrib/sessions/common/sessionsProvider.ts
== src/vs/workbench/workbench.web.main.internal.ts
reachable modules: 5113; under contrib/sessions or vs/sessions: 3
   src/vs/workbench/contrib/sessions/common/agentHostSessionsProvider.ts
   src/vs/workbench/contrib/sessions/common/session.ts
   src/vs/workbench/contrib/sessions/common/sessionsProvider.ts

$ node reach.mjs <editor window entry points>   # at 438933fdfbd (main)
== src/vs/workbench/workbench.desktop.main.ts
reachable modules: 5356; under contrib/sessions or vs/sessions: 3
   src/vs/sessions/common/agentHostSessionsProvider.ts
   src/vs/sessions/services/sessions/common/session.ts
   src/vs/sessions/services/sessions/common/sessionsProvider.ts
== src/vs/workbench/workbench.web.main.ts
reachable modules: 5111; under contrib/sessions or vs/sessions: 3
   src/vs/sessions/common/agentHostSessionsProvider.ts
   src/vs/sessions/services/sessions/common/session.ts
   src/vs/sessions/services/sessions/common/sessionsProvider.ts
== src/vs/workbench/workbench.web.main.internal.ts
reachable modules: 5113; under contrib/sessions or vs/sessions: 3
   src/vs/sessions/common/agentHostSessionsProvider.ts
   src/vs/sessions/services/sessions/common/session.ts
   src/vs/sessions/services/sessions/common/sessionsProvider.ts
Static checks
$ pnpm run build-fast                  -> exit 0 (client=full, extensions=full, copilot=full)
$ pnpm run typecheck-client            -> exit 0, 0 TypeScript errors
$ pnpm run valid-layers-check          -> exit 0
$ pnpm run eslint <1051 changed files>   -> exit 0 (ESLint: checked 1051 files in 6730ms.)
$ pnpm run check-cyclic-dependencies   -> exit 0 (No cyclic dependencies found in 11799 files., on the fresh build output)
Module-scope side effects and host-hook call sites
$ node side-effects.mjs
files: 333, module-scope side effects: 0

$ node host-hooks.mjs 438933fdfbd 1c83676f17d
LOST  src/vs/workbench/contrib/sessions/browser/changes/changesView.ts	register  main=2 pr=0
LOST  src/vs/workbench/contrib/sessions/browser/changes/sessionActionContextKeys.ts	session  main=1 pr=0
LOST  src/vs/workbench/contrib/sessions/browser/changes/sessionActionContextKeys.ts	chat  main=1 pr=0
LOST  src/vs/workbench/contrib/sessions/providers/remoteAgentHost/browser/missionControlAgentHostContribution.ts	chat  main=1 pr=0
LOST  src/vs/workbench/contrib/sessions/browser/windowCanvasService.ts	windowId  main=2 pr=0
ADDED src/vs/sessions/contrib/changes/browser/changesView.contribution.ts	register  main=0 pr=2
ADDED src/vs/sessions/contrib/changes/browser/sessionActionContextKeys.contribution.ts	session  main=0 pr=1
ADDED src/vs/sessions/contrib/changes/browser/sessionActionContextKeys.contribution.ts	chat  main=0 pr=1
ADDED src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHost.contribution.ts	chat  main=0 pr=1
ADDED src/vs/workbench/contrib/sessions/browser/windowCanvas.ts	windowId  main=0 pr=2
hook members: 120; call-site keys: main=8340 pr=8340; lost=5 added=5
Tests
$ ./scripts/test.sh --runGlob "vs/{sessions/**,workbench/contrib/sessions/**,workbench/test/browser/**,workbench/services/editor/**,workbench/contrib/chat/test/browser/agentSessions/**,workbench/contrib/chatWindow/**}/*.test.js" --timeout 30000
exit 0: 15170 passing, 0 failing, 41 pending
$ (cd build && node --test lib/test/i18n.test.ts): 3 tests, 3 pass, 0 fail

Scripts

codemod.mjs
// Move codemod: `node codemod.mjs <renames.tsv>` (old<TAB>new per line, repo-relative).
// 1. Rewrites every relative import/export/dynamic-import specifier (TS), @import/url() (CSS) and relative link (MD)
//    in src/** that resolves to a moved file, and the relative references inside moved files themselves.
// 2. git mv's the files. Nothing else changes.
import fs from 'fs';
import path from 'path';
import { execSync } from 'child_process';

const map = new Map(fs.readFileSync(process.argv[2], 'utf8').trim().split('\n').filter(Boolean).map(l => l.split('\t').slice(0, 2)));
for (const [a] of map) { if (!fs.existsSync(a)) { throw new Error('missing source ' + a); } }

const files = execSync(`git ls-files 'src/**'`, { encoding: 'utf8', maxBuffer: 1 << 28 }).trim().split('\n').filter(f => /\.(ts|css|md)$/.test(f));

const toSource = p => p.replace(/\.js$/, '.ts');
const fromSource = (p, wasJs) => wasJs ? p.replace(/\.ts$/, '.js') : p;

function rewrite(oldFile, spec) {
	if (!spec.startsWith('./') && !spec.startsWith('../')) { return spec; }
	const [bare, suffix = ''] = spec.split(/(?=[?#])/);
	const wasJs = bare.endsWith('.js');
	const oldTarget = path.normalize(path.join(path.dirname(oldFile), wasJs ? toSource(bare) : bare));
	const newTarget = map.get(oldTarget) ?? oldTarget;
	const newFile = map.get(oldFile) ?? oldFile;
	if (newTarget === oldTarget && newFile === oldFile) { return spec; }
	let r = path.relative(path.dirname(newFile), newTarget);
	if (!r.startsWith('.')) { r = './' + r; }
	return fromSource(r, wasJs) + suffix;
}

let edited = 0;
const pending = [];
for (const f of files) {
	const src = fs.readFileSync(f, 'utf8');
	let out = src;
	if (f.endsWith('.ts')) {
		const lines = out.split('\n');
		const result = [];
		for (let i = 0; i < lines.length; i++) {
			const line = lines[i];
			const next = lines[i + 1];
			if (line.trim() === '// eslint-disable-next-line local/code-import-patterns' && next !== undefined) {
				const m = /(?:\bfrom\s*|^import\s*)'(\.{1,2}\/[^']+)'/.exec(next);
				if (m) {
					const newSpec = rewrite(f, m[1]);
					const newFile = map.get(f) ?? f;
					const target = path.normalize(path.join(path.dirname(newFile), newSpec));
					if (newSpec !== m[1] && !target.startsWith('src/vs/sessions/') && f.startsWith('src/vs/workbench/test/browser/componentFixtures/')) { continue; }
				}
			}
			result.push(line.replace(/(\bfrom\s*|\bimport\s*\(?\s*|\brequire\s*\(\s*)'(\.{1,2}\/[^']+)'/g, (m, pre, spec) => `${pre}'${rewrite(f, spec)}'`));
		}
		out = result.join('\n');
	} else if (f.endsWith('.css')) {
		out = out.replace(/(@import\s+(?:url\()?\s*['"]?|url\(\s*['"]?)(\.{1,2}\/[^'")\s]+)/g, (m, pre, spec) => pre + rewrite(f, spec));
	} else if (f.endsWith('.md')) {
		out = out.replace(/(\]\()(\.{1,2}\/[^)\s#]+)/g, (m, pre, spec) => pre + rewrite(f, spec));
	}
	if (out !== src) { pending.push([f, out]); edited++; }
}
// Exact repo-relative path mentions of moved files (lint allowlists, CODENOTIFY, docs, comments, module ids).
const pathMap = new Map();
for (const [a, b] of map) {
	const ra = a.replace(/^src\//, ''), rb = b.replace(/^src\//, '');
	pathMap.set(ra, rb);
	if (ra.endsWith('.ts')) { pathMap.set(ra.replace(/\.ts$/, '.js'), rb.replace(/\.ts$/, '.js')); }
}
const pathRe = /(?<![\w.\/-])((?:src\/)?)(vs\/sessions\/[\w./-]+?)(?![\w\/-]|\.[\w])/g;
const textFiles = execSync(`git ls-files`, { encoding: 'utf8', maxBuffer: 1 << 28 }).trim().split('\n').filter(f => !/(^|\/)pnpm-lock\.yaml$|\.(png|webp|svg|gif|jpg|ico|woff2?|ttf|wasm|node)$/.test(f) && fs.existsSync(f));
let pathEdits = 0;
for (const f of textFiles) {
	const key = map.get(f) ?? f;
	const current = pending.find(([p]) => p === f);
	const src = current ? current[1] : fs.readFileSync(f, 'utf8');
	if (!src.includes('vs/sessions/')) { continue; }
	const out = src.replace(pathRe, (m, pre, p) => pathMap.has(p) ? pre + pathMap.get(p) : m);
	if (out !== src) {
		pathEdits++;
		if (current) { current[1] = out; } else { pending.push([f, out]); }
	}
	void key;
}
console.log(`path mentions rewritten in ${pathEdits} files`);
for (const [a, b] of map) {
	fs.mkdirSync(path.dirname(b), { recursive: true });
	execSync(`git mv "${a}" "${b}"`);
}
for (const [f, out] of pending) { fs.writeFileSync(map.get(f) ?? f, out); }
console.log(`moved ${map.size}, rewrote ${edited} files`);
verify-move.mjs
// Pure-move verifier: `node verify-move.mjs <commit>`.
// Passes when every file the commit touches differs from its parent version only in relative module specifiers
// (TS import/export/require, CSS @import/url(), Markdown relative links), with renames detected by git.
import { execSync } from 'child_process';

const c = process.argv[2];
const sh = cmd => execSync(cmd, { encoding: 'utf8', maxBuffer: 1 << 28 });
const show = (rev, p) => { try { return sh(`git show ${rev}:"${p}"`); } catch { return undefined; } };
const norm = s => s
	.replace(/^[ \t]*\/\/ eslint-disable-next-line local\/code-import-patterns\n/gm, '')
	.replace(/'(\.{1,2}\/[^']+)'/g, `'<rel>'`)
	.replace(/(url\(\s*['"]?|@import\s+['"])(\.{1,2}\/[^'")\s]+)/g, '$1<rel>')
	.replace(/(\]\()(\.{1,2}\/[^)\s#]+)/g, '$1<rel>');

const renameRows = sh(`git diff -M50% --name-status ${c}^ ${c}`).trim().split('\n').filter(Boolean).map(l => l.split('\t')).filter(r => r[0].startsWith('R'));
const pathMap = new Map();
for (const r of renameRows) {
	const ra = r[1].replace(/^src\//, ''), rb = r[2].replace(/^src\//, '');
	pathMap.set(ra, rb);
	if (ra.endsWith('.ts')) { pathMap.set(ra.replace(/\.ts$/, '.js'), rb.replace(/\.ts$/, '.js')); }
}
const pathRe = /(?<![\w.\/-])((?:src\/)?)(vs\/sessions\/[\w./-]+?)(?![\w\/-]|\.[\w])/g;
const renamePaths = s => s === undefined ? s : s.replace(pathRe, (m, pre, p) => pathMap.has(p) ? pre + pathMap.get(p) : m);
const rows = sh(`git diff -M50% --name-status ${c}^ ${c}`).trim().split('\n').filter(Boolean).map(l => l.split('\t'));
let renamed = 0, modified = 0, bad = [];
const sims = [];
for (const r of rows) {
	const st = r[0];
	if (st.startsWith('R')) {
		renamed++; sims.push(+st.slice(1));
		const a = show(`${c}^`, r[1]), b = show(c, r[2]);
		if (norm(renamePaths(a)) !== norm(b)) { bad.push(`R ${r[1]} -> ${r[2]}`); }
	} else if (st === 'M') {
		modified++;
		const a = show(`${c}^`, r[1]), b = show(c, r[1]);
		if (norm(renamePaths(a)) !== norm(b)) { bad.push(`M ${r[1]}`); }
	} else {
		bad.push(`${st} ${r.slice(1).join(' -> ')}`);
	}
}
sims.sort((a, b) => a - b);
console.log(`${c}: ${renamed} renames (similarity min ${sims[0] ?? '-'}%, median ${sims[Math.floor(sims.length / 2)] ?? '-'}%), ${modified} importers modified, non-specifier changes: ${bad.length}`);
for (const b of bad) { console.log('  NOT PURE: ' + b); }
process.exitCode = bad.length ? 1 : 0;
regparity.mjs
// Registration parity: `node regparity.mjs <baseRev> <headRev>`.
// Collects the registrations (singletons, workbench contributions, actions, keybinding rules, commands, menu items)
// made by src/vs/sessions and src/vs/workbench/contrib/sessions at both revisions, keyed by their resolved ids, and
// prints what differs. Expected: no difference.
import { execSync } from 'child_process';
import ts from 'typescript';

const [base, head] = process.argv.slice(2);
const sh = c => execSync(c, { encoding: 'utf8', maxBuffer: 1 << 30 });

function filesAt(rev) {
	return sh(`git ls-tree -r --name-only ${rev} -- src/vs/sessions src/vs/workbench/contrib/sessions`).trim().split('\n')
		.filter(f => f.endsWith('.ts') && !f.includes('/test/') && !f.endsWith('.d.ts'));
}

function collect(rev) {
	const files = filesAt(rev);
	const sources = new Map(files.map(f => [f, sh(`git show ${rev}:"${f}"`)]));
	// string constants, global by name (good enough for ids)
	const consts = new Map();
	for (const [, s] of sources) {
		for (const m of s.matchAll(/(?:const|static readonly)\s+(\w+)\s*(?::\s*\w+\s*)?=\s*'([^']+)'/g)) { consts.set(m[1], m[2]); }
		for (const m of s.matchAll(/(\w+)\s*:\s*'([^']+)'/g)) { if (!consts.has(m[1])) { consts.set(m[1], m[2]); } }
	}
	const classIds = new Map();
	for (const [, s] of sources) {
		for (const m of s.matchAll(/class (\w+)[^{]*\{[^}]*?static readonly ID\s*=\s*([^;\n]+);/g)) { classIds.set(m[1], m[2].trim()); }
	}
	const resolve = (e, depth = 0) => {
		e = e.trim();
		const cls = /^(\w+)\.ID$/.exec(e);
		if (cls && classIds.has(cls[1]) && depth < 3) { return resolve(classIds.get(cls[1]), depth + 1); }
		const lit = /^'([^']*)'$/.exec(e) ?? /^`([^`$]*)`$/.exec(e); if (lit) { return lit[1]; }
		const last = e.split('.').pop();
		return consts.get(last) ?? consts.get(e) ?? e;
	};
	const classes = new Map(); // class name -> first `id:` expression in its constructor
	for (const [, s] of sources) {
		for (const m of s.matchAll(/class (\w+) extends (?:Action2|ViewAction<[^>]*>|EditorAction2|[\w.]*Action2?\b)[^{]*\{([\s\S]{0,4000})/g)) {
			const idm = /\bid:\s*([^,\n]+),/.exec(m[2]); if (idm && !classes.has(m[1])) { classes.set(m[1], idm[1]); }
		}
	}
	const out = [];
	for (const [f, s] of sources) {
		const sf = ts.createSourceFile(f, s, ts.ScriptTarget.Latest, true);
		const visit = node => {
			if (ts.isCallExpression(node)) {
				const callee = node.expression.getText(sf);
				const args = node.arguments;
				if (callee === 'registerSingleton') {
					out.push(`singleton ${args[0].getText(sf)} -> ${args[1].getText(sf)} (${args[2]?.getText(sf) ?? ''})`);
				} else if (callee === 'registerWorkbenchContribution2') {
					out.push(`contribution ${args[1].getText(sf)} @ ${args[2].getText(sf)}`);
				} else if (callee === 'registerAction2') {
					const a = args[0];
					let idExpr;
					if (ts.isClassExpression(a)) { const m = /\bid:\s*([^,\n]+),/.exec(a.getText(sf)); idExpr = m?.[1]; }
					else { idExpr = classes.get(a.getText(sf)) ?? a.getText(sf); }
					out.push(`action ${resolve(idExpr ?? '?')}`);
				} else if (callee === 'KeybindingsRegistry.registerCommandAndKeybindingRule' || callee === 'KeybindingsRegistry.registerKeybindingRule') {
					const m = /\bid:\s*([^,\n]+),/.exec(args[0].getText(sf)); out.push(`keybinding ${resolve(m?.[1] ?? '?')}`);
				} else if (callee === 'CommandsRegistry.registerCommand') {
					const a0 = args[0]; const m = ts.isObjectLiteralExpression(a0) ? /\bid:\s*([^,\n]+),/.exec(a0.getText(sf))?.[1] : a0.getText(sf);
					out.push(`command ${resolve(m ?? '?')}`);
				} else if (callee === 'MenuRegistry.appendMenuItem') {
					const cm = /\bid:\s*([^,\n}]+)/.exec(args[1].getText(sf));
					out.push(`menu ${args[0].getText(sf).replace(/^(AgentsWindowMenus|Menus)\./, 'Menus.')} ${resolve(cm?.[1] ?? '?')}`);
				} else if (callee === 'MenuRegistry.appendMenuItems') {
					const t = args[0].getText(sf);
					for (const m of t.matchAll(/id:\s*([\w.]+),\s*item:\s*\{\s*command:\s*\{\s*id:\s*([^,]+),/g)) { out.push(`menu ${m[1].replace(/^(AgentsWindowMenus|Menus)\./, 'Menus.')} ${resolve(m[2])}`); }
				}
			}
			ts.forEachChild(node, visit);
		};
		visit(sf);
	}
	return out;
}

const a = collect(base), b = collect(head);
const count = list => list.reduce((m, k) => m.set(k, (m.get(k) ?? 0) + 1), new Map());
const ca = count(a), cb = count(b);
let diffs = 0;
for (const k of new Set([...ca.keys(), ...cb.keys()])) {
	if ((ca.get(k) ?? 0) !== (cb.get(k) ?? 0)) { console.log(`${ca.get(k) ?? 0} -> ${cb.get(k) ?? 0}  ${k}`); diffs++; }
}
const kinds = list => [...list.reduce((m, k) => m.set(k.split(' ')[0], (m.get(k.split(' ')[0]) ?? 0) + 1), new Map())].map(([k, v]) => `${k}=${v}`).join(' ');
console.log(`base: ${a.length} registrations (${kinds(a)})`);
console.log(`head: ${b.length} registrations (${kinds(b)})`);
console.log(`differences: ${diffs}`);
reach.mjs
// `node reach.mjs <entry.ts...>`: BFS over relative static and dynamic imports; prints reachable modules under
// src/vs/workbench/contrib/sessions and src/vs/sessions.
import fs from 'fs'; import path from 'path';
const seen = new Set(); const queue = process.argv.slice(2); const via = new Map();
while (queue.length) {
	const f = queue.shift(); if (seen.has(f) || !fs.existsSync(f)) { continue; } seen.add(f);
	if (!f.endsWith('.ts')) { continue; }
	const s = fs.readFileSync(f, 'utf8');
	for (const m of s.matchAll(/(?:\bfrom\s*|\bimport\s*\(?\s*)'(\.{1,2}\/[^']+)'/g)) {
		let t = path.normalize(path.join(path.dirname(f), m[1]));
		if (t.endsWith('.js')) { t = t.replace(/\.js$/, '.ts'); }
		if (!seen.has(t)) { if (!via.has(t)) { via.set(t, f); } queue.push(t); }
	}
}
const hits = [...seen].filter(f => f.startsWith('src/vs/workbench/contrib/sessions/') || f.startsWith('src/vs/sessions/'));
console.log(`reachable modules: ${seen.size}; under contrib/sessions or vs/sessions: ${hits.length}`);
for (const h of hits.slice(0, 20)) { let chain = [h]; let c = h; while (via.has(c) && chain.length < 8) { c = via.get(c); chain.push(c); } console.log('  ' + chain.reverse().join(' -> ')); }
side-effects.mjs
// `node side-effects.mjs`: lists every top-level statement in the non-test files under src/vs/workbench/contrib/sessions
// other than imports and declarations (and variable initializers that call a registry). Expected: none.
import ts from 'typescript'; import fs from 'fs'; import { execFileSync } from 'child_process';
const files = execFileSync('git', ['ls-files', 'src/vs/workbench/contrib/sessions'], { encoding: 'utf8' }).split('\n').filter(f => f.endsWith('.ts') && !/\/test\//.test(f) && !f.endsWith('.d.ts'));
const ok = new Set([ts.SyntaxKind.ImportDeclaration, ts.SyntaxKind.ExportDeclaration, ts.SyntaxKind.FunctionDeclaration, ts.SyntaxKind.ClassDeclaration, ts.SyntaxKind.InterfaceDeclaration, ts.SyntaxKind.TypeAliasDeclaration, ts.SyntaxKind.EnumDeclaration, ts.SyntaxKind.ModuleDeclaration]);
let n = 0;
for (const f of files) {
	const sf = ts.createSourceFile(f, fs.readFileSync(f, 'utf8'), ts.ScriptTarget.Latest, true);
	for (const st of sf.statements) {
		if (ok.has(st.kind)) { continue; }
		if (ts.isVariableStatement(st) && !/\b(register\w*|Registry\.|MenuRegistry|KeybindingsRegistry|CommandsRegistry)\b/.test(st.declarationList.declarations.map(d => d.initializer?.getText() ?? '').join(' '))) { continue; }
		n++; console.log(`${f}:${sf.getLineAndCharacterOfPosition(st.getStart()).line + 1}: ${st.getText().split('\n')[0].slice(0, 140)}`);
	}
}
console.log(`files: ${files.length}, module-scope side effects: ${n}`);
host-hooks.mjs
// `node host-hooks.mjs <mainRev> <headRev>`: counts call sites of every member of main's session host contracts
// (sessionHost, chatHostOpener, sessionsService, sessionsPartService), per file, mapping main's paths through the renames,
// and prints the call sites that are lost or added. Expected: nothing lost that does not reappear in a split file.
import ts from 'typescript'; import { execFileSync } from 'child_process';
const [mainRev, headRev] = process.argv.slice(2);
const sh = (...a) => execFileSync('git', a, { encoding: 'utf8', maxBuffer: 1 << 28, stdio: ['ignore', 'pipe', 'ignore'] });
const show = (rev, f) => { try { return sh('show', `${rev}:${f}`); } catch { return null; } };
const ren = new Map(sh('diff', '-M', '--name-status', mainRev, headRev).trim().split('\n').map(l => l.split('\t')).filter(r => r[0].startsWith('R')).map(r => [r[1], r[2]]));
const contracts = ['sessionHost.ts', 'chatHostOpener.ts', 'sessionsService.ts', 'sessionsPartService.ts'].map(n => `src/vs/sessions/services/sessions/browser/${n}`);
const names = new Set();
for (const c of contracts) {
	const s = show(mainRev, c); if (!s) { console.log(`missing at ${mainRev}: ${c}`); continue; }
	ts.createSourceFile(c, s, ts.ScriptTarget.Latest, true).forEachChild(n => { if (ts.isInterfaceDeclaration(n)) { for (const m of n.members) { if (m.name && m.name.getText().length > 3) { names.add(m.name.getText()); } } } });
}
const re = new RegExp(`\\.(${[...names].join('|')})\\b`, 'g');
const count = (rev, mapPaths) => {
	const out = new Map();
	for (const f of sh('ls-tree', '-r', '--name-only', rev, 'src/vs').split('\n').filter(f => f.endsWith('.ts'))) {
		const s = show(rev, f); if (!s) { continue; }
		for (const m of s.matchAll(re)) { const k = `${mapPaths ? (ren.get(f) ?? f) : f}\t${m[1]}`; out.set(k, (out.get(k) ?? 0) + 1); }
	}
	return out;
};
const a = count(mainRev, true), b = count(headRev, false);
let lost = 0, added = 0;
for (const [k, v] of a) { const w = b.get(k) ?? 0; if (w < v) { lost++; console.log(`LOST  ${k}  main=${v} pr=${w}`); } }
for (const [k, v] of b) { const w = a.get(k) ?? 0; if (v > w) { added++; console.log(`ADDED ${k}  main=${w} pr=${v}`); } }
console.log(`hook members: ${names.size}; call-site keys: main=${a.size} pr=${b.size}; lost=${lost} added=${added}`);
regen-rebase.sh
#!/usr/bin/env bash
# Replays OLDBASE..OLDHEAD onto NEWBASE in the current worktree.
#  - "(pure move)" commits are REGENERATED: rename map from the original commit, then codemod.mjs, never hand-resolved.
#  - all other commits are cherry-picked; the script stops at the first conflict for a manual resolution.
# Usage: regen-rebase.sh NEWBASE OLDBASE OLDHEAD [--dry]
# Extra renames for files main added since OLDBASE: extra-renames.tsv next to this script, lines "<move subject substring>\t<from>\t<to>".
# A resolution script resolutions/<commit-prefix>-*.py is applied when a cherry-pick of that commit conflicts.
#   --dry records regenerated moves with commit-tree (no hooks) for a throwaway trial branch only. Never push a --dry result.
set -euo pipefail
NEWBASE=$1 OLDBASE=$2 OLDHEAD=$3 DRY=${4:-}
HERE=$(cd "$(dirname "$0")" && pwd)
git checkout -q --detach "$NEWBASE"
for c in $(git rev-list --reverse "$OLDBASE..$OLDHEAD"); do
	subj=$(git log -1 --format=%s "$c")
	if [[ "$subj" == *"(pure move)"* ]]; then
		map=$(mktemp)
		git diff -M --name-status "$c^" "$c" | awk -F'\t' '$1 ~ /^R/ {print $2"\t"$3}' > "$map"
		if [ -f "$HERE/extra-renames.tsv" ]; then
			while IFS=$'\t' read -r key from to; do
				[[ -n "$key" && "$subj" == *"$key"* ]] && { [ -e "$from" ] || { echo "extra rename source missing: $from" >&2; exit 3; }; printf '%s\t%s\n' "$from" "$to" >> "$map"; }
			done < "$HERE/extra-renames.tsv"
		fi
		[ "$(git diff -M --name-status "$c^" "$c" | grep -Ec '^[ADC]')" = 0 ] || { echo "ADDED, DELETED OR COPIED FILES in move $c" >&2; exit 2; }
		node "$HERE/codemod.mjs" "$map" > /dev/null
		git add -A
		if [ "$DRY" = --dry ]; then
			t=$(git write-tree); n=$(git log -1 --format=%B "$c" | git commit-tree "$t" -p HEAD); git reset -q --soft "$n"
		else
			git -c rerere.enabled=false commit -q -C "$c"
		fi
		echo "REGEN $c -> $(git rev-parse --short HEAD)  $(wc -l < "$map" | tr -d ' ') renames  $subj"
	else
		if ! git -c rerere.enabled=false cherry-pick "$c" > /dev/null 2>&1; then
			res=$(ls "$HERE"/resolutions/"${c:0:8}"-*.py 2>/dev/null || true)
			[ -n "$res" ] || { echo "CONFLICT at $c  $subj" >&2; git diff --name-only --diff-filter=U >&2; exit 1; }
			for r in $res; do python3 "$r"; done
			git add -A
			if git diff --cached | grep -qE '^\+(<<<<<<<|>>>>>>>)'; then echo "markers left after resolution of $c" >&2; exit 4; fi
			if [ "$DRY" = --dry ]; then
				t=$(git write-tree); n=$(git log -1 --format=%B "$c" | git commit-tree "$t" -p HEAD); git cherry-pick --quit; git reset -q --soft "$n"
			else
				GIT_EDITOR=true git -c rerere.enabled=false cherry-pick --continue > /dev/null
			fi
			echo "RESOLVED $c with $(basename $res)"
		fi
		echo "PICK  $c -> $(git rev-parse --short HEAD)  $subj"
	fi
done
echo "DONE $(git rev-parse --short HEAD)"

Reviews, performance and live testing

  • Code review: SHIP. Commit-by-commit review of the full range, plus a delta review of the review-fix commit and of the changes from the rebase onto main. All findings were fixed in this PR.
  • Performance: no regression. Measured A/B against main for startup of both the editor window and the Agents window: no new modules in the editor window, identical registrations, and startup and idle within noise.
  • Live testing: no behavioural difference. A side-by-side A/B of main and this PR in both windows covered the sessions list and its menus, pinning, groups, Done, rename and delete, the New Session composer and all its pickers, sending and streaming, tool confirmations and questions, worktree sessions, the Changes editor, Open in (Split View, New Window, Editor Window), chat tabs, the Inbox, Automations, reload, quit and relaunch, accessibility basics, the four default themes, and the editor window's Chat view, agent sessions list, Cmd/Ctrl+N, chat editor, inline chat and command palette. Every row that ran was identical; the editor window loads no Sessions stylesheets on either build; a main build opens user data written by this PR; log scans show the same error classes on both builds. Not run: startup timing in that session (covered by the performance A/B), the one-time Compare Models spotlight, and full settings and keybinding exports.

Decisions

  • Hosting prep for the editor window (surface policy, host context keys and CSS/keybinding scoping, null services, opening sessions in a host) is deferred to the Agents perspective work, so this PR is behaviour-neutral by construction.
  • One PR, reviewed commit by commit, with prep and pure moves in separate commits.
  • The whole reusable set moves at once.
  • Moved strings stay in the vscode-sessions localization project.
  • Tests that need Agents window registrations stay in vs/sessions.

Follow-ups (not in this PR)

Existing duplicate service registrations in the Agents window, unchanged by this PR (the last registration wins, so behaviour is as on main):

  • Same class registered twice: ITerminalInstanceService (terminalInstanceService.ts and terminal.contribution.ts), IImageResizeService (platform/imageResize/browser and workbench/services/imageResize/electron-browser), IWorkbenchIssueService (issueService.ts and issue.contribution.ts).
  • Two implementations of one service: IAgentHostFileSystemService (platform/agentHost/common and workbench/services/agentHost/common).

How to test

  1. ./scripts/code.sh --agents: open the sessions list, open a session, chat, approve a tool call, open Changes, New Session, and with sessions.chatWindows.enabled on, Open in > New Window.
  2. ./scripts/code.sh: the Chat view, its Sessions list, reopening a session, Cmd/Ctrl+N.
    Both behave as on main.

@vs-code-engineering

vs-code-engineering Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

TylerLeonhardt

Matched files:

  • build/lib/i18n.ts

Kyle Cutler (@kycutler)

Matched files:

  • src/vs/sessions/contrib/browserView/browser/sessionBrowserNetwork.ts
  • src/vs/sessions/contrib/browserView/browser/sessionBrowserView.ts
  • src/vs/sessions/contrib/browserView/test/browser/sessionBrowserNetwork.test.ts

Joaquín Ruales (@jruales)

Matched files:

  • src/vs/sessions/contrib/browserView/browser/sessionBrowserNetwork.ts
  • src/vs/sessions/contrib/browserView/browser/sessionBrowserView.ts
  • src/vs/sessions/contrib/browserView/test/browser/sessionBrowserNetwork.test.ts
  • src/vs/sessions/contrib/canvases/browser/canvasActivityBar.ts
  • src/vs/sessions/contrib/canvases/browser/pinnedCanvasService.ts
  • src/vs/sessions/contrib/canvases/browser/pinnedCanvases.contribution.ts
  • src/vs/sessions/contrib/canvases/browser/windowCanvasEditor.ts
  • src/vs/sessions/contrib/canvases/browser/windowCanvases.contribution.ts
  • src/vs/sessions/contrib/canvases/common/sessionCanvas.ts
  • src/vs/sessions/contrib/canvases/electron-browser/pinnedCanvasActions.ts
  • src/vs/sessions/contrib/canvases/electron-browser/pinnedCanvasPage.ts
  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvasActions.ts
  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvasService.ts
  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvases.contribution.ts
  • src/vs/sessions/contrib/canvases/test/browser/canvasActivityBar.test.ts
  • src/vs/sessions/contrib/canvases/test/browser/pinnedCanvasService.test.ts
  • src/vs/sessions/contrib/canvases/test/common/sessionCanvas.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/pinnedCanvasActions.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/pinnedCanvasPage.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasRegistryService.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasService.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasWorkingSet.test.ts

Ulugbek Abdullaev (@ulugbekna)

Matched files:

  • src/vs/sessions/contrib/canvases/browser/canvasActivityBar.ts
  • src/vs/sessions/contrib/canvases/browser/pinnedCanvasService.ts
  • src/vs/sessions/contrib/canvases/browser/pinnedCanvases.contribution.ts
  • src/vs/sessions/contrib/canvases/browser/windowCanvasEditor.ts
  • src/vs/sessions/contrib/canvases/browser/windowCanvases.contribution.ts
  • src/vs/sessions/contrib/canvases/common/sessionCanvas.ts
  • src/vs/sessions/contrib/canvases/electron-browser/pinnedCanvasActions.ts
  • src/vs/sessions/contrib/canvases/electron-browser/pinnedCanvasPage.ts
  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvasActions.ts
  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvasService.ts
  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvases.contribution.ts
  • src/vs/sessions/contrib/canvases/test/browser/canvasActivityBar.test.ts
  • src/vs/sessions/contrib/canvases/test/browser/pinnedCanvasService.test.ts
  • src/vs/sessions/contrib/canvases/test/common/sessionCanvas.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/pinnedCanvasActions.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/pinnedCanvasPage.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasRegistryService.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasService.test.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasWorkingSet.test.ts

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionsServices.registration.ts
  • src/vs/sessions/services/sessions/test/browser/sessionNavigation.test.ts
  • src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues require resolution before approval.

No open issues 🎉

What changed in this PR

Moves reusable Sessions functionality into vs/workbench/contrib/sessions for future reuse by the editor window, while retaining Agents-window-specific registration and startup wiring.

Changes:

  • Retargets model, service, provider, UI, test, and fixture imports to the shared Sessions location.
  • Separates service and contribution registrations from reusable implementations.
  • Preserves localization-project ownership and updates documentation and lint references.

No actionable defects identified in the supplied 245-file diff. Review included static tracing and relative-import resolution; project tests and live UI validation were not run.

Path abbreviations below: W = src/vs/workbench/contrib/sessions; S = src/vs/sessions; F = src/vs/workbench/test/browser/componentFixtures.

File Description
src/​vs/​workbench/​test/​browser/​componentFixtures/​sessions/​sessionsSignInDialog.fixture.ts Updated as part of this pull request.
src/​vs/​workbench/​test/​browser/​componentFixtures/​sessions/​sessionReadOnlyBanner.fixture.ts Updated as part of this pull request.
src/​vs/​workbench/​test/​browser/​componentFixtures/​sessions/​mockCodeReviewService.ts Updated as part of this pull request.
src/​vs/​workbench/​test/​browser/​componentFixtures/​sessions/​customViewNode.fixture.ts Updated as part of this pull request.
src/​vs/​workbench/​test/​browser/​componentFixtures/​sessions/​codexContinuationNotice.fixture.ts Updated as part of this pull request.
src/​vs/​workbench/​test/​browser/​componentFixtures/​sessions/​chatPetAchievementBadges.fixture.ts Updated as part of this pull request.
src/​vs/​workbench/​test/​browser/​componentFixtures/​sessions/​accountMenu.fixture.ts Updated as part of this pull request.
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​chatProgressContentPart.fixture.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​common/​testSessionBuilder.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​common/​sessionChangesStatsCache.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​common/​sessionApplication.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​common/​agentHostSessionsProvider.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​views/​testSessionsList.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​views/​sessionsListNotice.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​sessionsRecentWorkspacesService.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​sessionsProvidersService.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​sessionsListModelService.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​sessionsAuthGate.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​sessionHostTestUtils.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​sessionCommandTarget.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​newSessionComposerService.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​mobile/​mobileSessionFilterChips.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​chat/​checkboxChip.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​changes/​changesViewRenderer.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​providers/​remoteAgentHost/​browser/​syncedCustomizationBundler.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​providers/​copilotChatSessions/​common/​copilotChatSessions.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​providers/​agentHost/​test/​browser/​agentHostSessionPermissions.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​providers/​agentHost/​browser/​agentHostModeIcon.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​theme.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionPickerVisibility.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionLinks.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionConfig.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionComparisonConstants.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionComparison.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionCommands.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionChangesStatsCache.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionChangesService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionApplication.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionActivityBarActivityService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​pullRequestCreation.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​newSessionBanners.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​newChatDraftState.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​layoutConstants.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​github/​utils.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​github/​sessionLifecycleSettings.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​changesViewService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​categories.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​agentHostFilter.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionStorageCleanupNotice.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsListNotification.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsListFilters.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionGroupAppearancePicker.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionSectionOrderService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionScopedContextKeys.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionsAuthGate.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionRepositoryPicker.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionReference.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionHost.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionGroupsService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionConversationGroups.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionComparisonConfiguration.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionActionRunner.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​pinnedCanvases.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​parts/​sessionsEmptyStateLayout.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​parts/​sessionsEmptyState.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​parts/​editorPartSizing.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​parts/​agentsPartCard.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​newSession.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​mobileLayout.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​mobile/​mobileSortGroupSheet.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​mobile/​mobileChipLaneScroll.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​gitHubRepositoryResolver.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​github/​pullRequestHover.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​github/​issueHover.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​github/​fetchers/​githubRepositoryFetcher.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​github/​fetchers/​githubChangesFetcher.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​defaultSessionsListPresentation.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​defaultSessionRepositoryPicker.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​customizationsConstants.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​closedItemHistory.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chatViewFactory.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chatPhoneInputContext.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chatHostOpener.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chatBackgroundService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chatBackgroundRenderer.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​voiceInputDecorations.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​sessionsChatHistory.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​sessionModelPickerState.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​promptTypingAnimation.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​media/​chatInput.css Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​media/​branchPicker.css Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​chatWidgetUtils.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​artifactDetailsView.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​changes/​media/​changesSummaryWidget.css Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​changes/​checksViewModel.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​automationsConstants.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​agentHostShortcutsWidget.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​agentFeedbackModel.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​agentFeedbackAttachmentEntry.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​chat/​browser/​agentSessions/​agentHost/​agentSessionSettingsFileSystemProvider.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​node/​builtinThemeBorders.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​common/​chatLayout.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​workbenchFactory.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​titlebarPart.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​submenuFlyout.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​sessionWorkspace.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​sessionsParts.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​remoteHostUnavailableEmptyState.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​panelTabs.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​emptyEditorGroupAddTab.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​editorTitleMenuBridge.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​editorPart.test.ts Updated as part of this pull request.
src/​vs/​sessions/​test/​browser/​addTabFixtureUtils.ts Updated as part of this pull request.
src/​vs/​sessions/​services/​customView/​test/​browser/​customViewService.test.ts Updated as part of this pull request.
src/​vs/​sessions/​services/​customView/​browser/​customViewService.registration.ts Updated as part of this pull request.
src/​vs/​sessions/​services/​customView/​browser/​customViewGridPartService.ts Updated as part of this pull request.
src/​vs/​sessions/​services/​chatBackground/​test/​browser/​sessionsChatSurface.test.ts Updated as part of this pull request.
src/​vs/​sessions/​services/​canvas/​test/​browser/​testWindowCanvasService.ts Updated as part of this pull request.
src/​vs/​sessions/​services/​activity/​common/​sessionActivityBarActivityService.registration.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsWindowOpenTelemetry.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsUnattendedRestart.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsTypedCharactersTracker.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsSidebarNavigation.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsPicker.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsMouseNavigation.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsFocusActiveSessionKeybinding.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionDetails.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​updateSessionFoldersAction.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsWindowOpenTelemetry.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsUnattendedRestart.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsTypedCharactersTracker.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsPicker.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsMouseNavigation.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionDetailsAction.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessionInputBanners/​test/​browser/​sessionStorageCleanupConfiguration.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessionInputBanners/​test/​browser/​sessionInputBanners.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessionInputBanners/​browser/​sessionWorktreeCleanupAccessibilityHelp.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessionInputBanners/​browser/​sessionStorageCleanupConfiguration.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessionComparison/​browser/​sessionComparison.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​search/​test/​browser/​searchEditorEmptyState.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​search/​test/​browser/​searchEditor.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​remoteSessions/​browser/​remoteSessionSource.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​electron-browser/​tunnelAgentHostService.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​browser/​webSocketAgentHost.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​browser/​devContainerAgentHostService.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​remoteAgentHost/​browser/​cloudSandboxAgentHost.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​copilotChatSessions/​test/​browser/​copilotChatSessionsActions.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​agentHost/​browser/​openSubagentChat.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​agentHost/​browser/​mobile/​mobileChatPhoneInputPresenter.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​agentHost/​browser/​mobile/​mobileChatInputConfigPicker.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​providers/​agentHost/​browser/​agentHostSkillButtons.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​policyBlocked/​test/​browser/​sessionsPolicyBlocked.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​policyBlocked/​browser/​sessionsPolicyBlocked.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​onboardingTours/​test/​browser/​gitHubRepositoryResolver.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​onboardingTours/​browser/​tours/​parallelTasksTour.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​onboardingTours/​browser/​tours/​newSessionTour.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​layout/​test/​browser/​mobileSessionLayoutController.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​layout/​browser/​desktopLayoutController.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​layout/​browser/​desktop/​desktopLayoutStrategy.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​layout/​browser/​chatLayoutOwnerKeys.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​inboxOne/​test/​browser/​inboxNotificationsAccessibility.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​inboxOne/​common/​inboxEvidence.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​inboxOne/​browser/​inboxNotificationsLabels.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​inboxOne/​browser/​inboxCanvasHost.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​inboxOne/​browser/​inboxCanvases.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​github/​browser/​pullRequestSessionCreation.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​github/​browser/​pullRequestPicker.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​getStarted/​test/​browser/​getStartedChecklist.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​fileTreeView/​test/​browser/​githubFileSystemProvider.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​fileTreeView/​browser/​githubFileSystemProvider.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​fileTreeView/​browser/​fileTreeView.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​files/​test/​browser/​filesView.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​files/​browser/​filesView.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​extensions/​test/​browser/​agentsWindowExtensionsWidget.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​extensions/​test/​browser/​agentsWindowExtensionsWidget.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​extensions/​browser/​extensions.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​extensions/​browser/​agentsWindowExtensionsWidget.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​extensions/​browser/​agentsWindowExtensionsAccessibilityHelp.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​editor/​browser/​emptyFileEditorSearch.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chatWindow/​test/​browser/​chatWindowDragOut.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chatWindow/​browser/​chatWindowOpening.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chatWindow/​browser/​chatWindowDragOut.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​workbenchSessionTaskRunner.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionTaskRunner.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionsTaskService.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionCustomizations.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionComparisonModelPicker.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​screenshotWindowTool.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​runScriptCustomTaskWidget.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​mobileChatShell.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​getThemeColorsTool.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​chatPetAchievements.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​chatInput.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​electron-browser/​chatBackgroundTool.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​workbenchSessionTaskRunner.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionTaskRunner.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsTasksService.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsOpenerParticipant.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​screenshotWindowTool.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​requestOriginProvider.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​promptsService.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​newSessionOnboardingTargets.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​newSessionConfigToolbars.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​chatPetAchievements.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​aiCustomizationWorkspaceService.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​agentsWindowOpenIntent.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​canvases/​test/​common/​sessionCanvas.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​canvases/​browser/​windowCanvasEditor.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​canvases/​browser/​pinnedCanvases.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​canvases/​browser/​canvasActivityBar.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​automations/​browser/​automationRunner.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​automations/​browser/​automationInputCompletions.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​aquarium/​test/​browser/​aquariumOverlay.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​aquarium/​browser/​aquarium.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​agentFeedback/​test/​browser/​agentFeedbackEditorUtils.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​agentFeedback/​browser/​sessionEditorComments.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​agentFeedback/​browser/​agentFeedbackOverviewRulerContribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​agentFeedback/​browser/​agentFeedbackContextView.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​agentFeedback/​browser/​agentFeedbackAttachmentWidget.ts Updated as part of this pull request.
src/​vs/​sessions/​common/​chatLayout.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​workbenchFactory.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​sessionWorkspace.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​sessionsSignInDialog.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​mobileVisualViewport.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​mobileSidebarPart.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​mobileSessionsPart.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​mobilePanelPart.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​mobileCustomViewGridPart.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​mobileAuxiliaryBarPart.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​longPress.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​contributions/​mobileDiffColors.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​mobile/​contributions/​mobileChangesView.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​menubar.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​editorParts.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​dialogs/​mobileDialogSheet.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​dialogs/​mobileAwareDialogHandler.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​desktopAuxiliaryBarPart.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​parts/​customViewNode.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​paneCompositePartService.ts Updated as part of this pull request.
src/​vs/​sessions/​browser/​mobileWorkbench.ts Updated as part of this pull request.
build/​lib/​i18n.ts Updated as part of this pull request.
build/​lib/​i18n.resources.json Updated as part of this pull request.
.github/​instructions/​agents-inbox-telemetry.instructions.md Updated as part of this pull request.
.github/​CODENOTIFY Updated as part of this pull request.
.eslint-plugin-local/​tests/​code-no-private-agent-host-meta-import.test.ts Updated as part of this pull request.

Review effort: Balanced

@sandy081
Sandeep Somavarapu (sandy081) force-pushed the sandy081/sessions-to-workbench-infra branch from 1c83676 to 3e99f82 Compare November 6, 2026 00:23
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 4a19f6c0 Current: ff08353f

Changed (4)

sessions/changes/changesView/AllSections_List/Light
Before After
before after
sessions/changes/changesView/TreeMode/Light
Before After
before after
sessions/changes/changesView/FilesAndChecksOnly/Light
Before After
before after
sessions/changes/changesView/CollapsedSections/Light
Before After
before after

@sandy081
Sandeep Somavarapu (sandy081) force-pushed the sandy081/sessions-to-workbench-infra branch from f773f6d to 84367e4 Compare November 6, 2026 02:02
… services

- Move the session view contract (`ISessionView`) into sessionsPartService.ts,
  so the part service and the session command target no longer import the
  SessionView implementation; move the workspace selection option and result
  types to common/workspaceSelection.ts.
- Introduce `ISessionsHostLayoutService` (host presentation, explicit editor
  reveal, editor auto-visibility suppression), implemented by the Agents
  workbench next to `IAgentWorkbenchLayoutService` (both resolve to the same
  object), and move callers that need only those members to it, or to
  `IWorkbenchLayoutService` when they need only the base layout members.
- Tests stub the new service next to the layout service they already stub.

No behavior change.

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

Context keys and menu IDs used only by the Agents window shell (title bar,
part titles, account and Go menus, custom views, Automations, the docked
desktop editor part's tabs bar, empty editors, window canvases, onboarding,
aquarium and mobile chrome) move to `common/agentsWindowContextKeys.ts` and
`browser/agentsWindowMenus.ts` (`AgentsWindowMenus`, `SessionCanvasMenuGroup`).
`common/contextkeys.ts` and `browser/menus.ts` keep the keys and menus of the
session model, Sessions part, composer, sessions list and Changes editor
(including the editor header row menus the Changes editor contributes to), and
import nothing from the shell files.

Generated by a script; every MenuId and RawContextKey is constructed once,
with the same id and localized description as before. No behavior change.

Co-authored-by: Copilot <[email protected]>
…ndow entry point

The cache's module registered its singleton at module level. The
registration moves to sessionsServices.registration.ts, imported by
sessions.common.main.ts right before the session services, so the module
can later be shared without registering anything when it is imported.
Same id, implementation and instantiation type. No behavior change.

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

- Layer rules for vs/workbench/contrib/sessions (workbench rules, never
  vs/sessions) and its providers (may also import sibling providers;
  nothing else in vs/workbench may import them).
- vs/sessions may import both.
- The _meta guard and the IAgentSessionsService restriction cover the
  new folder like vs/sessions, including the Copilot provider exception.
- Translations: strings under vs/workbench/contrib/sessions stay in the
  vscode-sessions project (getResource rule and resources entry, with a
  test).
- LAYERS.md documents the shared folder.

No code moves yet; the folder is empty.

Co-authored-by: Copilot <[email protected]>
…ons/common (pure move)

git mv of the provider-neutral session model and common contracts:
session, sessionsProvider, sessionsManagement, sessionContextKeys,
sessionChangesStatsCache, sessionPickerVisibility, sessionComparison,
agentHostSessionsProvider, agentHostSessionWorkspace, sessionApplication,
sessionCommands, sessionConfig, workspaceSelection and the shared context
keys, with their tests and testSessionBuilder.

Generated by the move codemod: only relative module specifiers change,
plus the component fixtures' eslint-disable lines for imports that now
target vs/workbench. The workbench agent-host customization service and
its test no longer import vs/sessions.

Co-authored-by: Copilot <[email protected]>
…rom their implementations

ICustomViewService and ICustomViewOpenRequest move next to the custom view
descriptor types in customView.ts; IWindowCanvasService and its canvas,
descriptor, presentation and open request types move to windowCanvas.ts.
The implementations and their registrations stay where they are. The
session services depend only on the contracts, so they can move without
the Agents window implementations.

Generated by a script; importers updated. No behavior change.

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

The session services, session hosts, chat host opener, list model, groups,
comparison, section order, agent host filter, list presentation,
repository picker, open telemetry, providers registry, recent workspaces
and Agents agent-host customization service registered themselves at
module level. Their registrations move to sessionsServices.registration.ts,
which sessions.common.main.ts imports in place of the modules, so these
modules can be shared without registering anything when imported.

Same ids, implementations and instantiation types (SessionsService and
SessionsManagementService stay Eager, in the same relative order). The
registration module imports the workbench agent-host customization module,
whose default registration therefore still precedes the Agents override.

Generated by a script. No behavior change.

Co-authored-by: Copilot <[email protected]>
…(pure move)

git mv of the sessions registry, management and view services, the session
hosts, chat host opener and command target, their helpers (navigation, grid
state, recency, groups, list model, section order, comparison, open
telemetry, recent workspaces, worktree trust, GitHub repository resolver,
scoped context keys, clone repository, closed item history, session
reference) and the support services (agent host filter, Agents agent-host
customization service, chat background, list presentation, repository
picker, the session view, part and host layout contracts, and the custom
view and window canvas contracts), with their unit tests.

Generated by the move codemod: only relative module specifiers change.
The modules register nothing; sessionsServices.registration.ts in
vs/sessions registers them.

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

The composer service's module registered its singleton at module level.
The registration moves to chat.contribution.ts, next to the other session
chat services, so the module can be shared without registering anything.
Same id, implementation and instantiation type. No behavior change.

Co-authored-by: Copilot <[email protected]>
…/sessions (pure move)

git mv of the non-UI code the session providers need:
- the GitHub service layer (service, API client, pull request icon cache
  and status, models and fetchers) and the common GitHub types, utils,
  references and lifecycle settings;
- the shared session menu IDs (Menus);
- the new session types, composer service and picker telemetry, the
  automation model configuration, the Open in VS Code helpers, the phone
  layout helper and the client artifact runtime;
- common contracts: dev container agent host service, session links,
  categories, changes, changes view service, pull request creation,
  worktree suggestion and the chat constants;
with their tests.

Generated by the move codemod: only relative module specifiers change.

Co-authored-by: Copilot <[email protected]>
Tests that main added after the host layout contract was introduced build
the Changes editor or the sessions accessibility help without stubbing it.
They now stub it next to the layout service they already stub, as the
Agents workbench provides both. Tests only.

Co-authored-by: Copilot <[email protected]>
RemoteAgentHostCommandIds moves from remoteAgentHostActions.ts, which
registers the actions, to remoteAgentHostCommandIds.ts, so the mission
control contribution and the connection diagnostics can use the IDs
without importing the action registrations. Same IDs. No behavior change.

Co-authored-by: Copilot <[email protected]>
…om vs/sessions

The provider modules that move to vs/workbench next registered at module
level. Their registrations move to vs/sessions modules that the entry
points (or the provider contributions) import at the same positions:
- agentHostPolicyContinuationPresenter.contribution.ts: the policy
  continuation presenter;
- agentHostSkillButtons.contribution.ts: the "is agent host session"
  context key contribution and the skill buttons, which
  agentHostSkillButtons.ts now exports (AGENT_HOST_SKILL_BUTTONS,
  registerAgentHostSkillButton);
- connectionDiagnostics.contribution.ts: the connection diagnostics service;
- devContainerAgentHostService.contribution.ts: the dev container agent
  host service (desktop only, as before);
- missionControlAgentHost.contribution.ts: the mission control contribution
  and its Manage menu entry.
Tests that read these registrations import the registration modules.
Same ids, implementations, phases and menu entries. No behavior change.

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

Only provider contributions (vs/sessions/contrib/providers/*) and the
entry points may import vs/workbench/contrib/sessions/providers/*, as for
the providers under vs/sessions today: the core, services and non-provider
contributions keep needing an explicit exception.

Co-authored-by: Copilot <[email protected]>
…/providers (pure move)

git mv of the agentHost, copilotChatSessions and remoteAgentHost provider
implementations, their electron-browser pieces, styles, specifications,
the agent host session sandbox, the remote agent host command IDs and This
Computer section, and the tests that do not drive Agents window
registrations, to vs/workbench/contrib/sessions/providers/<name>/.

Registrations, actions, menus and provider UI that still depends on Agents
window parts stay in vs/sessions/contrib/providers/<name>/.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files (lint allowlists, docs) change.

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

ISessionsHostLayoutService gets an optional `sidePane` (isEditorPaneVisible,
hideSidePane) that hosts with a docked side pane provide. The Agents
workbench provides it (it is the side pane), so the Sessions part, the
session activity bar and the chat input toolbar now use it and plain
IWorkbenchLayoutService instead of IAgentWorkbenchLayoutService, and can
move without the Agents window workbench.

Tests stub the host layout service from the Agents layout service they
already stub (stubSessionsHostLayout), as the Agents workbench provides
both. No behavior change.

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

Refactor in place, no moves, so the session UI can depend on contracts only:
- agentFeedback.ts: IAgentFeedbackService with its event, option, context
  and navigation types and AGENT_FEEDBACK_NEW_SESSION_RESOURCE (from
  agentFeedbackService.ts and agentFeedbackEditorUtils.ts). Importers of
  the feedback model types import them from agentFeedbackModel.ts instead
  of the service's re-export.
- aquarium.ts: IAquariumService and IMountedToggleHandle.
- codeReview.ts: ICodeReviewService, its pull request review state, comment
  and suggestion types.
- fixCIChecks.ts: the CI check grouping, labels, required-check count and
  Fix CI prompt helpers and the Reveal CI Checks command ID.
- customizationItems.ts: the customization item configuration and counts.
The implementations, actions and registrations stay where they are.

Generated by a script; importers updated. No behavior change.

Co-authored-by: Copilot <[email protected]>
NewChatInSessionsWindowAction no longer declares its Agents title bar menu
entry. appendNewSessionTitleBarMenuItem in vs/sessions adds that entry
(same command, title, category, group, order and when clause), and
chat.contribution calls it right after registering the action. The
Sessions workbench fixture helper does the same so its title bar is
unchanged, and the title bar test reads the registered entry. The action
now depends only on workbench code. No behavior change.

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

git mv of the sessions list, its view, view actions helpers, hovers and
presentation, with their tests.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

Co-authored-by: Copilot <[email protected]>
…ons (pure move)

git mv of the provider composer UI: the agent host agent, mode, config,
permission and approval pickers and the open-subagent view item.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

git mv of the Changes editor and its input, the Changes view and file
list, the Changes service and view service, checks widget and model,
Create Pull Request widget, multi-diff source resolver and empty state.
The Changes view container and its registrations stay in vs/sessions.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

Co-authored-by: Copilot <[email protected]>
…s (pure move)

git mv of the New Session action. Its Agents title bar entry and
registration stay in vs/sessions.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

Co-authored-by: Copilot <[email protected]>
…input to vs/workbench/contrib/sessions (pure move)

git mv of the diff editor options service with its test, and the empty
file editor input.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

Co-authored-by: Copilot <[email protected]>
Markdown links in the Sessions specifications and in the agent host and
inbox telemetry instructions, and the bracket-notation allowlist entries,
pointed at files that moved to vs/workbench/contrib/sessions. They now
point at the new locations. Text only.

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

The session model and services moved to vs/workbench/contrib/sessions
(common/** and the browser services) and the provider specifications to
vs/workbench/contrib/sessions/providers/*; the same owners are notified as
for their previous locations.

Co-authored-by: Copilot <[email protected]>
Removes the 'vs/sessions/~' allowance from the 'src/vs/workbench/contrib/*/~'
import rule, so no workbench contribution can import the Agents window. No
production file needs it any more.

Component fixtures render Agents window UI and get their own test-only
target, 'src/vs/workbench/test/browser/componentFixtures/**', which allows
vs/sessions and the session providers on top of what the workbench test
target allows. It precedes 'src/vs/workbench/~' because the first matching
target wins. The per-line eslint-disable directives the fixtures used for
these imports are removed. Fixtures stay where they are, so fixture ids and
screenshot keys do not change.

Co-authored-by: Copilot <[email protected]>
The shared composer's fallback rule tied chat.css on specificity and won
only because its stylesheet loaded later. After the move into
vs/workbench, the unit-test harness (which loads every stylesheet in path
order) put chat.css ahead of it. Add .interactive-session so the rule wins
without depending on stylesheet order. In the app it already won, and the
live computed padding and margin of the input part are unchanged.

Co-authored-by: Copilot <[email protected]>
… the Agents window

The compare agents spotlight, worktree suggestion tour and session archive
tour declared their onboarding descriptors at module scope, so any window
that imported them would register them. Export a register*Descriptor()
function for each and call them from the Agents window's chat contribution,
which is where they were first evaluated. The descriptors and their
registration order are unchanged.

Co-authored-by: Copilot <[email protected]>
The shared session UI now depends on ISessionsHostLayoutService, which has an
id of its own; on main these classes used IAgentWorkbenchLayoutService, which
shares IWorkbenchLayoutService's id that fixtures already define. Fixtures
that do not define the host layout now get it resolved to their workbench
layout service on first use, with that service as the docked side pane, as
the Agents workbench does.

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

The sessions grid fixture stubbed ISessionsHostLayoutService with its Agents
layout mock, which has no sidePane, so the Sessions part sized its card as if
the side pane were hidden and the side-pane gap assertions failed. Leave the
service to the shared fixture default, which resolves it to that same layout
with the layout as the docked side pane, as the Agents workbench does.

Co-authored-by: Copilot <[email protected]>
@sandy081
Sandeep Somavarapu (sandy081) force-pushed the sandy081/sessions-to-workbench-infra branch from 84367e4 to fc990e3 Compare November 6, 2026 05:32
@sandy081
Sandeep Somavarapu (sandy081) merged commit dfe0bb7 into main Nov 6, 2026
51 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/sessions-to-workbench-infra branch November 6, 2026 09:05
Christof Marti (chrmarti) added a commit that referenced this pull request Nov 6, 2026
…actions test

The move of the Sessions code to vs/workbench/contrib/sessions (#346421) left the menu item registration in vs/sessions, so the test's side-effect import of the workbench module no longer registered the GitHub Environments connect action.

Co-authored-by: Copilot <[email protected]>
Christof Marti (chrmarti) added a commit that referenced this pull request Nov 6, 2026
…346506)

* sessions: Keep Dev Container providers out of the Environment picker

Dev Containers are an execution option of a folder with a devcontainer.json, offered on its source environment, not independent connections. Every persisted Dev Container provider was still listed as its own Environment picker entry. Exclude container-backed providers from the picker, and remove the unreachable Dev Container kind from Remotes management, whose discovery never ran and whose rows were never rendered.

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

* sessions: Import the Mission Control menu registration in the remote actions test

The move of the Sessions code to vs/workbench/contrib/sessions (#346421) left the menu item registration in vs/sessions, so the test's side-effect import of the workbench module no longer registered the GitHub Environments connect action.

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

---------

Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15) added a commit that referenced this pull request Nov 6, 2026
The test runs the "Connect via Dev Tunnel" command, which is registered when `remoteAgentHostActions.ts` loads. Since #346421 the test imports the command ID from `remoteAgentHostCommandIds.ts` instead, so it only passed when another test file had loaded the actions first, and failed when run on its own.

Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15) added a commit that referenced this pull request Nov 6, 2026
* Fix truncated ranged reads that reach the end of a file

`readFileIntoStream` capped the last, partially filled buffer at the remaining `length` allowance after the bytes just read had already been subtracted from it. Ranged reads whose `length` extends past the end of the file therefore lost bytes when more than half of `length` was read: reading 65536 bytes at position 65536 of a 100000 byte file returned 31072 instead of 34464 bytes. The buffer is already sized to the allowance, so the last buffer is now written as is.

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

* sessions: register the command that the connection diagnostics test runs

The test runs the "Connect via Dev Tunnel" command, which is registered when `remoteAgentHostActions.ts` loads. Since #346421 the test imports the command ID from `remoteAgentHostCommandIds.ts` instead, so it only passed when another test file had loaded the actions first, and failed when run on its own.

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

---------

Co-authored-by: Copilot <[email protected]>
Alejandro Daniel Di Stefano (Drako01) added a commit to Drako01/armotusitio-ide that referenced this pull request Nov 11, 2026
* Sessions: a hidden subagent chat no longer keeps a session's grid slot (#346342)

Sessions: a hidden subagent chat does not keep a session's grid slot

When a session's only visible chat moved into a chat window, hideChatFromGrid
checked the session's open chats to decide whether it was the only chat the
grid showed. Open chats include subagent (tool-origin) chats that are not
shown as tabs, so the session kept its pane, showing the new-chat composer.
Check the chats shown as tabs instead; subagent chats still open on demand.

When the session's slot leaves the grid, remove only that slot and keep its
chats shown in panes of their own, as closing the session does. Removing the
slot used to dispose those detached panes too. This was already the case for
a session with just a main chat and a detached chat; a hidden subagent chat
only masked it by keeping the slot. If the slot was active, the session's
detached pane becomes active instead of the new-session composer.

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

* terminal: allow auto local echo for remote agent host terminals (#346392)

Agent host terminals use a custom pty, so they have no remote authority. Thus the `auto` value of
`terminal.integrated.localEchoEnabled` did not enable typeahead for them, also when the agent host
is on a different machine.

- Adds `IShellLaunchConfig.isRemotePty` to mark a custom pty that runs on a different machine.
- Sets `isRemotePty` for agent host terminals when the connection kind is not `Local`.
- Makes the typeahead contribution treat a terminal with `isRemotePty` as remote.
- Makes `terminal.integrated.localEchoEnabled` experiment-controlled. The default stays `off`.
- Logs the experiment trigger when a remote terminal starts and the user did not set the value.

(Commit message generated by Copilot)

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

* Document that experiment pull requests describe only the code change (#346393)

Pull requests, commits and issues that ship, change, graduate or remove an experiment describe only the code change, without the experiment's rollout or results, even without numbers. The Public Content guidance and the experiments skill gave "the experiment showed no regression" and a primary-metric sentence as examples of acceptable public conclusions, which invited exactly those sentences. The conclusion example for other internal data is now "the error is common on Windows".

🤖 Authored with GitHub Copilot on behalf of @alexdima.

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

* build: install the built-in extensions with their own pnpm workspace (#346370)

* extensions: declare the packages that the extensions use from the root workspace

The built-in extensions import some packages that only the repository root's
package.json declares: Node.js finds them by walking up to <repo>/node_modules.
Each extension now declares what it uses, with the root's version ranges, so
that the extensions no longer depend on the root workspace's manifest:

- mocha and @types/mocha in the 16 extensions whose tests use them, and
  @types/mocha in microsoft-authentication
- sinon and @types/sinon in the 7 extensions whose tests use them
- glob in the css and html language server test runners
- util in emmet (its browser bundle includes the polyfill)
- path-browserify (the alias of the browser builds) and minimatch (the
  theme-seti update script) in extensions/package.json
- @types/vscode-notebook-renderer in ipynb, @types/node in markdown-math

The lockfile only gains the importer entries: every declaration resolves to a
version that is already locked.

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

* build: install the built-in extensions with their own pnpm workspace

The built-in extensions (every project under extensions/ except Copilot, which
stays a separate install root) move from the root workspace to a new install
root in extensions/, with its own pnpm-workspace.yaml and pnpm-lock.yaml. The
product build bundles the extensions, so the layout of their node_modules
doesn't ship; this lets the extensions change their node_modules layout (for
example to pnpm's isolated layout) independently of the root workspace.

- The lockfile entries were moved without resolving anything again: the 39
  importers and the 663 snapshots they use (193 shared with the root, which
  keeps 1537). Every package entry is the same as in the root lockfile.
  extensions/package.json declares tslib and zod, the peers that the root
  project provided (applicationinsights and @vscode/hubrpc), so they resolve
  to the same versions; zenuml's optional playwright-core peer is no longer
  linked.
- extensions/pnpm-workspace.yaml has the root's settings, with the overrides,
  allowBuilds and minimumReleaseAgeExclude entries that apply to the
  extensions (removed from the root where they only applied there), and
  hoistWorkspacePackages: false, so that the extensions aren't linked into
  extensions/node_modules by their names (emmet, gulp, npm, git, ...).
- extensions/.pnpmfile.mjs builds native modules for Electron, from the
  `nativeBuild` field of the root package.json.
- build/npm/dirs.ts, postinstall, the node_modules cache key, the workspace
  image inputs and the license scanner (extensions/node_modules, including its
  nested node_modules, and the extensions lockfile) know the new root.

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

* build: update the grammar updater, lint and Dependabot paths for the extensions workspace

Review feedback on the extensions install root:

- The update-grammar scripts of 33 extensions ran the grammar updater from
  ../../node_modules, which no longer has it: it is a dependency of
  extensions/package.json, so it is installed in extensions/node_modules.
- A change to extensions/pnpm-lock.yaml now lints the extensions that are
  linted with type information, like a change to the root pnpm-lock.yaml
  (kept, because the root workspace's TypeScript and typescript-eslint run that
  lint).
- Dependabot updates @vscode/markdown-editor in the extensions workspace
  (/extensions), which now has markdown-language-features and its lockfile.

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

* extensions: declare zod in mermaid-markdown-features instead of extensions/package.json

mermaid-markdown-features uses @vscode/web-editors, whose @vscode/hubrpc
dependency has zod as a peer. The root workspace's project used to provide it;
mermaid-markdown-features now declares it (4.4.3, like markdown-language-features),
instead of extensions/package.json. The lockfile resolves the same: only the
importer entry moves.

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

* extensions: declare tslib in the extensions that need it instead of extensions/package.json

@vscode/extension-telemetry uses @microsoft/applicationinsights-* 3.3.4, which
has tslib as a peer. The root workspace's project used to provide it. The nine
extensions that use @vscode/extension-telemetry (git, github,
github-authentication, html-language-features, json-language-features,
markdown-language-features, merge-conflict, microsoft-authentication,
typescript-language-features) now declare it instead of
extensions/package.json. The lockfile resolves the same: only the importer
entries move.

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

---------

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

* Sessions: dispose the Inbox's new-session composer before its scoped services (#346359)

* sessions: dispose the Inbox's new-session composer before its scoped services

The Inbox added the services of its new-session composer's scope to the
same store as the composer, and before it. As the Inbox went away, those
services were disposed first. The composer's prompt options then cleared
its input as it went away, so its chat widget parsed the input with a
disposed instantiation service and threw "InstantiationService has been
disposed". The services of the composer's scope are now kept in a store
disposed after the composer, as a session view does for its children.

Known pattern, not changed here because nothing uses those services while
it is disposed: a scope is still registered before what it creates in
- the Inbox's question carousel and its chat exchange list,
- SharedChatInputComposer's chat widget, after its widget services,
- ChatView's chat widget, after its scoped instantiation service.

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

* sessions: dispose a canvas's content before the services of its scope

Closing the Inbox still logged "InstantiationService has been disposed":
the window canvas service added the services of a canvas's scope to its
store before the canvas it created with them, so closing the Inbox
disposed its child instantiation service first. Disposing an
instantiation service disposes its children, so the services of the
Inbox's new-session composer were gone before the Inbox disposed it,
and the composer's prompt options, clearing its input as they went
away, made its chat widget create with a disposed service. The canvas
service now keeps the services of a canvas's scope in a store disposed
after the canvas.

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

---------

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

* agent Host: keep migrated local agent sessions in the root they were working in (multi-root workspaces) (#346381)

* agent Host: keep moved Local chats in the root they were working in (multi-root workspaces

* Feedback updates

* [Perf] chat: avoid cloud sandbox discovery scan loops (Written by Copilot)

Keep recorded-history retrieval out of cloud sandbox inventory discovery and retain unresolved task IDs for incremental retries after completed enumeration.

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

* agentHost: ask for consent when Copilot extensions request permissions (#346395)

* agentHost: ask for consent when Copilot extensions request permissions

The Copilot runtime asks for consent when an extension declares privileged capabilities, such as
hooks. This request has no tool call, so the agent host rejected it without asking the user, and
extensions such as grove-agent-monitor did not load.

- Handles `extension-permission-access` requests before the missing-`toolCallId` check. The check
  stays for all other permission kinds.
- Holds a request until a turn is ready to show it, then shows a confirmation in that turn:
  Allow Once, Always Allow, Not Now and Never. Only disposal of the session ends the wait. Allow
  All approves the request, and Autopilot declines it.
- Adds the host setting `extensionPermissionApprovals`. Always Allow and Never are kept there for
  each extension name and set of capabilities, so a request for more capabilities asks again. The
  runtime does not keep approvals when a session resumes.
- Moves the MCP skill confirmation into a shared helper, `_confirmEphemerally`. The helper keeps
  the Always Allow and Never decisions, and keeps the turn open until the user answers.
- Emits the confirmation as a trusted root-turn action, so that it is not dropped after an abort
  before the next SDK turn starts.

Fixes https://github.com/microsoft/vscode-internalbacklog/issues/10615

(Commit message generated by Copilot)

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

* agentHost: show extension consent in steering and provider-initiated turns

- Marks steering turns and provider-initiated turns as ready for permission prompts. These turns
  do not run the turn preparation, so a waiting extension consent request was not shown until a
  later normal send.
- Adds a test for a provider-initiated turn.

(Commit message generated by Copilot)

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

---------

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

* agentHost: let the Search Tools toggle control tool search (#346375)

Remove the chat.agentHost.copilot.toolSearch.enabled and
chat.agentHost.copilot.toolSearch.deferThreshold settings, and the matching
toolSearchEnabled/toolSearchDeferThreshold Agent Host root config keys.

Copilot sessions now enable tool search only when the model supports it and
the client forwards its toolSearch tool, which users control with the Search
Tools toggle in Chat Customizations. Turning it off loads every tool up front.
The defer threshold is fixed at 1, the previous default.

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

* agentHost: admit configured MCP installs before sending values, and neutralize prompt links

Recheck the runtime client, policy session, expiry and disposal after claiming a configuration request and before values or secrets reach mcp.prepareInstall, since prompts can stay open across an authentication change. Split '](' in untrusted plan text so Quick Input cannot turn it into a command link.

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

* [Perf] sessions: index automation badge session lookups (#346405)

* [Perf] sessions: index automation badge session lookups

Avoid rescanning the session catalog for every automation run while preserving URI identity and first-match behavior.

Fixes #346329

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

* signing commit

---------

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

* agentHost: drop unrecognized restricted events (#346400)

* agentHost: drop restricted SDK copies from standard telemetry

Discard restricted notifications in both general and compaction forwarding rather than publishing duplicate metrics and restricted properties through publicLog. Preserve the separate restricted router and cover the standard-only forwarding contract in regression tests.

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

* agentHost: align restricted fallback routing coverage

Update the host-level routing regression to require restricted fallback events to be dropped while dedicated routes and standard forwarding remain covered.

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

---------

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

* Update CODENOTIFY for canvases (#339679)

* Update contributions in CODENOTIFY

Added @jruales to the contributions for canvases.

* Expand Canvas code notifications

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

* Exclude Inbox Canvas integration from notifications

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

* Limit Canvas notifications to contributed folders

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

* Add Ulugbek to Canvas folder notifications

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

---------

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

* agentHost: keep removal wording, validate secrets in the prompt, and fake timers in an expiry test

Unfinished removals report removal wording again instead of installation reasons. The secret prompt applies the host's NUL and size checks so an oversized secret is caught while it can still be edited. The client-admission expiry test runs on virtual time so setup can't expire the plan early.

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

* agentHost: install local MCP packages from Browse with non-secret values

Browse/Feed MCP servers that only offer a local package (for example Playwright MCP) failed because the runtime's owned install flow is remote-only. The host now configures them itself, reusing the MCP Gallery path: it verifies the card against the plan's digest, builds the command with the existing manifest parser and writes it with mcp.config.add after review. Packages that need environment or argument values get a configuration request; the client prompts and reviews by command, and the host places each value exactly where the runtime's plan declares it. Packages that need secrets still fail closed until the runtime can store them.

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

* agentHost: configure local MCP packages with values from Gallery cards too

Local package installs are written by the host, so they don't need a session-bound plan. Allow MCP Gallery cards whose package needs non-secret values to use the same configuration request as Browse/Feed entries.

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

* agentHost: configure MCP Gallery remotes with non-secret values in the host

The runtime refuses values for unbound direct-card plans (github/copilot-agent-runtime#26495), so MCP Gallery remotes that need header or URL values could not be installed. The host now writes them itself, like Gallery packages: it verifies the card against the plan's digest, matches the plan's remote choice, substitutes the submitted values literally and writes the result with mcp.config.add. Remotes that need secrets still fail closed.

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

* agentHost: support repeated arguments for host-written MCP packages

Local packages are configured by the host, so a repeatable runtime or package argument can be written once per value. The workbench collects such a value one entry at a time in the same step (empty finishes, Back removes the last entry), and the host places each submitted entry in order. Runtime-owned installs and Gallery remotes still refuse repeated values, since the runtime accepts one value per key and a header or URL slot holds one value.

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

* agentHost: address review feedback on host-written MCP installs

Write to the reviewed configuration key, keep the policy-session binding for input-free catalog packages, ignore fixed header variables when matching card remotes, require values that sit inside templates, parse substituted URLs fully, keep SSE remotes as SSE, show a package's environment and full command in the review, clear a repeated value removed with Back, and make the command or endpoint preview available to screen readers.

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

* chat: allow dragging inline attachment pills (#346424)

Move individual attachment pills within their source chat input using a pill-only preview anchored at its bottom-left corner. Preserve attachment metadata, undo/redo, and existing open and remove interactions.

Reset surrounding drop tracking when internal drags finish so subsequent external file drops retain their feedback. Add regression tests and accessibility guidance.

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

* chat: preserve slash references through editing and draft sync (#346420)

* chat: preserve slash references through editing and draft sync

Keep accepted skill and command references intact across input edits, sent messages,
restored history, and shared drafts.

- Parse accepted completions as structured references, including the first request
  after the composer changes.
- Keep attachment updates from replacing reference ranges before edits are tracked.
- Batch atomic reference cleanup so other references keep their correct ranges.
- Preserve inline references and metadata when drafts move between windows.
- Ignore parser-created attachment changes so sent drafts do not return.
- Protect unsent local edits and deliberate model choices during remote clears.
- Add regression tests for editing, history, queued requests, and two-window sync.

(Commit message generated by Copilot)

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

* chat: normalize shared draft references before comparison

Keep remote draft clears independent of view-only reference changes.

- Normalize optional reference fields and reference order before comparison.
- Ignore parser-added attachment ranges without losing backing payloads.
- Keep multiline mentions as ordinary attachments to avoid invalid dynamic ranges.
- Test remote clears before debounce and protect real unsent edits.

(Commit message generated by Copilot)

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

---------

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

* ci: comment out the macOS jobs of the pull request checks (#346383)

* ci: remove the macOS jobs from the pull request checks

Over two weeks of pull request runs, almost every pull request with a
test failure on a commit that never passed later also failed on Linux,
Windows or Compile & Hygiene. The failures that only macOS caught were
WebKit-only test fixes, flakes and setup failures, except for two
product bugs: timing races that the timing of the macOS runners exposed
rather than macOS-specific code, which now have regression tests that
run on the other platforms (#345028, #345683). Meanwhile, macOS / Remote
is the slowest job of a pull request, and the macOS jobs regularly wait
for a runner.

The Azure product build keeps running the full macOS test suite on main
(build/azure-pipelines/darwin/steps/product-build-darwin-test.yml: unit,
WebKit browser unit, integration, smoke and remote tests), so macOS
regressions are still caught after merge.

pr.yml no longer runs the macOS jobs (pr-darwin-test.yml, which this
removes, and chat-lib - Test (macOS)), and PR Gate, the only check that
branch protection requires, no longer needs them. This also removes what
only served those jobs: the electron-tests output of Detect Changes, the
macOS job of pr-node-modules.yml that warmed their caches, the macOS
workspace image and its restore code, which no job used, and the time
that the smoke test shards reserved for the macOS proxy runs. The manual
chat-lib-package.yml still runs on macOS, where test-chat-lib now
installs the dependencies instead of restoring a cache that no job
saves anymore.

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

* ci: comment out the macOS jobs instead of removing them

So that the macOS jobs can run again later, pr.yml now comments them
out instead of removing them, and pr-darwin-test.yml stays. Their
wiring is commented out with them: the electron-tests output of Detect
Changes, their entries in the needs of PR Gate, and the macOS jobs of
pr-node-modules.yml and pr-workspace-images.yml with the macOS entries
of .github/actions/detect-missing-caches. What only those jobs use is
back as it is on main: the time that the smoke test shards reserve for
the macOS proxy runs, the macOS restore of the workspace images, the
macOS cache of test-chat-lib, and the entries of pr-darwin-test.yml in
CODEOWNERS and in the configuration of ripple. The tests keep checking
pr-darwin-test.yml, and the comment on the macos-tests job lists what to
uncomment to run the macOS jobs again.

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

---------

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

* chat: enable Agent Host symbol attachments (Written by Copilot)

Restore editor-side symbol suggestions in Agent Host chat and forward accepted symbols through file-selection attachment handling, including current buffer text for unsaved files.

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

* Copilot CLI: only use the local development shim in builds from source (#346426)

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

* chat: explain cloud sandbox discovery decisions (Written by Copilot)

Add bounded inventory decision, progress, coalescing and feed lifecycle diagnostics through existing telemetry controls. Include focused coverage and count typed feed transport failures without inventing requests for authentication or local validation failures.

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

* agentHost: share local MC credentials (#346416) (Written by Copilot)

Use the host's shared GitHub and Copilot credentials consistently for live Mission Control requests and restored background work when local credentials are enabled. Preserve remote caller admission, client-credential mode, independent MCP authentication, and credential snapshot lifetimes.

Avoid repeated global sign-in for missing session sponsorship. Preserve manual repository sign-in for token challenges and direct unsponsored sessions toward resuming or reconnecting.

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

* agentHost: bump Copilot SDK to 1.0.29-preview.9 (#346409)

* agentHost: bump Copilot SDK to 1.0.29-preview.9 (Written by Copilot)

Bundle runtime 1.0.106-10 for desktop and remote. Refresh reviewed runtime prompt and permission/automation recordings, and retain strict assertions for the new BYOK message shape and unsupported managed effort behavior.

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

* Merge origin/main for SDK validation (Written by Copilot)

Integrate upstream workspace and Agent Host changes so the SDK draft can merge and run CI.

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

# Conflicts:
#	pnpm-lock.yaml

* agentHost: keep SDK lock entries portable (Written by Copilot)

Remove environment-specific proxy tarball URLs while preserving the exact SDK versions and SHA512 integrity pins. Let pnpm verify and resolve artifacts through the configured registry in CI and Product builds.

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

* test: put back the page scroll position after every top-level unit test suite (#346317)

Unit tests share one page per runner or worker. 14 test files leave it scrolled
(mostly by 60px, by focusing an input appended below the fold), and later
suites that measure page coordinates then fail depending on which files a
worker ran before them: TabbedModelPicker comparison alignment and Artifact
Integration Presentation in PR CI, and #345859 before. The scroll detector
already snapshots the position around every top-level suite; restore it after
the check, so the finding is still reported and later suites start unscrolled.

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

* build: stop processes that hold Windows test log files before publishing them (#346337)

Publish Log Files failed twice (492717, 493303) because files under .build\logs were still open after the tests, while the kill step, which matches executables under the test folder, found no holder or killed only the server and the files stayed locked. Both runs had a git.exe left over that no green run has. Find the holders by file with the Restart Manager, log them, and stop those that the build user started.

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

* editor: fix duplicate editors when moving a group to another window (#346425)

editor: close source group editors synchronously on cross-part moveGroup

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

* agentHost: preserve standard response correlation when restricted events arrive first (#346441)

agentHost: drop restricted fallback events before consuming correlation

Preserve the owning turn for the standard response when a restricted copy arrives first. Cover user- and agent-initiated success and error responses through the host routing boundary.

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

* agentHost: fall back to persisted history on missing worktree or MCP config errors and preserve adopted metadata (#346440)

* agentHost: fall back to persisted history on missing worktree or MCP config errors and preserve adopted metadata

* test fix

* Chat links open in the chat window they were clicked in (#346450)

* Agents: open chat links clicked in a chat window in that window

A chat or session link activated by the user in a chat window opens as a new tab in the group of the chat it was clicked in, or beside it when opened to the side. A chat another chat window shows is revealed there; a chat the main window shows moves into this window. Clicks in the main window and opens that are not user gestures are unchanged.

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

* Agents: gate chat-window link redirect on the chat windows setting

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

* Agents: resolve the clicked chat of a link before awaiting its chat id

The chat a link was activated in is now read when the link is opened, so a focus change while the link resolves does not move where it opens.

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

* Don't move focus into the main window when a grid chat moves into a chat window

Hiding a chat from the grid removed it with focus, so the next active session
or composer in the main window took OS focus away from the chat window.

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

* Don't move focus when seeding the empty grid's background draft

Seeding a folder or no-workspace draft after the last grid chat leaves for a chat window now passes preserveFocus through openNewSession/openQuickChat, so the main window no longer takes OS focus. User-initiated New Session still focuses.

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

* Keep the main window from taking focus while another window holds it

Revert the seed-only preserveFocus plumbing: seeding the empty grid's draft focuses as before, but the main window now skips moving focus while another window of the app is the active one. The skipped focus is applied once when the main window becomes active again and its focused element went away.

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

* Open links from a chat window in the main window when the chat window would end the chat

A chat that is archived or gone is ended by a chat window, which left a blank tab. The opener now uses the same predicate as the window provider and takes the main-window path for such targets.

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

* Share one chat window end condition, including the main chat fallback, between the window and links

A still-loading session whose archived main chat is not listed yet was redirected into a chat window, which ended it at once. The end condition now resolves the chat as the window does and is used by both.

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

* chatWindow: store and restore chats in the order of their tabs

A chat opened as a tab of a chat that is not the last sits beside it, so the order they joined in differs from the tabs. Store the chats in tab order, and restore each behind the one restored before it in its group.

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

* chatWindow: keep the remembered layout with the chat it was recorded for when tabs are reordered

A window stores its chats in tab order, so a tab moved before the chat the window opened for made a restore look up another chat's layout and sizes. Store that chat as the layout chat and restore with it.

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

* sessions: refocus the main window's session when focus did not move while it was skipped

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

* sessions: don't leak a replacement element in the focus guard test

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

* sessions: skip main window focus only when the removed session was active

Moving an inactive session into a chat window does not change the active pane, so it no longer queues a refocus that would move the sidebar focus into the active session.

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

* chatWindow: add exactChat to open the given chat instead of its session's shown chat

A resource that names a session resolved to the chat the grid shows for it, so a session link moved a peer chat. exactChat resolves it to the session's own main chat.

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

* sessions: link opener opens the exact chat and falls back when the window cannot resolve it

A session link opens its main chat in the chat window, never a peer shown in the grid. When the chat window cannot resolve the chat, such as while its session loads, the link opens in the main window as before.

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

* sessions: only queue the main window refocus when moving a chat out changes the active pane

A detached child of the same session that stays active is not removed, so no focus was skipped.

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

* chatWindow: do not share a pending open between exact and default resolution of one chat

Key the in-flight open by resolution mode as well as the resource, so an exact link open is not served by a pending generic open.

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

* chatWindow: run chat window opens one after the other

A generic and an exact open of one chat shared no pending open once keyed by resolution mode, and both could pass the lookup of the window that shows the chat before either published its window. Opens now run through one queue, so the second finds and reveals the window the first opened.

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

* chatWindow: serialize opens per resolved chat instead of globally

Resolve each request independently, then run the lookup and creation of a window one after the other only for the same resolved chat, so a slow open does not hold back a reveal of another chat.

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

* chatWindow: serialize opens per requested chat

Run every route of open() one after the other for the same requested chat, so a concurrent open of that chat in another mode sees the window the earlier one published. Opens of different chats do not wait for each other.

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

* chatWindow: do not leave a timer behind in the ready-chat test

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

---------

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

* agentHost: escape the command preview marker for hygiene

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

* agentHost: bump Copilot SDK to 1.0.29-preview.10 (#346448)

* agentHost: bump Copilot SDK to 1.0.29-preview.10 (Written by Copilot)

Keep the desktop and remote SDK pins aligned with bundled runtime 1.0.106-11.

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

* agentHost: fix SDK registry URLs (Written by Copilot)

Let pnpm resolve the SDK from the configured registry rather than recording local mirror tarball URLs that fail CI supply-chain verification. Preserve all package integrity hashes and dependency pins.

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

---------

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

* build: keep node_modules under src out of out-build (#346460)

Since #345794 made src/vs/sessions/test/e2e a root workspace member, the root install puts its Playwright dependencies in src/vs/sessions/test/e2e/node_modules. The transpile copied those 576 files into out-build, and the Windows compilation artifact's Guardian AntiMalware scan went from ~6 to ~58 min.

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

* build: install the extensions root next to the other native roots (#346468)

Since the built-in extensions have their own install root (#346370), the
postinstall installed it after build and remote, one root at a time. Its
install takes about 15 seconds, almost all of it compiling @parcel/watcher,
which the root workspace's install used to build for both, so a clean install
became about 10-15 seconds slower.

The extensions root now installs next to the build -> remote ->
extensions/copilot chain, which stays sequential. Its native modules build for
Electron, whose headers the preinstall has already installed, so they don't
download them. The postinstall waits for every install before it reports a
failure.

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

* sessions: move the reusable Sessions code to vs/workbench/contrib/sessions (no behavior change) (#346421)

* sessions: decouple the Sessions part and host layout from the session services

- Move the session view contract (`ISessionView`) into sessionsPartService.ts,
  so the part service and the session command target no longer import the
  SessionView implementation; move the workspace selection option and result
  types to common/workspaceSelection.ts.
- Introduce `ISessionsHostLayoutService` (host presentation, explicit editor
  reveal, editor auto-visibility suppression), implemented by the Agents
  workbench next to `IAgentWorkbenchLayoutService` (both resolve to the same
  object), and move callers that need only those members to it, or to
  `IWorkbenchLayoutService` when they need only the base layout members.
- Tests stub the new service next to the layout service they already stub.

No behavior change.

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

* sessions: split context keys and menus into shared and Agents-window parts

Context keys and menu IDs used only by the Agents window shell (title bar,
part titles, account and Go menus, custom views, Automations, the docked
desktop editor part's tabs bar, empty editors, window canvases, onboarding,
aquarium and mobile chrome) move to `common/agentsWindowContextKeys.ts` and
`browser/agentsWindowMenus.ts` (`AgentsWindowMenus`, `SessionCanvasMenuGroup`).
`common/contextkeys.ts` and `browser/menus.ts` keep the keys and menus of the
session model, Sessions part, composer, sessions list and Changes editor
(including the editor header row menus the Changes editor contributes to), and
import nothing from the shell files.

Generated by a script; every MenuId and RawContextKey is constructed once,
with the same id and localized description as before. No behavior change.

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

* sessions: register the session changes stats cache from the Agents window entry point

The cache's module registered its singleton at module level. The
registration moves to sessionsServices.registration.ts, imported by
sessions.common.main.ts right before the session services, so the module
can later be shared without registering anything when it is imported.
Same id, implementation and instantiation type. No behavior change.

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

* eslint, build: prepare vs/workbench/contrib/sessions for the shared sessions code

- Layer rules for vs/workbench/contrib/sessions (workbench rules, never
  vs/sessions) and its providers (may also import sibling providers;
  nothing else in vs/workbench may import them).
- vs/sessions may import both.
- The _meta guard and the IAgentSessionsService restriction cover the
  new folder like vs/sessions, including the Copilot provider exception.
- Translations: strings under vs/workbench/contrib/sessions stay in the
  vscode-sessions project (getResource rule and resources entry, with a
  test).
- LAYERS.md documents the shared folder.

No code moves yet; the folder is empty.

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

* sessions: move the session domain model to vs/workbench/contrib/sessions/common (pure move)

git mv of the provider-neutral session model and common contracts:
session, sessionsProvider, sessionsManagement, sessionContextKeys,
sessionChangesStatsCache, sessionPickerVisibility, sessionComparison,
agentHostSessionsProvider, agentHostSessionWorkspace, sessionApplication,
sessionCommands, sessionConfig, workspaceSelection and the shared context
keys, with their tests and testSessionBuilder.

Generated by the move codemod: only relative module specifiers change,
plus the component fixtures' eslint-disable lines for imports that now
target vs/workbench. The workbench agent-host customization service and
its test no longer import vs/sessions.

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

* sessions: split the custom view and window canvas service contracts from their implementations

ICustomViewService and ICustomViewOpenRequest move next to the custom view
descriptor types in customView.ts; IWindowCanvasService and its canvas,
descriptor, presentation and open request types move to windowCanvas.ts.
The implementations and their registrations stay where they are. The
session services depend only on the contracts, so they can move without
the Agents window implementations.

Generated by a script; importers updated. No behavior change.

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

* sessions: register the session services from the Agents window entry point

The session services, session hosts, chat host opener, list model, groups,
comparison, section order, agent host filter, list presentation,
repository picker, open telemetry, providers registry, recent workspaces
and Agents agent-host customization service registered themselves at
module level. Their registrations move to sessionsServices.registration.ts,
which sessions.common.main.ts imports in place of the modules, so these
modules can be shared without registering anything when imported.

Same ids, implementations and instantiation types (SessionsService and
SessionsManagementService stay Eager, in the same relative order). The
registration module imports the workbench agent-host customization module,
whose default registration therefore still precedes the Agents override.

Generated by a script. No behavior change.

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

* sessions: move the session services to vs/workbench/contrib/sessions (pure move)

git mv of the sessions registry, management and view services, the session
hosts, chat host opener and command target, their helpers (navigation, grid
state, recency, groups, list model, section order, comparison, open
telemetry, recent workspaces, worktree trust, GitHub repository resolver,
scoped context keys, clone repository, closed item history, session
reference) and the support services (agent host filter, Agents agent-host
customization service, chat background, list presentation, repository
picker, the session view, part and host layout contracts, and the custom
view and window canvas contracts), with their unit tests.

Generated by the move codemod: only relative module specifiers change.
The modules register nothing; sessionsServices.registration.ts in
vs/sessions registers them.

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

* sessions: register the new session composer service from the chat contribution

The composer service's module registered its singleton at module level.
The registration moves to chat.contribution.ts, next to the other session
chat services, so the module can be shared without registering anything.
Same id, implementation and instantiation type. No behavior change.

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

* sessions: move provider-neutral shared pieces to vs/workbench/contrib/sessions (pure move)

git mv of the non-UI code the session providers need:
- the GitHub service layer (service, API client, pull request icon cache
  and status, models and fetchers) and the common GitHub types, utils,
  references and lifecycle settings;
- the shared session menu IDs (Menus);
- the new session types, composer service and picker telemetry, the
  automation model configuration, the Open in VS Code helpers, the phone
  layout helper and the client artifact runtime;
- common contracts: dev container agent host service, session links,
  categories, changes, changes view service, pull request creation,
  worktree suggestion and the chat constants;
with their tests.

Generated by the move codemod: only relative module specifiers change.

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

* sessions: stub ISessionsHostLayoutService in the remaining tests

Tests that main added after the host layout contract was introduced build
the Changes editor or the sessions accessibility help without stubbing it.
They now stub it next to the layout service they already stub, as the
Agents workbench provides both. Tests only.

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

* sessions: move the remote agent host command IDs to their own module

RemoteAgentHostCommandIds moves from remoteAgentHostActions.ts, which
registers the actions, to remoteAgentHostCommandIds.ts, so the mission
control contribution and the connection diagnostics can use the IDs
without importing the action registrations. Same IDs. No behavior change.

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

* sessions: register the session provider services and contributions from vs/sessions

The provider modules that move to vs/workbench next registered at module
level. Their registrations move to vs/sessions modules that the entry
points (or the provider contributions) import at the same positions:
- agentHostPolicyContinuationPresenter.contribution.ts: the policy
  continuation presenter;
- agentHostSkillButtons.contribution.ts: the "is agent host session"
  context key contribution and the skill buttons, which
  agentHostSkillButtons.ts now exports (AGENT_HOST_SKILL_BUTTONS,
  registerAgentHostSkillButton);
- connectionDiagnostics.contribution.ts: the connection diagnostics service;
- devContainerAgentHostService.contribution.ts: the dev container agent
  host service (desktop only, as before);
- missionControlAgentHost.contribution.ts: the mission control contribution
  and its Manage menu entry.
Tests that read these registrations import the registration modules.
Same ids, implementations, phases and menu entries. No behavior change.

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

* eslint: keep non-provider Agents window code from importing the shared providers

Only provider contributions (vs/sessions/contrib/providers/*) and the
entry points may import vs/workbench/contrib/sessions/providers/*, as for
the providers under vs/sessions today: the core, services and non-provider
contributions keep needing an explicit exception.

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

* sessions: move the session providers to vs/workbench/contrib/sessions/providers (pure move)

git mv of the agentHost, copilotChatSessions and remoteAgentHost provider
implementations, their electron-browser pieces, styles, specifications,
the agent host session sandbox, the remote agent host command IDs and This
Computer section, and the tests that do not drive Agents window
registrations, to vs/workbench/contrib/sessions/providers/<name>/.

Registrations, actions, menus and provider UI that still depends on Agents
window parts stay in vs/sessions/contrib/providers/<name>/.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files (lint allowlists, docs) change.

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

* sessions: give the session UI the host layout's optional side-pane capability

ISessionsHostLayoutService gets an optional `sidePane` (isEditorPaneVisible,
hideSidePane) that hosts with a docked side pane provide. The Agents
workbench provides it (it is the side pane), so the Sessions part, the
session activity bar and the chat input toolbar now use it and plain
IWorkbenchLayoutService instead of IAgentWorkbenchLayoutService, and can
move without the Agents window workbench.

Tests stub the host layout service from the Agents layout service they
already stub (stubSessionsHostLayout), as the Agents workbench provides
both. No behavior change.

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

* sessions: split the contracts the session UI uses from their Agents window implementations

Refactor in place, no moves, so the session UI can depend on contracts only:
- agentFeedback.ts: IAgentFeedbackService with its event, option, context
  and navigation types and AGENT_FEEDBACK_NEW_SESSION_RESOURCE (from
  agentFeedbackService.ts and agentFeedbackEditorUtils.ts). Importers of
  the feedback model types import them from agentFeedbackModel.ts instead
  of the service's re-export.
- aquarium.ts: IAquariumService and IMountedToggleHandle.
- codeReview.ts: ICodeReviewService, its pull request review state, comment
  and suggestion types.
- fixCIChecks.ts: the CI check grouping, labels, required-check count and
  Fix CI prompt helpers and the Reveal CI Checks command ID.
- customizationItems.ts: the customization item configuration and counts.
The implementations, actions and registrations stay where they are.

Generated by a script; importers updated. No behavior change.

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

* sessions: keep the New Session title bar entry out of the shared action

NewChatInSessionsWindowAction no longer declares its Agents title bar menu
entry. appendNewSessionTitleBarMenuItem in vs/sessions adds that entry
(same command, title, category, group, order and when clause), and
chat.contribution calls it right after registering the action. The
Sessions workbench fixture helper does the same so its title bar is
unchanged, and the title bar test reads the registered entry. The action
now depends only on workbench code. No behavior change.

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

* sessions: extract registrations from the Changes view and empty state

The Changes action view items contribution (it also registers into the
Agents title bar menu), the list/tree mode, versions picker, diff stats and
Reveal CI Checks action registrations, and the empty state's Open Files and
Search in Files menu items move to changesView.contribution.ts, imported by
changes.contribution right after the Changes view. The action classes, the
versions picker id and the picker label helper become named exports. The
Changes fixture imports the registration module. changesView.ts and
changesEmptyState.ts no longer register anything. No behavior change.

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

* sessions: hide the side pane from the sessions view through the host layout

The sessions view hides the docked side pane through the host layout's
side-pane capability and uses plain IWorkbenchLayoutService for part
visibility, instead of IAgentWorkbenchLayoutService, so it can move without
the Agents window workbench. The Agents workbench provides both, so the
behavior is unchanged.

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

* sessions: extract registrations from session UI modules that move

Moves the module-level registrations out of the session UI modules that
move to vs/workbench/contrib/sessions next, so the moved modules register
nothing and the editor window loads nothing new:

- The new chat voice and chat input toolbar debug services, the #session
  reference command and the prompt template placeholder keybinding now
  register in chat.contribution.
- The MCP server count service registers in customizationsToolbar.contribution.
- The Session Activity Bar activity service and CustomViewService register
  in new registration modules imported at the same entry-point positions.
- The agent host config picker actions and contribution, the mobile chat
  input picker and presenter, and the open-subagent contribution register in
  new contribution modules imported where the UI modules were.

Anonymous Action2 classes become named exports. No behavior change.

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

* sessions: extract agent host agent picker registrations

Moves the agent picker shortcut, action and contribution registrations
into agentHostAgentPicker.contribution.ts, imported where the picker module
was, so the picker UI can move to vs/workbench/contrib/sessions without
registering anything. The anonymous action becomes the exported
AgentHostAgentPickerAction, and the shortcut's command id, context and
handler become exports. Same ids, when clauses and keybindings. No
behavior change.

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

* sessions: register the session action context keys contribution from vs/sessions

The contribution that binds the main window's session action context keys
on the global context key service moves to
sessionActionContextKeys.contribution.ts, imported by changes.contribution
in place of the module. The CI check context keys and their binder move
to fixCIChecks.ts. sessionActionContextKeys.ts keeps the binder registry
that providers and actions in vs/sessions fill, and registers nothing.
No behavior change.

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

* sessions: move session UI prep modules to vs/workbench/contrib/sessions (pure move)

git mv of the session UI building blocks the Sessions part, session view,
composer, sessions list and Changes editor build on: the session part and
host contracts, the agent feedback, aquarium, code review and Fix CI check
contracts, the customization items, the chat view base and chat surface,
the session activity bar and its activity service, the session header and
read-only banner, drop targets, empty states and the docked editor inputs.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: move the Sessions part and session view to vs/workbench/contrib/sessions (pure move)

git mv of the Sessions part, the session view and its chat groups, chat
group and composite bar, chat view and session and chat headers, grid
layout, remote connection banner and the chat editor content.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: move the session composer to vs/workbench/contrib/sessions (pure move)

git mv of the session composer: the new session and new chat widgets,
the chat view implementation, chat input toolbar and pickers, workspace,
branch, isolation and model pickers, comparison selection, input banners,
worktree suggestions and their styles and tests.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: move the sessions list to vs/workbench/contrib/sessions (pure move)

git mv of the sessions list, its view, view actions helpers, hovers and
presentation, with their tests.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: move the provider composer UI to vs/workbench/contrib/sessions (pure move)

git mv of the provider composer UI: the agent host agent, mode, config,
permission and approval pickers and the open-subagent view item.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: move the Changes editor to vs/workbench/contrib/sessions (pure move)

git mv of the Changes editor and its input, the Changes view and file
list, the Changes service and view service, checks widget and model,
Create Pull Request widget, multi-diff source resolver and empty state.
The Changes view container and its registrations stay in vs/sessions.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: move the New Session action to vs/workbench/contrib/sessions (pure move)

git mv of the New Session action. Its Agents title bar entry and
registration stay in vs/sessions.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: move the diff editor options service and empty file editor input to vs/workbench/contrib/sessions (pure move)

git mv of the diff editor options service with its test, and the empty
file editor input.

Generated by the move codemod: only relative module specifiers and exact
path mentions of the moved files change.

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

* sessions: update links and lint allowlist paths to the moved files

Markdown links in the Sessions specifications and in the agent host and
inbox telemetry instructions, and the bracket-notation allowlist entries,
pointed at files that moved to vs/workbench/contrib/sessions. They now
point at the new locations. Text only.

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

* CODENOTIFY: notify for the shared sessions model, services and provider specifications

The session model and services moved to vs/workbench/contrib/sessions
(common/** and the browser services) and the provider specifications to
vs/workbench/contrib/sessions/providers/*; the same owners are notified as
for their previous locations.

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

* eslint: forbid vs/sessions imports from workbench contributions

Removes the 'vs/sessions/~' allowance from the 'src/vs/workbench/contrib/*/~'
import rule, so no workbench contribution can import the Agents window. No
production file needs it any more.

Component fixtures render Agents window UI and get their own test-only
target, 'src/vs/workbench/test/browser/componentFixtures/**', which allows
vs/sessions and the session providers on top of what the workbench test
target allows. It precedes 'src/vs/workbench/~' because the first matching
target wins. The per-line eslint-disable directives the fixtures used for
these imports are removed. Fixtures stay where they are, so fixture ids and
screenshot keys do not change.

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

* sessions: anchor shared composer input styles by specificity

The shared composer's fallback rule tied chat.css on specificity and won
only because its stylesheet loaded later. After the move into
vs/workbench, the unit-test harness (which loads every stylesheet in path
order) put chat.css ahead of it. Add .interactive-session so the rule wins
without depending on stylesheet order. In the app it already won, and the
live computed padding and margin of the input part are unchanged.

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

* sessions: declare the shared session UI's onboarding descriptors from the Agents window

The compare agents spotlight, worktree suggestion tour and session archive
tour declared their onboarding descriptors at module scope, so any window
that imported them would register them. Export a register*Descriptor()
function for each and call them from the Agents window's chat contribution,
which is where they were first evaluated. The descriptors and their
registration order are unchanged.

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

* sessions: give component fixtures the session host layout service

The shared session UI now depends on ISessionsHostLayoutService, which has an
id of its own; on main these classes used IAgentWorkbenchLayoutService, which
shares IWorkbenchLayoutService's id that fixtures already define. Fixtures
that do not define the host layout now get it resolved to their workbench
layout service on first use, with that service as the docked side pane, as
the Agents workbench does.

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

* sessions: let the sessions grid fixtures resolve the side pane like the workbench

The sessions grid fixture stubbed ISessionsHostLayoutService with its Agents
layout mock, which has no sidePane, so the Sessions part sized its card as if
the side pane were hidden and the side-pane gap assertions failed. Leave the
service to the shared fixture default, which resolves it to that same layout
with the layout as the docked side pane, as the Agents workbench does.

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

---------

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

* sessions: Enable chat windows by default in Insiders (#346489)

sessions: enable chat windows by default outside stable

Turn `sessions.chatWindows.enabled` on by default in Insiders, tag it as preview and let experiments control it.

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

* sessions: show the active chat as the session view by default (#346389)

Default sessions.showChatTabs to single, so the Agents window shows a session's active chat as the session view instead of a tab per chat. The setting keeps its ExP auto mode, and explicit user settings still win. Show Chat Tabs in the session overflow menu still switches between Single and Multiple.

Related: microsoft/vscode-internalbacklog#9807

🤖 Authored with GitHub Copilot on behalf of @alexdima.

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

* chat: Confirm agent edits to Dev Container configurations (#346493)

Edits to .devcontainer.json, .devcontainer/devcontainer.json and .devcontainer/<name>/devcontainer.json were auto-approved by default. These configurations can run initializeCommand on the host, and set mounts and run arguments, whenever the container starts. The Agents window starts and resumes Dev Containers itself, and its agent can run inside the container with the workspace mounted from the host, so a silent edit could reach the host.

Add the configurations to the always-checked edit patterns of the Agent Host and the Copilot extension, so the edit prompt cannot be turned off by edit auto-approve patterns.

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

* Fix pet stuck in hacky sack game mode (#346471)

Agent Host changes for agents/fix-pet-stuck-in-hacky-sack-game

* ci: list the Linux workspace image jobs before the Windows ones (#346472)

Moves the linux-packages job after the linux job, so that the run of the Code OSS (workspace images) workflow shows both Linux jobs first, followed by the two Windows jobs.

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

* agentHost: handle backing-session ownership, disallowed UNC hosts, and invalid workspace.yaml during legacy migration (#346459)

* agentHost: handle backing-session ownership, disallowed UNC hosts, and invalid workspace.yaml during legacy migration

* fix: surface current recovered-chat preparation failures

Exercise subscription-driven preparation with invalid workspace metadata, successful repair, and a subsequent preparation error. Preserve read-only history while reporting the current failure.

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

* Skip no-op preparation for unrestricted recovered-history providers

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

---------

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

* agentHost: release a held session soon after its chat closes (#346288)

* agentHost: release a held session soon after its chat closes

The runtime marks a Copilot session as in use while VS Code has it loaded,
from creation or from the first turn after resuming it, until VS Code quits.
The Copilot CLI then asks before resuming the session, even after its chat
was closed in VS Code. Release such a session about 10 seconds after no
window observes it; reopening it restores it from disk.

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

* agentHost: keep a due idle release after a failed attempt, and count provider-initiated turns

A release that disconnects the live session and then fails left the provider no longer holding the session, so the retry dropped the due release and the session stayed loaded. Cancel a due release only when a client observes the session again or a turn starts. A resumed session is also held in use once a turn started through the SDK runs in it.

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

---------

Co-authored…
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.

4 participants