Skip to content

[pull] main from microsoft:main#1338

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

[pull] main from microsoft:main#1338
pull[bot] merged 11 commits into
code:mainfrom
microsoft:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Jun 6, 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 : )

guomaggie and others added 11 commits June 4, 2026 09:07
* Fix Copilot AH plugin sync errors on reconnection (#319744)

Two-part fix for #319744:

1. AHPFileSystemProvider gets a brief reconnection grace window. Per-
   authority entries keep a stack of connections (newest = active) and
   hold open requests across a transient disconnect. Watchers
   auto-reattach across reconnects via a class-level connection-change
   event. New tests cover reconnect grace, fallback to prior
   connection, immediate reject for never-registered authorities, and
   watch reattach across disconnect / late attach.

2. Plugin controller is split into two:
   - PluginController (shared, process-wide): host customizations,
     parsing helpers, and the IAgentPluginManager.
   - SessionPluginController (per CopilotAgentSession): client
     customizations, session-discovered on-disk customizations, and
     per-session enablement overrides. Publishes SessionActions
     directly via onDidPublish — no more clientId-based cross-session
     routing.

   ActiveClient is now Disposable, owns its SessionPluginController,
   and forwards publish events into the session's progress stream.
   setCustomizationEnabled fans out to every session controller,
   matching Claude's per-session model. sendMessage retries any
   previously-failed client customization sync so a transient
   connection drop during reconnection doesn't pin the error.

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

* Address Copilot review feedback

- agentHostFileSystemProvider: fix _getConnection race by re-checking
  state after subscribing
- agentHostFileSystemProvider: explicit void on fire-and-forget
  reattach() calls in watch()
- copilotAgent: remove duplicate JSDoc block on PluginController

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

* Use timeout(0) instead of setImmediate in browser-runnable tests

setImmediate is not available in WebKit, causing macOS / Browser CI
unit tests to fail.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Track redacted-ness with an explicit flag instead of inferring it from missing text. A regular thinking block with an empty text field but a valid signature (display: "omitted" or pruned) was misclassified as redacted_thinking and shipped the signature in the data field, which Anthropic rejects with "Invalid 'data' in 'redacted_thinking' block".
* Simplify SDK telemetry config

* remove unnecessary comment
…lot-proxy-to-capi

 Switch from Copilot Proxy to CAPI
* Fix Responses API reasoning id round-trip

Drop foreign thinking payloads when building Responses API reasoning input. Only genuine Responses reasoning items with rs-prefixed ids are round-tripped, preventing invalid_request_body failures for thinking_0 ids.

* Address Responses API reasoning test typing
@pull pull Bot locked and limited conversation to collaborators Jun 6, 2026
@pull pull Bot added the ⤵️ pull label Jun 6, 2026
@pull pull Bot merged commit 9497c55 into code:main Jun 6, 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.

7 participants