[pull] main from microsoft:main#1507
Merged
Merged
Conversation
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )