Commit Graph

148279 Commits

Author SHA1 Message Date
Matt Bierner
3f2a0f6fdc Merge pull request #300472 from mjbvz/dev/mjbvz/stable-lark
Consolidate `MockChatService`
2026-03-10 09:26:07 -07:00
BeniBenj
9f946ce843 fix: prevent local cwd evaluation in sessions window 2026-03-10 17:20:36 +01:00
Kyle Cutler
e03506d1b0 Browser: CDP over IPC (#300292) 2026-03-10 09:17:48 -07:00
Benjamin Christopher Simmonds
5e86484f5f Merge pull request #300469 from microsoft/benibenj/coastal-coyote
Hover for attach button in chat widget context action
2026-03-10 17:12:49 +01:00
Connor Peet
71d74966ec chat: use softAssertNever for unknown response parts (#300470)
Closes https://github.com/microsoft/vscode/issues/300204
2026-03-10 16:09:40 +00:00
Matt Bierner
3ef1baf097 Consolidate MockChatService
We have two `MockChatService` classes. This makes updating the interface slow since you have to update both locations. The two also behave slightly differently
2026-03-10 09:02:25 -07:00
Sandeep Somavarapu
ce4a1cfa8d Revert "config: make all settings experiment-aware by default (#300437)" (#300467)
This reverts commit e9eb2fd0cc.
2026-03-10 08:58:40 -07:00
Osvaldo Ortega
6466d05bab refactor: simplify repository info retrieval in AgentSessionsDataSource 2026-03-10 08:57:33 -07:00
Osvaldo Ortega
0677bc2dc1 refactor: remove unnecessary logging in AgentSessionsDataSource 2026-03-10 08:54:06 -07:00
BeniBenj
368df9ea1c hover for attach button in chat widget context action 2026-03-10 16:48:04 +01:00
Osvaldo Ortega
cb6ce4ae1b feat: add detailed logging for session grouping and repository info retrieval 2026-03-10 08:38:51 -07:00
Alex Ross
4198c6b4c4 Try fix workflow list (#300458)
* Try fix workflow list

* Fix API name again.
2026-03-10 16:30:39 +01:00
Lee Murray
31fa18a9e4 Update @vscode/codicons to version 0.0.45-14 (#300457)
chore: update @vscode/codicons version to 0.0.45-14 in package.json and package-lock.json

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-03-10 15:13:09 +00:00
Sandeep Somavarapu
e9eb2fd0cc config: make all settings experiment-aware by default (#300437)
* fix: improve experiment handling in configuration defaults

* refactor: simplify experiment property structure in configuration schemas

* Copilot CLI session f7a6aaaa-477b-497b-bfe8-9a59c2c61ed8 changes

* refactor: remove 'experimentMode: auto' from configuration schemas

* feat: export ConfigurationDefaultOverridesContribution class and add tests for configuration overrides

* fix: update experimentMode assignment logic in configuration properties

* fix: ensure experimentMode is always set to 'startup' in property configuration
2026-03-10 16:01:17 +01:00
Sandeep Somavarapu
62fcd7cac0 Mode picker in Sessions app (#298199)
* feat: add mode picker functionality and integrate mode management in chat sessions

* feat: integrate IChatSessionsService and enhance mode picker with custom agent target

* feat: update mode picker to use MenuItemAction and remove setMode callback

* fix: update available modes logic to use effective target for custom agent selection

* feat: enhance mode picker to support configuration of custom agents and update item structure

* feat: integrate ILanguageModelToolsService and enhance mode handling in SessionsManagementService

* feat: add group property to configure custom agents action in mode picker

* feat: update session mode handling to reflect selected mode in input model

* fix setting agent in session options

* fix

* fix checking untitled session

* Update src/vs/sessions/contrib/chat/browser/modePicker.ts

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

* Update src/vs/sessions/contrib/chat/browser/newSession.ts

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

* Update src/vs/sessions/contrib/chat/browser/modePicker.ts

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

* Update src/vs/sessions/contrib/chat/browser/modePicker.ts

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

* feedback

* open new ai customisations editor

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-10 10:56:16 -04:00
Matt Bierner
eed7ce60dc Merge pull request #300350 from mjbvz/dev/mjbvz/appalling-tahr
Reduce `any` usage in consoleForwarder
2026-03-10 07:52:48 -07:00
Ladislau Szomoru
c56c7bc071 Revert "Git - adopt the new package to use copy-on-write for the worktree include files (#299583)" (#300448)
This reverts commit 950ab0704b.
2026-03-10 15:01:11 +01:00
Sandeep Somavarapu
526c24b569 chat: refactor model picker delegate and improve picker UX (#300436)
* refactor: update model management methods to use grouped model picker

* refactor: remove showManageModelsAction parameter from model picker functions

* refactor: streamline model picker item construction and improve readability

* refactor: reorganize model picker logic to support grouped model selection

* refactor: disable showManageModelsAction in NewChatWidget and simplify useGroupedModelPicker logic

* fix: increase viewport max height calculation in ActionList class

* feat: add hover position support to model picker and related components
2026-03-10 10:00:17 -04:00
Alex Ross
54b762dd84 Rerun the failed API version check (#300443)
* Rerun the failed API version check

* CCR comments
2026-03-10 14:59:01 +01:00
Benjamin Christopher Simmonds
c8a2659cb7 Merge pull request #300444 from microsoft/benibenj/proposed-lynx
ci and PR review comments in agent feedback
2026-03-10 14:58:46 +01:00
BeniBenj
7cfab2369d revert copilot suggestion 2026-03-10 14:31:04 +01:00
Benjamin Christopher Simmonds
40e2da7a67 Update src/vs/sessions/contrib/codeReview/browser/codeReviewService.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-10 14:20:08 +01:00
BeniBenj
f316d9db7e ci and PR review comments in agent feedback 2026-03-10 14:11:45 +01:00
Ladislau Szomoru
83e4102717 Sessions - tweak toolbar actions (#300434) 2026-03-10 13:51:18 +01:00
Alex Ross
cba3c7aac7 Add API proposal version check (#300392)
* Add API proposal version check

* CCR feedback

* Test with version bump

* Comment improvements

* Undo test version bump

* More comment improvement
2026-03-10 12:52:52 +01:00
Ladislau Szomoru
35e0427ee2 Sessions - expose session base branch information (#300415)
* Sessions - expose session base branch information

* Pull request feedback
2026-03-10 11:18:21 +00:00
Ladislau Szomoru
950ab0704b Git - adopt the new package to use copy-on-write for the worktree include files (#299583)
* Git - adopt the new package to use copy-on-write for the worktree include files

---------

Co-authored-by: deepak1556 <hop2deep@gmail.com>
2026-03-10 11:51:57 +01:00
Sandeep Somavarapu
11246017b6 Revert "Debug Panel: oTel data source support and Import/export (#299256)" (#300381)
This reverts commit 5c84259481.
2026-03-10 10:09:40 +00:00
Johannes Rieken
5a356d228e Enhance quick suggestions with inline completions (#300371)
* Enhance quick suggestions behavior with inline completions: allow triggering when inline provider returns no results

* Improve inline completions handling: suppress suggestions when inline completions are active

* CCR
2026-03-10 08:25:06 +00:00
Connor Peet
261701ae14 mcp: move to askquestions for elicitations (#300294)
* mcp: move to askquestions for elicitations

This reuses the askquestions UI to make elicitation requests. This is a
nicer UX than the quickpick flow.

It adds data validation to askquestions, as required by MCP, and also
switches the answer types from `unknown` to `IChatQuestionAnswerValue`
which is a bit more predictable to manage.

* fic tests

* pr comments
2026-03-10 19:03:12 +11:00
Matt Bierner
f2b91b9a2f Merge pull request #300353 from mjbvz/dev/mjbvz/romantic-guineafowl
Keep `.md` file extension as default extension
2026-03-10 01:02:58 -07:00
Matt Bierner
e9e3431387 Merge pull request #300352 from mjbvz/dev/mjbvz/disturbed-mule
Reduce `any` usage in a few more tests
2026-03-10 01:02:50 -07:00
Matt Bierner
2ba34ab4c7 Merge pull request #300343 from mjbvz/dev/mjbvz/spicy-wildebeest
Add deprecation message on registerChatSessionItemProvider
2026-03-10 01:02:03 -07:00
Matt Bierner
abe7e4bd49 Merge pull request #300288 from mjbvz/dev/mjbvz/daily-dormouse
Move `registerChatModelChangeListeners` onto chat service
2026-03-10 01:01:41 -07:00
Paul
89508b298e Optimize discovery process (#300317) 2026-03-10 07:09:19 +00:00
Matt Bierner
f0df384358 Reduce ....args: any[] usage
For #269213
2026-03-10 00:02:22 -07:00
Matt Bierner
f2bd744896 Keep .md file extension as default extension
Fixes #300239
2026-03-09 23:19:55 -07:00
Matt Bierner
9ac9ae8a10 Reduce any usage in a few more tests
For #269213
2026-03-09 23:17:36 -07:00
Matt Bierner
79c14564df Reduce any usage in consoleForwarder
For #269213
2026-03-09 23:14:30 -07:00
Matt Bierner
a303f977d3 Don't use 'default' 2026-03-09 22:51:06 -07:00
Matt Bierner
34cee220ca Merge branch 'main' into copilot/fix-tooltip-markdown-syntax 2026-03-09 22:46:15 -07:00
Matt Bierner
b44b56dfa8 Add deprecation message on registerChatSessionItemProvider
Let's see how many callers are out there for this deprecated api
2026-03-09 22:43:39 -07:00
Paul
e2db4495b3 Improve slash command render (#300287) 2026-03-09 22:25:06 -07:00
Matt Bierner
018f88abe8 Remove unused import 2026-03-09 22:24:34 -07:00
Jamie Cansdale
eb7e1c7cb8 fix: chunk multiline PTY writes on macOS to avoid 1024-byte buffer corruption (#298993)
* test: add multiline PTY write test for macOS 1024-byte buffer bug

Adds a test that sends multiline commands of varying sizes (10, 20, 30 lines)
through TerminalProcess.input() and verifies the data arrives intact at the
shell. On macOS, multiline commands exceeding ~1024 bytes corrupt due to PTY
canonical-mode input buffer backpressure.

Reproduces: #296955

* fix: chunk multiline PTY writes on macOS to avoid 1024-byte buffer corruption

macOS PTY has a ~1024-byte canonical-mode input buffer. When multiline data
(containing CR characters) exceeds this threshold, the shell's line editor
echoes characters back, creating backpressure that corrupts the write.

Write multiline PTY input in 512-byte chunks with 5ms pauses between them
to allow the echo buffer to drain. Non-macOS platforms and single-line
writes are unaffected.

Fixes #296955

* test: increase large multiline test to 500 lines (~32KB)
2026-03-09 21:05:33 -07:00
Osvaldo Ortega
0f2bee18cd Merge pull request #300297 from microsoft/copilot/impressed-tiger
Sessions: Add "Group by Repository" toggle for sessions list
2026-03-09 19:03:13 -07:00
Vijay Upadya
5c84259481 Debug Panel: oTel data source support and Import/export (#299256)
* otel data source and Import/export

* Handle chat customization events in import/export

* PR feedback updates

* Fix reopen issue

* Simplify and pass core events for export

* Perf optimizations and label changes

* add session title to export/import
2026-03-09 18:44:34 -07:00
Osvaldo Ortega
cf9e1b99b8 perf: use update() instead of refresh() when toggling grouping
refresh() re-resolves all sessions from providers (network calls).
update() just re-renders the tree with existing data, which is all
that is needed when changing the grouping mode.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:32:46 -07:00
Osvaldo Ortega
862667adee fix: avoid type assertion for repo section IDs
Add AgentSessionSection.Repository enum value and use it for all repo
group sections. Differentiate repo sections via the identity provider
which now includes the label in the section ID.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:29:40 -07:00
Osvaldo Ortega
bb069eac1e fix: revert type widening of AgentSessionSection
Keep IAgentSessionSection.section as AgentSessionSection (not string).
Revert all changes to agentSessionsControl.ts and agentSessionsModel.ts.
Use type assertion for dynamic repo section IDs in the viewer instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:27:03 -07:00