Commit Graph

149915 Commits

Author SHA1 Message Date
Connor Peet
1dadacc629 Merge remote-tracking branch 'origin/main' into connor4312/customizations 2026-03-30 13:33:59 -07:00
Sandeep Somavarapu
39a50d8d3f sessions: fix Show All Sessions filter out of sync with view on reload (#306435)
* sessions: fix Show All Sessions filter out of sync with view on reload

The IsWorkspaceGroupCappedContext context key was never initialized from
persisted storage on reload, causing the menu checkmark to always show
as checked (default true) regardless of the stored value.

Fix by binding the context key in the constructor and syncing it with
the persisted SessionsList state in renderBody. Also fix the Reset
action which was resetting the internal state but not the context key.

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

* use sessionsControl as source of truth for reset context key

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 20:30:46 +00:00
Hawk Ticehurst
2924b6cf31 sessions: adjust titlebar container padding based on sidebar visibility (#306444) 2026-03-30 16:27:02 -04:00
Connor Peet
300ad62e2c incremental 2026-03-30 13:23:08 -07:00
Osvaldo Ortega
af3718b721 sessions: fix welcome page chat input collapsing on first keystroke
The chat input on the Agent Sessions welcome page would collapse from
~44px to ~22px after the first character typed, hiding the text.

Root cause: ChatWidget.layout() reserves MIN_LIST_HEIGHT (50px) for the
chat list even when the welcome page hides it via CSS. With a layout
height of 150px, the remaining budget for the input part was only 100px.
Once the input part's non-editor chrome (~128px for toolbars, padding,
attachments) was subtracted, _effectiveInputEditorMaxHeight dropped to 0,
collapsing the editor.

Fix: call setInputPartMaxHeightOverride(272) before layout so the input
part has enough budget independent of the artificially small layout
height. This mirrors what other compact chat surfaces (e.g. stacked chat
view) already do.

Fixes #304544

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 12:51:06 -07:00
Ladislau Szomoru
f8c32042ed Sessions - more actions polish in the Changes view (#306442) 2026-03-30 19:32:10 +00:00
Benjamin Pasero
b15c078a6d sessions - changes view CSS selector scoping (#306436) 2026-03-30 12:21:40 -07:00
Copilot
96b97550f6 Fix empty workspace name in archive sessions confirmation dialog (#306393)
* Initial plan

* fix: treat empty workspace label as "Unknown" in groupByWorkspace

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/4a4e1db0-915c-4a70-98de-10e2ef3ca42a

Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
2026-03-30 19:04:50 +00:00
Sandeep Somavarapu
b7308211d2 sessions: fix title bar context menu and session type icons (#306419)
sessions: fix title bar context menu and session icons

- Fix Unpin action missing from title bar context menu by looking up
  actual pinned state via SessionsView instead of hardcoding false
- Remove context menu for new/unsent sessions where actions like
  delete, pin, and archive don't apply
- Use session type icons (Codicon.copilot, Codicon.cloud) for
  AgentSessionAdapter instead of provider-level icons

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 21:02:14 +02:00
Sandeep Somavarapu
6a7e1b4bd3 fix #305345 (#306429)
Fix #305345
2026-03-30 18:51:01 +00:00
Rob Lourens
590f350b07 quickinput: keep Command Center visible when Quick Pick is dragged away (#306139)
* quickinput: expose alignment observable, keep Command Center visible when Quick Pick is dragged

When the Quick Pick is dragged away from its default top position, the
Command Center in the title bar no longer hides. Previously it always
hid on Quick Pick show, even when the widget was in a custom position
where it wouldn't overlap.

Changes:
- Add QuickInputAlignment type ('top' | 'center' | 'custom') and
  alignment observable to IQuickInputService
- DnD controller tracks alignment via _setAlignmentState() helper that
  updates both the context key and the observable
- Each service layer has a stable observableValue mirrored via autorun
  (avoids breaking subscriptions on lazy controller creation)
- Command Center uses autorun to reactively show/hide based on alignment
- Fix onShowEmitter.fire() timing (moved after layoutContainer so
  alignment is settled before listeners fire)
- Fix top===0 truthiness bugs in layoutContainer and updateLayout
- Fix double-click reset not updating alignment state

Fixes #306138

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

* quickinput: handle anchored inputs and partial state in alignment

- Set alignment to 'custom' for anchored quick inputs (positioned near
  a DOM element, not at the top)
- Re-sync alignment from DnD controller on non-anchored show to prevent
  stale 'custom' value after an anchored input closes
- Guard setAlignment() to no-op while an anchored input is visible
- DnD alignment typed as IObservable<QuickInputAlignment> (read-only)
- Require both top and left in persisted state before marking as custom

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 18:43:28 +00:00
Benjamin Pasero
8a20f2fffe sessions: align sticky section headers in sessions list (#306420)
sessions - align sticky section headers in sidebar list

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 18:32:07 +00:00
Rob Lourens
11f363eab7 Simplify codeblock rendering in chat markdown (#305845)
* Simplify codeblock rendering in chat markdown

* Simplify URIs more

Co-authored-by: Copilot <copilot@github.com>

* Simplify

Co-authored-by: Copilot <copilot@github.com>

* Fix error

* Also hold a model reference

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
2026-03-30 20:23:37 +02:00
Benjamin Pasero
3d3ff03a52 sessions - update changes view styles for modal editor (#306395) 2026-03-30 10:33:42 -07:00
Dmitriy Vasyura
00356ebc69 Update UI bug fixes and improvements (#306251) 2026-03-30 17:32:23 +00:00
Yogeshwaran C
4003d390fb fix: scope editor service in window title to own editor groups container (#306226)
* fix: scope editor service in window title to own editor groups container

The main window's WindowTitle used the global IEditorService which
tracks editor groups across all windows including auxiliary windows.
When a terminal was moved to a new window, the auxiliary window's
active editor change propagated to the main window's title, causing
it to incorrectly display the terminal name instead of the open file.

Scope the editor service used by WindowTitle to the window's own
editor groups container so each window title only reflects editors
within that window.

Closes #267538

* scope entire instantiator

* compile

* polish

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
2026-03-30 17:18:34 +00:00
Copilot
c2016b08f5 Fix local history commands when resource URI scheme is vscode-local-history (#306147)
* Initial plan

* fix: map vscode-local-history URIs back to original file URI in findLocalHistoryEntry

When the diff editor shows two local history versions, the active editor
URI uses the vscode-local-history scheme. findLocalHistoryEntry now converts
this back to the original file URI before querying workingCopyHistoryService,
matching the existing logic in provideTimeline.

Fixes microsoft/vscode#250469

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/aae53613-4b18-418c-867c-d650153ddbbf

Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
2026-03-30 17:17:52 +00:00
dependabot[bot]
8c61afa367 Bump path-to-regexp from 8.2.0 to 8.4.0 in /test/mcp (#305927)
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) from 8.2.0 to 8.4.0.
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases)
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v8.2.0...v8.4.0)

---
updated-dependencies:
- dependency-name: path-to-regexp
  dependency-version: 8.4.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2026-03-30 17:07:01 +00:00
Benjamin Pasero
33741c2647 Default files.watcherExclude patterns cause CPU stall on large repos due to pathological regex (fix #305923) (#306224) 2026-03-30 19:03:46 +02:00
Matt Bierner
002f2d99e8 Merge pull request #302609 from mjbvz/dev/mjbvz/amused-xerinae
Add ChatSessionInputState
2026-03-30 09:59:17 -07:00
mrleemurray
cb1415cf48 style: update agent feedback input widget border color and adjust textarea font size 2026-03-30 17:34:29 +01:00
Lee Murray
c892221c72 Update src/vs/sessions/contrib/agentFeedback/browser/media/agentFeedbackEditorInput.css
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-30 17:25:53 +01:00
Lee Murray
1efdec3f0c Update src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorWidgetContribution.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-30 17:25:20 +01:00
mrleemurray
ec0ca2c447 style: enhance agent feedback input widget with animation and adjust padding in items 2026-03-30 17:15:24 +01:00
mrleemurray
18dbdd1270 style: adjust padding and dimensions in agent feedback widget header and items
Co-authored-by: Copilot <copilot@github.com>
2026-03-30 17:05:49 +01:00
Ladislau Szomoru
0fab59cfae Sessions - polish changes item action bar (#306366) 2026-03-30 16:00:41 +00:00
xingsy97
d919f292bf comments: fix memory leak when recycling tree items in comment panel (#304666)
* comments: add disposeElement to prevent disposable accumulation on template reuse

* split template vs element disposables per review feedback

* retrigger CI

* Use disposable store

---------

Co-authored-by: Alex Ross <38270282+alexr00@users.noreply.github.com>
2026-03-30 15:45:33 +00:00
Sandeep Somavarapu
9f149cd91b sessions: gate CI rerun button on valid run ID and add tests (#306362)
sessions: gate rerun button on valid run ID and add tests

Only show the Rerun Check action when the check's detailsUrl contains
a parseable GitHub Actions workflow run ID. Export parseWorkflowRunId
for reuse.

Add unit tests for rerunFailedJobs endpoint and parseWorkflowRunId.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 17:45:00 +02:00
Copilot
76258864c3 Merge pull request #305995 from microsoft/copilot/fix-model-reference-leak
fix: dispose createModelReference ref on stale element in disassemblyView
2026-03-30 15:33:09 +00:00
dependabot[bot]
fc734bd35b Bump brace-expansion from 1.1.12 to 1.1.13 in /extensions/markdown-language-features (#305820)
Bump brace-expansion in /extensions/markdown-language-features

Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.12 to 1.1.13.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.12...v1.1.13)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.13
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-30 17:27:59 +02:00
Martin Aeschlimann
cc13977fc4 rename VS Code Dark -> Dark 2026 (#306364) 2026-03-30 15:24:38 +00:00
Ladislau Szomoru
f91019e767 Sessions - set isolation mode when we cannot detect a repository (#306359) 2026-03-30 15:01:06 +00:00
Lee Murray
e231798dee theme: add notification for auto-updated default themes (#306341)
Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-03-30 16:53:14 +02:00
Sandeep Somavarapu
af50a47c13 sessions: add rerun action for failed CI checks in PR checks view (#306347)
Add a per-check rerun button for failed CI checks in the changes view.
Uses the GitHub Actions rerun-failed-jobs API, extracting the workflow
run ID from the check's detailsUrl.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 19:26:58 +05:00
mrleemurray
4668c2651a style: adjust padding and alignment in agent feedback widget items 2026-03-30 15:25:11 +01:00
Sandeep Somavarapu
64e73b0366 sessions: fix multi-select context menu to operate on all selected items (#306332)
* sessions: fix multi-select context menu to operate on all selected items

Context menu actions in the sessions list previously only operated on the
right-clicked item, ignoring other selected items. Now the context menu
collects the tree selection and passes all selected sessions to actions.

Changes:
- sessionsList.ts: Pass selected sessions array as arg to context menu actions
- sessionsViewActions.ts: Update all 7 item actions to accept ISession | ISession[]
- copilotChatSessionsActions.ts: Update bridge commands to handle session arrays

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

* ensure right-clicked element is first in multi-selection

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 14:14:10 +00:00
mrleemurray
b125c373a9 refactor: clean up agent feedback widget styles and update title display
Co-authored-by: Copilot <copilot@github.com>
2026-03-30 14:56:45 +01:00
Isidor Nikolic
0705ebef87 Merge pull request #306330 from microsoft/isidorn/gorgeous-bee
log requestUnsandboxesExecutionReason
2026-03-30 15:51:11 +02:00
dileepyavan
a2d7b9e13b [Sandbox] Notify user to run out of sandbox if the domain is not included in allowedDomains. (#306121)
* Rename sandbox setting to chat.agent.sandbox (#303421)

Rename the top-level sandbox setting from `chat.tools.terminal.sandbox.enabled`
to `chat.agent.sandbox` to reflect that sandboxing is a general agent concept,
not terminal-specific.

- Update setting ID value to `chat.agent.sandbox`
- Update description to be more general
- Deprecate old `chat.tools.terminal.sandbox.enabled` setting
- Update telemetry event name

Fixes #303421

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

* updating terminal sandbox to agent sandbox

* removed allowTrustedDomains

* correcting the settings keys for sandboxing

* correcting the settings keys for sandboxing

* Explicit notification for blocked domains before running the command

* Fix terminal sandbox follow-ups

* main merge

* fixing tests

* Update src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts

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

* Update src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts

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

* Update src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts

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

* Update src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts

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

* Revert "Update src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts"

This reverts commit b956dfa719.

* removing local files

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-30 15:33:04 +02:00
Sandeep Somavarapu
03e592c629 actionWidget: fix submenu group label rendered as item description (#306327)
The submenu header (e.g. 'Thinking effort') was incorrectly shown as the
description of the first action item instead of as a proper section header.

Regression from f6218ecb33 which replaced ActionListItemKind.Header items
with inline description on the first child action.

Restore proper Header rendering for SubmenuAction groups that have a label.
For the sessions workspace picker, move the provider label to the first
child action's tooltip so it renders as a description instead of a header.

Fixes #306250

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 13:21:38 +00:00
Isidor
3cbe1c0739 log requestUnsandboxesExecutionReason 2026-03-30 14:51:29 +02:00
Sandeep Somavarapu
29f5047784 sessions: fix sidebar layout when customizations toolbar changes (#306314)
* sessions: fix sidebar layout when customizations toolbar changes

- Listen to toolbar's onDidChangeMenuItems to trigger re-layout when
  items are added/removed (e.g., Plugins appearing after extension
  activation)
- Remove redundant height: 100% from sessions-list-control (flex
  sizing handles this)
- Reduce sessions section bottom margin from 12px to 6px
- Rename onDidToggleCollapse to onDidChangeLayout to reflect broader
  layout change handling

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

* Update src/vs/sessions/contrib/sessions/browser/media/sessionsList.css

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-30 12:45:47 +00:00
Lee Murray
837894c241 Add styles for toggled state of sidebar toggle button (#306304)
* feat: add styles for toggled state of sidebar toggle button

Co-authored-by: Copilot <copilot@github.com>

* Update src/vs/sessions/browser/parts/media/sidebarPart.css

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

---------

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-30 14:32:10 +02:00
Robo
d11c632ba8 chore: update electron@39.8.5 (#306292)
* chore: update electron@39.8.5

* chore: bump distro
2026-03-30 11:13:12 +00:00
mrleemurray
de250f558c fix: increase minimumWidth for SidebarPart to improve layout consistency
Co-authored-by: Copilot <copilot@github.com>
2026-03-30 11:58:50 +01:00
Lee Murray
eda966ed52 Merge pull request #306272 from microsoft/mrleemurray/sessions-toggle-update
Sessions: refactor toggle action and unread badge
2026-03-30 11:45:08 +01:00
Ladislau Szomoru
f92a4853f7 Git - change the default value for the git.detectWorktrees setting (#306286) 2026-03-30 10:43:16 +00:00
Sandeep Somavarapu
d55c8eb9f1 fix #305321 (#306265)
* fix #305321

* feedback
2026-03-30 10:36:20 +00:00
Lee Murray
3d5035e987 Sessions: Remove line-height from changes-decoration-badge styles in changesView.css (#306275)
style: remove line-height property from button styles in changesView.css

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-03-30 12:19:49 +02:00
mrleemurray
5915e0ff74 feat: enhance sidebar toggle accessibility with aria attributes for unread session count
Co-authored-by: Copilot <copilot@github.com>
2026-03-30 10:48:40 +01:00