mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-08 00:33:03 +01:00
Inverts requestKind defaulting in chatMLFetcher.fetchMany so that any
request reaching the fetcher without an explicit requestKindOptions is
classified as 'background'. Adds 'mainagent' as the explicit opt-in for
primary user-driven turns. Now:
- defaultIntentRequestHandler passes { kind: 'subagent' } for subagents
and { kind: 'mainagent' } for normal user turns.
- inlineChatIntent (both chat2 and inline edit paths) passes
{ kind: 'mainagent' }.
- All other callers (title gen, summarization, intent detection, commit
message gen, terminal fix gen, PR title/desc gen, rename suggestions,
semantic search, virtualToolGrouper, etc.) automatically get
'background' without per-call edits.
Also adds parentRequestId and conversationId to response.success,
response.cancelled, and response.error events so subagent requests can
be joined back to the main agent request, matching the
panel.request schema.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>