Repository navigation
v1.0.31-preview.1
Pre-release
Pre-release
·
17 commits
to main
since this release
- Python: a failed or cancelled
CopilotClient.start()now stops the runtime process it spawned instead of leaving it running. - Preserve structured provider diagnostics in session error events and sendAndWait completion errors, including optional providerErrorCode.
- .NET: hooks, the permission handler and session event handlers no longer run under the Activity that was current when the client started or the session was created, so spans and calls made from them are no longer attributed to that finished trace. Hooks now run under the trace context the runtime sends in the hook input.
- Rust: the session event loop span is now a root span, so permission, tool, hook and other callback spans are no longer recorded under the span that was current when the session was created or resumed.
- Prevent cancelled MCP authentication catch-up requests from cancelling a valid connection.
- Add the ephemeral
session.compaction_summarizedevent, emitted when a background compaction summary settles and before it is applied. - A session that starts indexed search in a new folder while another session of the same process is still stopping its index server now waits for that server and indexes the folder, instead of falling back to ripgrep for the rest of the session.
- .NET: after a failed StartAsync, the next StartAsync or automatic start runs a new startup instead of rethrowing the first error.
- Java: after a failed start(), the next start(), or the next automatic start when auto-start is enabled, runs a new startup instead of failing with the first error.
- Permission prompt events for URL requests now include an optional
parentDomainPattern, a wildcard covering the registrable domain and its subdomains, which hosts can offer as a session-scoped approval. - Java: generated union types and session events now serialize their discriminator once instead of twice, and an unknown session event keeps its original
typewhen serialized. - Fix missing namespaces when replaying standalone deferred tool calls after switching from Claude to GPT, and provide continuation guidance for unrepaired namespace errors.
- Rust: when the bundled runtime cannot be extracted,
Client::startnow reports the directory and the I/O error instead of saying the CLI is not bundled, and the nextClient::startretries the extraction. - Adds SDK-owned session operations for feature flags, managed settings, dynamic context, permissions, model-context directories, sandbox state, working-directory context, and builtin-agent overrides.
- Preserves explicit null experiment overrides in Java SDK requests.
- Preserves stored automatic approval separately from effective policy approval in SDK responses.
- Preserves explicit host permission requirements when temporary providers detach.
- Adds explicit Go permission envelopes for lossless managed review while preserving existing public types and legacy callbacks.
session.model.switchTonow rejects an unsupportedreasoningSummary,verbosityorcontextTierwith the same error as session creation, instead of recording it and leaving the session impossible to resume.- Fixed inconsistent plugin IDs between built-in plugin hooks, agents, skills, instructions, and plugins.list.
- Added client-side programmatic tool calling support in the Copilot runtime SDK.
- Rust preserves existing event payload construction and exposes experimental program provenance through an additive metadata wrapper.
- Go programmatic events and permission callbacks expose optional ProgramToolCallID fields while retaining concrete payload/request types; positional struct literals require updating.
- Fixed managed plugin reconciliation being skipped when a completed preparation plan still had unapplied defaults.
- Python, Go: abandoning
session.featureFlags.readby timeout or cancellation now sends$/cancelRequest, so the runtime stops waiting and no longer sends the snapshot to the dropped request later. - Fix continuing a resumed session hanging on an abandoned SDK tool callback when its handler is registered again.
- session.options.update now rejects an unsupported reasoningSummary, verbosity or contextTier with the same error session.create gives, instead of storing it.
- A repository whose remote uses GitHub's SSH-over-443 host
ssh.github.comis now reported as itsgithub.comrepository in the session context andgit.reposFromRemotes. session.lsp.setnow changes onlydisabledServersin the user'slsp-config.json, and no longer erases the definitions of other servers disabled with"disabled": true.session.tasks.getProgresson a client-owned task now returns at most the 20 most recent progress messages inrecentActivity, matching agent tasks.session.lsp.diagnoseno longer reports a working stdio language server as exiting immediately when the sandbox is off.- Python, Go: the skill provider docs now say that a running provider call is cancelled when the connection closes or the client is force-stopped, instead of saying that it runs until it returns.
- Session shutdown now stops eager authentication requests once their last shared owner is released.
- Session shutdown keeps credential bindings available while final session and process consumers drain.
- MCP lifecycle requests now respect required sandbox admission while teardown remains available.
- Installing a plugin from a GitHub or git repository that uses Git LFS downloads only the LFS files under the plugin's own path, so an unavailable LFS object elsewhere in the repository no longer fails the install.
- Adds session preference updates through session.options.update.settings.
- Python: fix intermittent Windows runtime installation failures when concurrent installers initialize the same cache lock file.
- The task tool now dispatches to a custom agent added to
.github/agents/mid-session without requiring an agent reload. - Text after
/initis now sent to the model as additional instructions instead of being dropped. - Disposed SDK sessions are now cleaned up.
- The built-in
web_fetchtool no longer strips markup from, or re-decodes,application/jsonandtext/plainresponses that quote an html tag near their start. - Unavailable models selected through environment variables or saved settings now fail when used instead of silently selecting another model.
- Re-enabled and restarted local MCP servers use the session's current sandbox policy.
- The built-in
web_fetchtool rejects a negativestart_indexand amax_lengthbelow 1 with a validation error instead of reading them from the end of the page. - Sessions whose session.shutdown record holds a non-integer code-change line count, as some earlier CLI versions wrote, can be resumed again.
- MCP list, listTools, OAuth login and OAuth state-change requests now respect required sandbox admission, and Apps diagnose no longer starts servers on a blocked session.
- Local-model servers with
persist: trueare recorded and reused across runs when the runtime is launched withoutHOMEorCOPILOT_HOME. listModels()before a session is created now recovers from421 Misdirected Requestafter a plan change by re-resolving the account's endpoint once, instead of failing until a session is created.- Staff settings are written to the account's
~/.copilot/config.jsoninstead of the working directory when the runtime is launched withoutHOMEorCOPILOT_HOME. - Go:
Stop()andForceStop()on a client connected withURIConnectionno longer print "use of closed network connection" errors. - Invalid
contextvalues passed tosession.metadata.recordContextChangeand invalidtypevalues passed tosession.shutdownare now rejected with an error instead of making the session impossible to resume. - Fix a native crash when cancelling client-side JavaScript programs during compilation.
- Resuming a stored session now reports a customAgents entry that a built-in agent shadows in session.custom_agents_updated, as create and resume of an open session already did.
- .NET: Reduce JSON-RPC receive-buffer copying for coalesced messages.
- A
sessionStartorpreToolUsefile hook that returns"additionalContext": nullno longer sends the textnullto the model;nullis treated as absent. session.agent.listno longer fails with "Agent discovery inputs were superseded" when the agent catalog is invalidated concurrently.- Release consumed callback buffers in the .NET, Java, and Go in-process transports instead of retaining them while idle.
- Model information now reports the resolved Copilot Fusion tier.
client.getAuthStatus()now includesloginfor a client signed in with thegitHubTokenoption, as it already did forGH_TOKEN.- After continuing from the session limit prompt, the session no longer records a stale "Session limit reached" notice.
- Fixed the experimental
network.resolveProxycallback not being asked for a session's remote MCP servers when it is registered with the defaultconnectionscope. - On Linux, a burst of file writes in a large workspace no longer costs seconds of CPU while a language server watches files.
- Workflow resume now reports a limit that does not raise the approved one with a message naming the value it must exceed, instead of the out-of-range message.
- Rust: Stop sending frames after a stream write failure while continuing to drain pending responses.
- On Linux, language servers are now told about files created in a workspace directory that was deleted and recreated in one quick step, such as a build regenerating its output directories.
- Fixed session rewind to report session-busy when a turn is running.
- Fixed MCP OAuth for servers whose 401 names the protected-resource metadata with a relative resource_metadata path.
- Session events: each
assistant.messageof a model response split at a reasoning boundary now carrieschunkIndexandchunkCount, so clients can group the parts and find the last one. - Go: concurrent installs of the bundled CLI no longer replace a CLI another process already started when the install lock cannot be acquired.
- A device Policy Helper's policy is applied again when a session without a GitHub sign-in is resumed, so repository hooks it locks no longer run.
- The runtime now asks a session's
gitHubTokenProviderfor a refresh before each model call once the token has an hour or less left, not only at the start of a user message. - Update Node.js SDK Koffi and refresh compatible Rust SDK dependencies.
- Fixed standalone host reporting rejected SDK tokens as missing tokens.
- Fixed failures in MCP startup and session.send caused by slow configuration writes.
- Fixed shared SDK commands becoming unavailable to the remaining client when the owner leaves.
- Java: in-process clients that start at the same time on a cold runtime cache now extract the native runtime once instead of once per client.
- .NET: SendAndWaitAsync no longer throws when the CLI exits right after completing a turn while an event handler is still running.
- Fixed:
session.agent.reloadno longer fails with "Agent discovery inputs were superseded" when another change refreshes the agent catalog during the reload; it reloads again and returns the current catalog. - Fix plugin subagent dispatch after custom-agent catalog invalidation.
- Rust: clients that start at the same time with the same
bundled_cli_extract_dirnow extract the bundled runtime once instead of once per client, and no longer install a second copy in a version subdirectory. - Fixed: indexed search now deletes cached per-repository indexes of repositories and worktrees that no longer exist, including indexes written before 1.0.108.
- Fixed: with a custom session filesystem and the sandbox enabled, an attachment path that matched only a host-derived grant such as the runtime's temp directory is now denied, matching the file tools.
- Sessionless agents, skills, hooks and instructions discovery now include plugins installed from a local directory marketplace.
- Added built-in subagent allowlist configuration to create and resume sessions in all SDKs, including disabling built-ins while retaining custom agents.
- The sandbox bypass decision event now reports
prompt_unavailable, notuser_prompted, when a host rejects the bypass prompt with an automateddecisionContext.sourcesuch ashost_policy. - Fixed mcp.oauth_required carrying grantType authorization_code for a client supplied to mcp.oauth.login; grantType is now present only for client_credentials, as the event schema declares.
- Improved runtime reliability by recovering permission prompts after a host-acknowledgement timeout.
- Resuming a session during a HydraFusion turn with the same GitHub token no longer makes the turn's remaining review and repair phases fail instantly.
- Custom agents loaded from agent files or plugins without a tools list are now reported with the documented all-tools encoding (null tools in session.custom_agents_updated, no tools in AgentInfo) instead of the list ["*"].
- Add connection-owned local model management through the SDK.
- Skills and custom agents that an AHP host session gets from a plugin are now reported with source plugin, so the Python and Java SDKs can decode session.skills_loaded, skills.list and agent.list for those sessions.
- Approving a plan written by HydraFusion, or switching models during a HydraFusion turn, now keeps the turn's first answer instead of failing its review and repair phases instantly.
- session.mcp.listTools returns the declared McpTools shape again, with ui populated from a tool's MCP Apps metadata and without the raw tools/list fields.
- The session.usage_info event's isInitial field is now true only for a session's first usage report, as documented, instead of for the first model request of every message.
- External tool definitions accept an optional
idempotenthint so the runtime can safely re-run a programmatic tool call whose outcome was lost;ProtocolExternalToolDefinitiongains the field (source break for Go positional and exhaustive Rust literals). - session.tools.getCurrentMetadata entries now match CurrentToolMetadata: they no longer carry an undeclared title, and a tool registered without a description reports an empty description instead of omitting the required field.
- session.permissions.modifyRules now rejects a scope other than "session" or "location" with an error, instead of reporting success without removing the requested rules.
- Corrected the session.context_cleared event documentation, which named a Session.clearContextMessages method that no longer exists and omitted that the runtime also emits the event when it starts a fresh context window.
- session.workspaces.truncateSummaries now rejects a missing, negative or non-integer keepCount instead of deleting every compaction checkpoint; an explicit 0 still deletes all of them.
- Token providers: a lifetime rejection after token validation now reports the
expiresInthe provider returned and what remained, without aGenericFailure,prefix, and the docs state that more than one hour must remain after the runtime validates the token. - Assisted Permissions grants (
authenticatedAuthority) accept optionaluserMessages, the user's own messages from another session, which the judge reads as the user's messages;statementsmay be empty when they are present. A session started by another agent's message gets its task only from such a grant. - Reduce .NET SDK JSON-RPC allocations and session-history conversion overhead while preserving existing behavior.
- Reduce Rust SDK allocations for large typed RPC responses by deserializing directly from response frames.
- Support typed TelemetryConfig for independently owned in-process clients across all six SDKs.
- Fix Rust-host extension consent and reconciliation, explicit cache flags, elicitation validation, and turn admission after disconnect.
- Permission prompt requests can carry
assistedApproval.approvalRequiredCommandSegments, the shell command segments an Assisted Permissions denial named as needing approval (experimental). - Fixed a bug where
resumeSessioncould restore a BYOK model that had been withdrawn by the provider or deselected during sync. - availableTools and excludedTools now compose by default; SDK create/resume no longer sends toolFilterPrecedence, while explicit options.update precedence remains supported.
- Fixed an issue where an invalid MCP server configuration caused every send to hang.
- Resuming a saved session on the standalone runtime host now returns before its extensions start, so an extension's startup consent prompt reaches the client.
- Prevent further descendant inference after factory cancellation while preserving child transcript cancellation boundaries without extra user-interruption reports.
- Fixed
session.compaction_completefor a compaction that blocks the turn sometimes arriving after that turn'ssession.idle. - An MCP server that throttles its first connection now reconnects automatically once the server lifts the block, instead of staying failed for the rest of the session.
session.permissions.resetSessionApprovalsandsession.permissions.configure({ urls })now actually revoke URLs the user approved for the session; URLs from configuration or persisted settings are unaffected.- Added per-server reporting of MCP tool-definition token costs in the SDK.
- Preserve prepared session tools when unchanged session-management settings are reapplied.
- Sandbox allowedHosts and blockedHosts support strict IPv4/IPv6 CIDRs and resolved-address enforcement with deny precedence.
createSessionnow rejectsreasoningEffort: "none"for models that don't support it instead of creating a session whose turns all fail.- Prevent duplicate cancellation notices when a new prompt follows an abort.
- Sandboxed shells honor explicitly configured GH_TOKEN masking instead of replacing the token with automatic gh authentication.
- Add an automation message source (
automation-followed by an automation ID) for turns a host sends on behalf of a user-configured automation; such a turn defines the session's task without carrying human authority. - Limit incoming LLM HTTP responses and WebSocket messages to 128 MiB by default, configurable with COPILOT_LLM_RESPONSE_MAX_BYTES, including SDK callback ingress.
- .NET: Incoming messages nested deeper than 64 levels, such as a tool call with deeply nested arguments, are no longer dropped, which had left the tool unrun and
SendAndWaitAsyncwaiting. - Session history kept for enableSessionStore no longer loses a turn when two clients work on the same session one after the other.
- Add experimental server-level offline trajectory analytics with ATIF input, request-local judge configuration, validation, classifier selection, bounded concurrency, exact retries, and structured rate-limit failures.
- Go: A request handler no longer keeps memory for each response the runtime cancels after the handler has finished it, such as a response rejected for exceeding the response size limit.
- Runtime now lazily activates opted-in native extensions, reducing upfront activation work until those extensions are needed.