Skip to content

v2.0.3

Latest

Choose a tag to compare

@copilot-sdk-mirror-writer copilot-sdk-mirror-writer released this 25 Nov 17:20
· 2 commits to main since this release
  • In the feature snapshot rollout, opted-in GitHub telemetry forwarding can reference the event that carries a full feature flag snapshot. Non-flag metadata stays inline.
  • Sessions retry less often when a repository’s search index is short on storage, reducing background work. Search continues with ripgrep; indexed search may take up to about eight minutes to resume after space frees up.
  • An empty managed sandbox allowedHosts list no longer blocks all hosts, even if the previous opt-in was enabled. Default behavior is unchanged: other network restrictions still apply, and non-empty allowlists with no hosts in common still block all hosts.
  • Workspace diffs now match Git when an untracked file has group or other execute permission but no owner execute permission.
  • Added server APIs to grant, list, and revoke persistent plugin extension capability approvals.
  • Extensions in CLI-hosted SDK sessions now write process logs to the directory selected by --log-dir. Without the flag, extension logs stay in the session profile. On Unix, redirected extension logs are owner-only.
  • Add optional primaryReasoningEffort to session.fusion_resolved events (experimental).
  • Fixed an intermittent authentication error that could prevent saved history from exporting after a legacy session was resumed, even when credentials hadn’t changed.
  • SDK workspace config discovery now loads MCP servers from .mcp.json and .github/mcp.json files with comments or trailing commas. Commented-out servers stay disabled, and malformed files report clearer syntax errors.
  • Invoking /init suppress now preserves init suppressions written by other sessions that share the same profile.
  • Keep plugin inventory reads valid when catalog hydration adds provenance for unchanged credentials.
  • Fixed workspace diffs incorrectly reporting a small file or symlink as too large when it replaces a directory with many tracked files.
  • Fix a standalone runtime panic when TCP startup cannot write its port announcement.
  • Fixed a race that could leave SDK sessions using stale provider information after a plugin reload.
  • On Windows, SDK sessions with idle stdio MCP servers use fewer host threads, leaving more capacity for other work.
  • Model request retries now cancel pending askpass credential lookups when the retry deadline expires.
  • Support optional image answers for legacy and structured built-in ask_user when advertised by the runtime; structured images use a private per-field metadata sidecar.
  • Go/Rust interaction event structs gain optional image metadata; keyed Go literals and updated Rust exhaustive literals may be required. Existing Java text-only constructors, Python positional event arguments and Rust elicitation handlers/result literals are preserved.
  • Add MCP-specific operations to save and remove legacy configuration credentials in the runtime-owned secret store.
  • Preserve plugin operations when managed policy republishes equivalent JSON objects.
  • Extension reload diagnostics distinguish explicit reload startup admission from background reconciliation.
  • Skill load events include optional errors and warnings from the published catalog.
  • Rust breaking change: SessionSkillsLoadedData adds optional errors and warnings. Add ..Default::default() to existing struct literals and .. to exhaustive patterns, or name both fields explicitly. None preserves wire omission.
  • Go breaking change: SessionSkillsLoadedData adds optional Errors and Warnings fields. Replace unkeyed literals with keyed literals such as rpc.SessionSkillsLoadedData{Skills: skills}; omitted diagnostics remain absent from JSON.
  • Fixed Fusion history compaction in SDK sessions to preserve the source phase's reasoning effort when routing to a model with a smaller context window, enabling better prompt cache reuse.
  • The Rust SDK reports a missing persisted session as SessionErrorKind::NotFound when deleting it.
  • session.mcp_servers_loaded now reports pluginName and pluginVersion for plugin-provided MCP servers.
  • On Windows, the SDK runtime is expected to retain less native memory when many worker threads are active.
  • Extension preferences use binary enablement; legacy-only Load Only preferences migrate to disabled, and compatibility mode readouts no longer return load_only.
  • SDK event handlers receive Copilot Fusion model_output phase-activity updates at most every 250ms per phase, instead of once per streamed chunk. Phase transitions and the final output are unchanged.
  • Plan approval no longer offers fleet; start it explicitly with session.fleet.start.
  • SDK sessions now apply mid-conversation instruction changes, such as mode switches, in the next model request’s system prompt rather than appending them to the conversation.
  • New session events no longer populate instructionUpdateDeliveryId, instructionUpdateLatestEventId, or postInitial. Java SDK event record constructors are unchanged, and older session history remains readable.
  • SDK logging no longer waits for telemetry redaction after successful model calls. Telemetry and secret redaction output are unchanged.
  • Avoid incidental PowerShell probe processes during in-process SDK startup and session preparation when the native shell is excluded or replaced.
  • Use conservative syntax guidance for SDK- or MCP-provided PowerShell tools instead of recommending host-derived PowerShell 7 && chaining.
  • Added an opt-in host policy pre-check callback for eligible permission requests.
  • On Unix, canceled foreground shell commands can now finish graceful cleanup even if they write to stdout or stderr. Output written after shutdown begins is still discarded.
  • Fix a race when reading a newly initialized dynamic context board after forking a session.
  • Replace the JavaScript engine used for proxy auto-configuration and local programmatic tool calling with a capability-limited Rust interpreter supporting cooperative cancellation and resource budgets.
  • When the experiment is enabled, HydraFusion Critique and Cascade turns no longer wait for unfinished background context compaction at phase end, so responses can arrive sooner. The default behavior is unchanged.
  • Added a per-server deferTools option ("auto" or "never") to MCP server configs in all SDKs, so an MCP server's tools can be kept out of tool-search deferral.
  • Shared-index collection makes bounded progress while metadata housekeeping is incomplete, and workflow schema initialization uses fewer durable commits.
  • ACP clients can discover context tiers through configOptions and change contextTier with session/set_config_option on eligible models. Selections persist across session loads without changing saved defaults; changes during active turns are queued and published through config_option_update when applied.
  • ACP rejects unsupported context tiers and context-size reductions requiring compaction without changing the selected tier.
  • ACP session creation and resume now enforce managed model defaults, rejecting conflicting reasoning-effort and context-tier edits for the policy's model.
  • Closing an SDK session now shuts down its running language servers and clears cached language server configuration, even if no server was started. Resuming the session loads the current configuration.
  • Forked sessions now manage language servers independently, so closing a fork no longer affects the parent session’s language servers.
  • When enterprise usage telemetry is enabled, the SDK no longer sends events that carry only routine context. Standard and restricted telemetry are unchanged.
  • Session compaction now preserves the current reasoning effort when an older setting would prevent reuse of the cached conversation.
  • Built-in searches preserve full filenames and line numbers when compacting numbered matches from files with numeric suffixes.
  • Fixed a Windows issue where an unrelated protected process could cause SDK extension shutdown to fail with an access-denied error.
  • Fixed sandboxed extensions on Windows hosted by GUI executables running as Node, such as VS Code’s Electron, disconnecting during startup, preventing canvases and actions from working.
  • Fixed extension exit detection and sandbox cleanup on Windows when an extension launched as Electron in Node mode leaves helper processes running.
  • Add fixed session-scoped extensionSources controls for personal, project, and plugin extension contributions.
  • Resume bounded indexed-search cache collection across maintenance visits without restarting completed recovery.
  • Support COPILOT_CLI_POLICY_HELPER_FAILURE_MODE as a fallback when device and server managed policy omit the setting.
  • A Rust panic in the bundled in-process runtime now terminates the host application. Use a spawned runtime when your application needs crash isolation.
  • Reduce managed indexed-search offline maintenance and polling contention under load.
  • SDK sessions now emit a deduplicated session.warning with warningType: "extension_declaration" for invalid extension declarations. Affected extensions still activate eagerly.
  • Lazy extensions can still register undeclared tools, canvases, and commands. These registrations now produce one runtime log warning per activation, not a session event.
  • Assisted Permissions judges a session approval again after the user's next message, removes it when the user then rejects the request, and emits a session.info event with infoType permission_session_grant_revoked when it does.
  • Fixed duplicate plugin extensions launching in SDK sessions when installed from multiple sources, preventing registration conflicts and incorrect failure status. Discovery and sessions now run one copy per extension ID: the first active copy, falling back to the next copy if it fails to start.
  • Copilot SDK runtime now allows selecting the model before the first conversation turn.
  • Added optional reviewSkippedReason to session.fusion_completed events and optional readOnly to assistant.fusion_phase_completed events.
  • Allow sandboxed Swift tools to write to the compiler module cache and SwiftPM shared cache on macOS and Linux when developer-tool access is enabled.
  • Add a build-time JSON Schema for extension manifests
  • Native tool handlers can report progress while they run with an experimental reportProgress method on the tool invocation, emitted as tool.execution_progress.
  • Fixed conversation prefix stability when SDK sessions leave and re-enter Assisted Permissions on the Responses API with stable prompt prefixes enabled; permission enforcement still follows the current mode.
  • Session events copied from a sub-agent into its parent carry an optional occurredAt with the time the event happened; timestamp remains when the parent recorded it.
  • On Windows, PowerShell commands with digits in parameter names (such as -n1 or -ExpectedSha256) once again honor matching allow rules and qualify for command-level and session approval instead of requiring full-script review solely because of the digits.
  • Report failed extension startup promptly when its connection closes before the process exits.
  • The .NET 10 SDK now requires Microsoft.Extensions.AI.Abstractions 11.0.0 or later; update any lower direct or centrally managed reference alongside the SDK to avoid NU1605. The netstandard2.0 dependency remains 10.11.0.
  • Expose complete command catalog metadata and the shared consolidation prompt, with legacy Python, Rust, Go, and Java construction compatibility.
  • Fixed declarative HTTP hooks failing to send requests when TERM_PROGRAM contains characters that are invalid in HTTP headers. The default User-Agent now uses term/unknown in this case, so preToolUse hooks no longer block tool calls solely because of an invalid terminal name.
  • All six SDKs let session owners supply trusted standalone entry modules through extensionPaths. Relative paths resolve once against the request's working directory. Owning resume replaces the list; omission or an empty list clears it. Extension enablement, permissions, sandboxing, and global standalone prohibition still apply; marketplace and plugin enablement settings do not govern explicit entries.
  • Selected standalone extensions always report explicit provenance and stable path-derived IDs. Discovered entries and filesystem aliases are unsupported input.
  • Exact overlaps with current discovery fail independently and remain rejected across reconciliation. Managing a rejected explicit row does not disable the ordinary extension.
  • agents.discover now lists agents from plugins mounted at launch (--plugin-dir, pluginDirectories) and from active built-ins, without their MCP server or hook configuration
  • Conversation-and-files rewinds report paths skipped because a turn exceeded the file capture cap.
  • SDK session settings updates ignore the retired PROMPT_FRAME flag instead of rejecting the entire patch.