Skip to content

v2.0.4

Latest

Choose a tag to compare

@copilot-sdk-mirror-writer copilot-sdk-mirror-writer released this 27 Nov 13:23
· 3 commits to main since this release
  • Fixed prompt-cache diagnostics that incorrectly reported history_rewritten after a tool call or on the first request after resuming a session when the conversation history sent to the model hadn’t changed.
  • Keep repaired lazy extensions dormant after an eager startup fails.
  • Replace extension-permission-access with extension-launch; require approval before extension execution while preserving applicable reusable legacy grants.
  • Keep the selected custom agent after a reload when agent files share a display name.
  • Preserve the selected built-in agent during reload when a custom agent has the same file ID.
  • Preserve extension permission denial during reconciliation after a startup handshake fails.
  • Assisted-mode permission prompts can carry the experimental assistedApproval.userFeedbackUpload; when it is true, the runtime shares a note given as userFeedback in the answer's decision context with GitHub through its feedback upload, after asking the user's consent.
  • Add an internal cancellable cloud-startup wait while preserving caller-owned session cleanup.
  • Allow SDK tools to require exact custom-agent opt-in before model exposure.
  • Fix a session event publication deadlock that could fail workflow completion.
  • With Assisted Permissions in plan mode, the judge is told when the plan is pending so it can ask before actions that would start implementation, such as creating a branch or installing a package.
  • Assisted Permissions now treats shell commands that exit with a non-zero code as failed in both live and resumed SDK sessions, so retries aren’t denied as duplicates solely because the previous attempt ran.
  • additionalDirectories inside the same checkout no longer load the checkout root's repository hooks when trustWorkingDirectory trusts only a subdirectory of that checkout.
  • SDK reloads now honor COPILOT_MCP_TOOL_CACHE=false even when caching is explicitly requested. Live MCP tools remain available, and existing snapshots are neither used nor modified.
  • Copilot Fusion staged phases (Cascade and Critique drafts and revisions) no longer stream provisional message, reasoning or tool-call deltas to SDK sessions by default; opt in with the HYDRAFUSION_STAGED_STREAMING feature flag. Fusion Single still streams.
  • Entra identity callbacks return a stable opaque accountId and required tenantId without an ID token; tenant routing uses saved metadata, and shared callbacks preserve saved accounts across reconnect and disconnect.
  • Add maxToolTurns to cap logical model turns per local SDK request, with a request error when another turn would exceed the cap.
  • GitHub CLI credentials are reused across requests for up to 60 seconds instead of starting gh auth token for each request.
  • Updated the Node.js SDK’s Koffi runtime dependency from 3.3.7 to 3.3.8.
  • In Assisted Permissions with Autopilot, the agent may retry a denied action once after a later user message asks for it; the judge reviews the retry as usual.
  • Agent reload preserves the selected custom agent when display names match.
  • Extension reconciliation preserves denied consent and drains failed children before launch settlement.
  • Bundled CLI runtimes no longer include the CLI voice service and voice assets, which reduces SDK package size.
  • SDK hosts can configure their GitHub.com OAuth app for runtime-managed sign-in and Entra-to-GitHub EMU token exchange and renewal.
  • Local non-workflow multi-turn background sub-agents now set resumable: true on subagent.started, and after the session is resumed in a new process, tasks.sendMessage and the agent tools can continue them.
  • Agent discovery now returns the launch-mounted copy of an agent when an installed plugin defines the same ID.
  • SDK clients connected to the Copilot CLI over stdio can again pass a per-request gitHubToken to models.list, models.listTokenPriceUnits, decisions.ask, account.getQuota, and managedSettings.resolve. Requests without a token still use the CLI's active account, and an explicit token never falls back to that account.
  • Add profile-scoped persisted session name discovery with sessions.findByName.
  • Start independent Node.js session detaches together within the existing shared shutdown deadline.
  • Fixed a local session resume stall when an extension joins while an MCP OAuth reply is pending.
  • When a repository pins a model to an unavailable provider, sending a message fails instead of silently falling back to another provider.
  • Adds typed agent-name and local working-directory validation before spawn.
  • Legacy MCP discovery now honors managed settings when listing servers from marketplace plugins.
  • SDK session settings updates ignore ten more retired feature flags instead of rejecting the entire patch.
  • SDK sessions with an MCP authentication handler can now cancel a cached MCP tool call while it waits for the server to finish connecting.
  • Fixed PowerShell command hooks on Windows reporting exit code 1 instead of the hook program's real exit code, so exit code 2 now works as a warning or deny.
  • Tool initialization no longer fails solely because a session's selected model is unavailable from its selected provider.
  • Add managed extension source reporting to session.extensions.getPolicy().
  • Rust: exhaustive ExtensionManagedPolicy and SessionExtensionsGetPolicyResult literals must set managed_allowed_sources or use ..Default::default(); exhaustive patterns must add ...
  • Preserve image and document order in multimodal tool results.
  • Built-in search calls now accept stringified booleans, numbers, and JSON arrays of paths across all models, whether sent as rg or grep. Search results identify which arguments were converted.
  • Provisional stream events of staged HydraFusion phases now carry the producing turn in fusion.turnId, matching the turnId of their completed assistant.message or assistant.reasoning.
  • On Linux and macOS, authentication now cleans up child processes of a GITHUB_ASKPASS helper that is still running when it times out. Background processes started by successful helpers are left alone.
  • SDK global-state writes now use the runtime's canonical JSONC recovery.
  • With alternate providers enabled, an empty COPILOT_AGENT_MODEL is treated as unset, so the requested model or routing option is honored.
  • Go MCP configuration requests retain configDir and support additive per-request root options.
  • MCP add/remove reject another configuration root for ordinary SDK clients; configured roots and trusted CLI hosts remain supported.
  • SDK runtimes on Windows and macOS now use OneAuth 12.2.0 for Microsoft Entra authentication. SDK APIs and sign-in flows are unchanged.
  • Add experimental permissions.folderTrust.addTrusted for privately admitted CLI-backed hosts, with an explicit local configuration root before session creation.
  • Export FolderTrustAddTrustedParams and PermissionsFolderTrustAddTrustedResult from the Node.js package root.
  • Configure per-turn or shutdown-scoped session end hooks on local session creation and cold resume.
  • Preserve organization-required plugin recovery through cancellation and live-source changes on SDK-owned hosts.
  • Configure SDK-owned in-process host defaults and local resume ownership through the Rust SDK.
  • Expose JSON-RPC and ACP transports through a Rust SDK-owned runtime host.
  • Register foreground and controller-local launch callbacks on a Rust SDK-owned runtime host.
  • Rust and TypeScript: Fork provider-backed sessions and resolve filesystem callbacks before a session handle exists.
  • Hand off CLI and cloud-task conversations through the runtime host with connection-owned progress and repository confirmation.
  • Validate and import version-1 semantic conversation history through sessions.import, with confined attachments and dry runs.
  • Fixed an issue where session suspension could stall after an idle agent was canceled if its background notification was rejected.
  • Fixed Mission Control task operations and remote listings ignoring cached gateway experiment assignments and rollback.
  • All six SDKs now support onlyOverridesBuiltInTool: a custom tool replaces a same-named built-in for the executing model, or is neither advertised nor callable if no built-in matches. This option takes precedence over overridesBuiltInTool. Matching happens before tool filters, excludes MCP tools, and is reevaluated when the model changes, Fusion routes to a different model, or the session’s tools are updated.
  • Required managed plugin readiness (session.info with infoType: "managed_plugins_complete") is now ephemeral, so it no longer replays from session history on resume, and it is no longer reported for a managed policy that requires no plugins.
  • Add experimental APIs for complete skill definitions, session diagnostics, cache invalidation, and plugin previews.
  • Memory requests from telemetry-enabled cli-server SDK hosts, including the GitHub Copilot App, now receive runtime correlation IDs when available; configured headers are preserved when no caller correlation map is supplied.
  • Allow SDK hosts to configure a GitHub OAuth client ID without a secret for EMU token exchange and renewal.
  • Clarified that inputTokens already includes cacheReadTokens and cacheWriteTokens in assistant.usage events and accumulated per-model usage metrics, so adding them separately would double-count tokens. Token reporting is unchanged.
  • Fixed git commit, checkout and stash failing in sandboxed linked worktrees inside a write grant.
  • agents.discover on the runtime-only host now includes remote org and enterprise custom agents.
  • SDK sessions now start without active plugins when Copilot's config.json cannot be read or is invalid, including sessions created with filesystem.trustWorkingDirectory: "session", instead of failing session.create. trustWorkingDirectory: "user" still fails because Copilot does not rewrite the unreadable file, and plugin reloads still reject it and keep the active plugins.
  • Allow managed search recovery to retire expired idle-stop operations without losing their original receipts.
  • Start independent Python, Go, .NET, and Rust SDK session detaches together within the existing shutdown deadline.
  • Preserve the Python tool handler that initiates client shutdown while canceling other pending tools.
  • Retire Python sessions when shutdown is canceled before detach starts.
  • Preserve pending terminal event acknowledgements through session detach finalization.
  • Apply managed Browser Use denial before the initial skill catalog when configuration discovery is disabled.
  • Reduced allocations in the .NET SDK's in-process receive path.
  • Fixed an approve-for-session or approve-for-location answer for an MCP server named like a built-in permission kind (such as shell or memory) also approving that kind's requests; the approval now covers only the server's tools, including after a resume.
  • Rust: Wait for deferred native connection cleanup before Client::stop returns, and report cleanup-thread creation failures.
  • Java: permission handlers can answer URL prompts with a domain (PermissionRequestResult.approveUrlForSession / approveUrlPermanently) and read URL prompt fields through UrlPermissionPrompt.
  • Unify account inventory in accounts.list, expose supportsInference, and use accountId for account selection and logout instead of public credential selectors.
  • With sandboxing enabled on macOS and Linux, shell commands and agent file edits can read but no longer modify existing Copilot and Claude repository settings files in writable Git worktrees. Explicit read-write grants do not override this protection.
  • Fixed session.sendMessages dropping per-turn request headers when the message batch is empty.
  • Record accepted external tool completions before disconnect finishes, withholding results when post-tool hook processing is interrupted by teardown.
  • SDK callback, command, and HTTP hooks no longer prompt separately for execution consent while an MCP skill is active. Each tool call still prompts once, and declining it no longer causes unrelated hooks to fail.
  • Add a pending-permission prompt notification method while preserving legacy prompt signatures and executable ACP SDK methods.
  • Rust: Use test_support::http_handler_inputs to test an HTTP request handler without starting a runtime.
  • Rust: isolate over-deep JSON-RPC requests and responses when their envelopes remain readable, instead of closing the connection.
  • Fixed an SDK session ownership error that could occur when delayed cleanup overlapped with recreating a session with the same ID.
  • Added the optional extraCaCertificates field to the sandbox user policy network config.
  • Preserve replacement session routing when an older published facade is disposed after native shutdown.
  • Fix unfinished cleanup after a failed session destroy or last-owner disconnect.