Skip to content

[pull] main from microsoft:main#1287

Merged
pull[bot] merged 6 commits into
code:mainfrom
microsoft:main
May 23, 2026
Merged

[pull] main from microsoft:main#1287
pull[bot] merged 6 commits into
code:mainfrom
microsoft:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 23, 2026

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 : )

connor4312 and others added 6 commits May 23, 2026 05:12
…rogress part (#318053)

The legacy AgentHostEditingSession (844 LOC) only existed to translate
completed tool-call file edits into a markdownContent/codeblockUri/textEdit
cluster that CollapsedCodeBlock would then re-derive into a diff pill by
asking the editing session for stats it had just been handed.

The agent host protocol already exposes FileEdit.diff and before/after
content URIs up-front, so cut out the round-trip:

- New IChatExternalEdit progress part carries uri, editKind, originalUri,
  beforeContentUri, afterContentUri, and diff stats directly.
- stateToProgressAdapter.completedToolCallToEditParts emits one
  IChatExternalEdit per FileEdit, wrapping every URI via toAgentHostUri
  so remote sessions resolve through the agent host file system
  provider.
- Extract ChatEditPillElement base class from CollapsedCodeBlock — same
  DOM / styling, no editing-session coupling. New ChatExternalEditContentPart
  extends it and renders a static pill from the progress data.
- ChatThinkingContentPart.appendItem now accepts IChatExternalEdit
  metadata directly (via the new ChatThinkingItemMetadata alias); it
  derives the title (Created/Deleted/Renamed/Edited <filename>) and the
  pencil icon without any synthesized markdown. Diff stats bubble up
  through onDidChangeDiff (fired on a microtask so subscribers attach
  first).
- AgentHostSnapshotController (~330 LOC) replaces the legacy editing
  session: implements IChatEditingSession but only restoreSnapshot,
  requestDisablement, and snapshot URIs do real work. Everything else
  is a no-op so the chat-level Restore-to-checkpoint UI keeps working
  without dragging in the full diff pipeline.
- ChatChangesSummaryPart is intentionally skipped for agent host
  responses — per-file pills already convey the change counts inline.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Anthropic returns 400 (`messages.N.content.M: 'thinking' or 'redacted_thinking'
blocks in the latest assistant message cannot be modified` and `Invalid 'data'
in 'redacted_thinking' block`) when historical thinking/redacted_thinking blocks
have lost or rotated their signature/data on round-trip — most visibly on
claude-haiku-4.5 / claude-sonnet-4.6 in agent mode (~18k hits/day).

The Anthropic Extended Thinking docs explicitly allow omitting thinking blocks
from prior assistant role turns, and on Opus 4.5+/Sonnet 4.6+ omission is
neutral for quality. Pre-#315406 (≤ 0.47) we already did this; #315406 added
'messages' to apiSupportsHistoricalThinking, which is what flipped the behavior.

Reverts only the 'messages' membership; 'responses' (OpenAI Responses API)
still needs to round-trip encrypted reasoning blocks across turns and is
unaffected. Flips the matching unit test and renames model fixtures to
claude-haiku-4-5 (the dominant in-prod offender).
…317213)

* wip

* filter out files outside of workspace from subagent response

* revert settings.json

* address code review comments

* retrigger gh check
* Exclude MXC SDK catalog manifests from Authenticode checks

* Exclude MXC executables from VersionInfo sanity check
…eation time (#317905)

* Enhance telemetry in Copilot CLI chat session: include isolation mode and worktree status

* Add session tracking for Copilot CLI: implement turn count and creation time
)

* feat: Enhance logging for language model reset in ChatInputPart

* feat: Improve logging for language model reset based on model list changes
@pull pull Bot locked and limited conversation to collaborators May 23, 2026
@pull pull Bot added the ⤵️ pull label May 23, 2026
@pull pull Bot merged commit 96f9806 into code:main May 23, 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