Skip to content

v2.0.2-preview.5

Pre-release
Pre-release

Choose a tag to compare

@copilot-sdk-bot copilot-sdk-bot released this 21 Nov 21:15
· 24 commits to main since this release
  • Reduce session.shell.exec launch overhead on supported Unix systems.
  • Sandboxed extension providers can read linked sources and write to permitted extension folders while explicit filesystem restrictions and managed-policy changes remain enforced.
  • Adds experimental semantic session and memory import APIs.
  • Fixed MCP installation preparation for SDK sessions that supply an explicit GitHub token without a token provider.
  • OpenTelemetry spans for MCP tool calls now report received RPC errors under rpc.status_code instead of rpc.response.status_code. Update queries that use the old key.
  • OpenTelemetry ahp.turn spans now report cached input tokens under gen_ai.usage.cache_read.input_tokens instead of gen_ai.usage.cache_read_tokens. Update queries that use the old key.
  • Background model.* events and model telemetry for compaction, session limits, and first tool calls still reach live SDK subscribers but are no longer saved in session history. Existing history is unchanged.
  • Fixed an issue where an authenticated SDK client could receive a policy error when listing MCP installations after reconnecting, especially with telemetry disabled. Closing the original client with an installation confirmation pending still cancels the installation, so it does not appear in the list.
  • Session resume uses bounded reads for storage providers that support ranged reads, reducing memory pressure and avoiding whole-file transport limits for large session histories. Providers without range support and sessions that need recovery still use whole-file reads.
  • Rust: A request no longer waits forever when the stdio runtime exits while a process it started keeps the runtime's output open: it fails about a second after the exit, and later requests fail at once.
  • Required plugin installs and updates can proceed on the next preparation when a policy change blocks an attempt and the original policy is restored, without triggering a failure pause.
  • When a policy change interrupts an explicit managed plugin retry, the retry can report completed installs and updates while marking unfinished plugins as deferred.
  • Reduce .NET SDK response allocations, especially for SessionFs binary and range reads.