Skip to content

[pull] main from microsoft:main#1507

Merged
pull[bot] merged 5 commits into
code:mainfrom
microsoft:main
Jul 22, 2026
Merged

[pull] main from microsoft:main#1507
pull[bot] merged 5 commits into
code:mainfrom
microsoft:main

Conversation

@pull

@pull pull Bot commented Jul 22, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

DonJayamanne and others added 5 commits July 22, 2026 05:33
* feat: add chat submit handlers for config commands

Route chat submissions through a pluggable pre-submit handler so manually typed config slash commands can update Agent Host session config before send. Register the initial Copilot handler for config-only commands and share the existing confirmation path.

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

* fix: require exact config slash subcommands

Avoid treating invalid permission command arguments such as /yolo onxxxcva as valid config toggles. Commands without a prompt form now only resolve recognized subcommands.

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

* fix: handle config commands in agents composers

Run the chat pre-submit handler pipeline from the Agents window new-session and new-chat composers before dispatching through the sessions management service. Register a sessions-specific Copilot handler so config updates flow through the owning provider.

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

* fix: prioritize config commands in agents composer

Run pre-submit config command handling before the Agents composer slash-command executor and reuse the shared elevated-permission confirmation path in the sessions-specific handler.

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

* fix: handle config commands for draft sessions

Pass provider and session ids through the pre-submit request so Agents-window draft sessions can update their provider-owned config before they appear in the sessions list.

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

* refactor: simplify chat submit handler result

Make pre-submit handlers return a boolean handled signal and always clear input when handled.

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

* fix: remove unused properties from chat submit request handling

* refactor: combine agents composer command handling

Route Agents-window composer pre-submit config commands and local slash commands through one helper so the send path has a single handled-command branch.

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

* refactor: register sessions slash commands as submit handlers

Register the Agents-window slash command handler with the shared pre-submit handler service and route composer submissions through a single command handling pipeline.

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

* fix: consume cancelled config slash commands

Treat recognized config-only slash commands as handled even when the permission confirmation is cancelled, so they are removed from input instead of being sent as prompts.

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

* Potential fix for pull request finding

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

* fix: register submit handler in chat fixtures

Provide the chat submit request handler service in chat component fixtures so NewChatInputWidget can instantiate after the submit-handler unification.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Ensure fresh Agent Host chats select the available default model instead of relying on an undefined provider default. Add turn correlation, model selection kind, and structured error type telemetry.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ssion (#326921)

Adds a native `IQuickInputService` Quick Pick as an additional entry point
for picking the target folder when starting a new session in the Agents
Window, alongside the existing `WorkspacePicker` dropdown.

- New command `workbench.action.sessions.newSession.pickFolderQuickPick`
  ("New Session in Folder..."), discoverable via the Command Palette and
  bound to Cmd+O while the Agents Window is focused (wins over the
  desktop Open File/Folder actions' Cmd+O via keybinding weight, without
  disabling those actions elsewhere).
- Lists recently used folders (deduplicated against VS Code's own
  recents) followed by an always-present "Browse..." entry that opens
  the native folder dialog.
- Extracted `ISessionsRecentWorkspacesService`, a single source of truth
  for the sessions' own recently-used workspace folders, shared by the
  new Quick Pick and the existing `WorkspacePicker` dropdown (and its
  `WebWorkspacePicker`/`AutomationsWorkspacePicker` variants) so they
  always agree on the same recent-folder list.
- Fixed `NewChatWidget` to keep the `WorkspacePicker` dropdown's displayed
  selection in sync when the active session's workspace changes
  externally (e.g. via the new Quick Pick command while the composer is
  already showing).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix automation startup readiness race

Defer automation runs until their session target and requested model are ready, then retry from deterministic readiness signals.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 2db12056-f41c-49ba-88e2-0c82044adf64

* Honor folder-specific session type readiness

Recheck folder-scoped types while waiting for model readiness and use URI identity semantics in target availability tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 2db12056-f41c-49ba-88e2-0c82044adf64

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Jul 22, 2026
@pull pull Bot added the ⤵️ pull label Jul 22, 2026
@pull
pull Bot merged commit bca199a into code:main Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants