You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workspace diff requests now return an error when Git cannot read a file’s patch, instead of returning an empty or partial diff. Patches that exceed size limits are still truncated.
Fixed a race that could leave partial session history on disk when shutdown interrupts an import.
Prune stale reasoning retained after compaction on prefix-bound Claude and GPT models while preserving assistant text, tool history and fresh reasoning.
Fixed duplicate events in resumed SDK sessions that use local storage when a save is retried after the disk fills up.
Idle sessions with neither Copilot nor a default provider can reselect a provider model after the host withdraws and registers it again.
Streaming and non-streaming model requests now fail immediately with a configuration error that explains why the model base URL is invalid, instead of retrying it as a server error.
Fusion Cascade and Critique now publish successful task completion after coordinator steering in new and resumed sessions.
Fixed an issue where the built-in edit, str_replace, and apply_patch tools could overwrite non-UTF-8 bytes in unchanged context or at the edges of edited text.
SDK sessions no longer reject deeply nested instruction sources during initialization.
SDK sessions without an errorOccurred hook no longer capture native stack traces for model errors, avoiding potentially expensive work on Windows. Configured callbacks still receive a supplied nonempty stack trace or a native stack trace when available.
Preparing turns with image attachments uses less CPU and memory without changing attachment behavior.
Copilot Fusion review, revision and repair phases now also receive the text of the assistant message that asked an ask_user question, alongside the question and the recorded answer.
When no managed plugins are active, an unrelated MCP server initializing no longer blocks installation of plugins required by a later policy update. Automatic reconciliation of an unchanged empty plugin set no longer refreshes or retries unrelated MCP servers; explicit reloads are unchanged.
A session that stops with an active schedule before its first message is now saved, so resuming it restores the schedule.
Clearing a session's queue now cancels a message that is still waiting for extension startup right away, instead of failing it once startup finishes.
The Rust SDK uses less memory when processing streamed responses, with no change to the API or response handling.
Fixed a race where aborting a relay session turn as the host completed it could emit duplicate assistant.turn_end and session.idle events.
SDK sessions using supported OpenAI and Anthropic models now receive runtime instruction updates in context, without rewriting the existing prompt prefix. Trusted sandbox, permission, and security-reporting reminders are delivered as instructions rather than user messages on supported routes.
The SDK’s SupportedModel type now includes Claude Mythos 5, 5.1, and 5.2. These models are not selected automatically.
GPT-6.1 Sol Fast and GPT-6.2 Sol Fast now support mid-conversation reasoning and tool updates on supported routes, without becoming automatic defaults.
Model call failure events now include requestFingerprint for MCP sampling requests that fail with an HTTP 4xx response.
Disabling an extension with an alternate spelling of the saved disabled-extensions setting now works when an SDK session loads user settings.
Reattaching to a live bring-your-own-key (BYOK) session with unchanged provider settings now preserves discovered models and the selected model’s routing without refetching the model list. Changes to provider settings still trigger a refresh.
Fixed an issue where context truncation or compaction could keep a later message that repeated the active prompt instead of preserving the prompt itself.
Fix a macOS Entra sign-in stall in the spawned Copilot runtime.
SDK sessions with telemetry disabled now skip collecting model-message diagnostics, reducing per-call overhead without changing model requests or SDK configuration.
Improved o200k_base token counting performance without changing token counts.
ACP clients now receive session control updates after the session/new or session/load response, so the current mode is reported before the controls arrive. Transcript replay still precedes the session/load response.
With Assisted Permissions enabled, SDK requests that match an explicit enterprise permissions.ask rule or require approval because the managed policy contains unrecognized settings now need human approval. These prompts no longer include an assistedApproval recommendation, and requests are not approved if no person is available. Default approval requests remain eligible for Assisted Permissions.
SDK sessions using Assisted Permissions with GPT-6 Luna or Claude Haiku 5.5 as the permission judge can now auto-approve eligible local Git commits that contain only changes made by the session’s built-in file tools. Commits that include unrelated staged work follow the existing approval process, and user restrictions still apply.
Disposing a connection while waiting for a project to be ready now cancels the wait without reporting a provisioning failure.
Restored plugin hooks and startup prompts in untrusted SDK sessions for plugins located outside both the repository and the working directory. Repository hooks and workspace-local plugin hooks and startup prompts still require trust.
SDK plugin listings outside Git repositories no longer wait for GitHub Team assignments when no marketplaces are configured and the plugin inventory is empty or contains only direct installs. Listing results are unchanged.
In manual mode, read-only shell commands now reach the permission handler marked readOnly: true instead of running without a request; approve shell requests (kind === "shell") marked readOnly: true or set approveAllReadPermissionRequests to keep the previous behavior. Do not approve on readOnly alone: MCP requests carry their own tool-supplied readOnly.
Rust and Go: PermissionRequestShell and PermissionPromptRequestCommands gain an optional read-only field (read_only / ReadOnly); Rust struct literals need read_only: None or ..Default::default() and exhaustive patterns need .., and Go positional struct literals must switch to keyed fields.
Fixed a memory leak when creating and closing many sessions in a long-lived SDK host.
When agents.createFile fails to write a user or project agent, it still returns the original error but now cleans up the incomplete file so you can retry with the same name.
Fixed an issue where SDK sessions could fail to load repository hooks when switching from a session-only trusted folder to a newly or previously saved trusted folder. Hooks remain disabled in untrusted folders.
MCP servers now receive Invalid params (-32602) instead of Method not found (-32601) for elicitation/create requests with missing parameters or invalid form schemas, such as those containing nested objects or arrays of objects.
Plugin MCP servers now reload when configuration discovery is disabled.
Repository indexing does less background polling while waiting to retry and can finish cleaning up large index cache files on Windows and Linux.
Fixed a settings.json loading bug that ignored valid snake_case and UPPER_CASE keys in subagent, workflow, and built-in agent settings. Canonical keys still take precedence.
The SDK now attempts to cancel deferred MCP tasks when it reaches its wait limit or encounters a non-retryable polling error, without waiting for cancellation to finish.
Deferred MCP task timeout errors now report how long the SDK was willing to wait, without implying the server task failed. The 10-minute maximum is unchanged.
Add session.providers.models.listDiscovered to list discovered BYOK selection IDs in registry order without explicit configured models or additional catalog requests.
Chat Completions now passes opaque reasoning back to the same provider on follow-up requests, even when the previous assistant reply contained no text or tool calls.
Session history truncation makes fewer filesystem calls when there’s no workspace metadata, without changing which history is retained.
Context token counting now uses provider-reported usage by default, including persisted output usage across session resume.
Computer use on macOS and Windows now supports formatted paste, follows the active keyboard layout, and handles stale control IDs more reliably.
Computer use on macOS can now inspect application menu bars and more reliably interact with background windows and pop-up menus.
Computer use on Windows captures covered Chromium windows more reliably and no longer reports failed clicks as successful.
Fixed Assisted permissions for bring-your-own-key sessions with CAPI disabled and inference.defaultProvider set. The judge now defaults to the session’s selected model even when it isn’t listed in inference.models. An explicitly configured judge model still takes priority.
user.settings.loadRepo accepts an optional host context (home directory and environment).
Preserve OpenAI Responses custom tool call status when resending history, including after WebSocket reconnects.
Fixed an issue where a failed background agent could leave its parent SDK session idle indefinitely. The parent now receives a failure notification and resumes without another user message, even if the agent fails during startup.
GPT-6.2 compaction disables tool calls again while retaining prompt cache reuse on supported provider routes.
Session compaction can use a model on another registered inference provider without changing the session model.
session.metadata.snapshot reports workspace trust, config discovery, and third-party MCP policy.
For Mission Control sessions, session.ui.handlePendingElicitation, handlePendingUserInput and handlePendingExitPlanMode answers labeled as an interactive human response now keep human authority when the session's host or owner sends them, so hosts no longer need handleHuman* for those answers.
Workflow run permission requests and prompt requests now carry an optional args with the validated arguments supplied to the run, omitted when the run was called without arguments.
Rust and Go: PermissionRequestWorkflow and PermissionPromptRequestWorkflow gain an optional args field (args / Args); Rust struct literals need args: None or ..Default::default() and exhaustive patterns need .., and Go positional struct literals must switch to keyed fields.
SDK sessions using a SessionFs provider now create temporary storage only when tool output first needs to be saved to a file, rather than at session creation. If the provider cannot create the directory, regular tools return their full output inline, while the affected search call fails.
Java local builds now use 0.0.0-SNAPSHOT instead of an obsolete release-line placeholder.
Saved ask_user answers using Chat Completions now include their images in persisted history pages.
Expose effective blanket tool approval in session permission status.
Restore automatic tools hidden from the main agent when a promptless subagent is defined without a tool list.
SDK sessions no longer wait at disconnect for plugin maintenance that cannot run, including sessions that use a custom filesystem provider. Plugin update and reload eligibility are unchanged.
Sessions can now be created on a model that a configured provider lists itself when offline or when the host fetches managed settings, instead of failing during managed policy preparation.
The initial session.extensions_loaded from extension startup during session.create is now always delivered after the create response.
Fixed Bash commands that start with cd into the working directory and then read ~-, a nested or quoted cd -, $_ or the environment: they now see the values that cd sets instead of the previous directory the process inherited. With macOS's /bin/bash, or any Bash before 4.4, only $_ is fixed, and on macOS not for detached commands.
When large shell output is saved to a session filesystem provider, the SDK now requests owner-only read and write permissions instead of relying on the provider’s defaults.
Verified built-in plugin extensions already loaded by an SDK session now launch without an approval prompt or permission callback. Explicit deny rules still apply, and non-built-in copies with the same name still follow the usual approval flow. Hosts that want to approve these launches themselves can pass requireLaunchApproval: true to plugins.builtin.set.
Session errors now include stable errorCode values for empty turns (empty_turn) and static-context budget blocks (static_context_blocked).
Add optional changed response field to PluginUpdateResult and PluginUpdateAllEntry (plugins.update, plugins.updateAll, and session.plugins.update)
When experimental WebSocket compaction is enabled, conversation compaction can reuse more cached context when tool calls are disabled, even if the session’s tool list has changed.
Add an experimental session method to read third-party MCP policy.
Session metadata snapshots now include an optional executionWorkingDirectory field to distinguish where tools run from the project directory reported by workingDirectory. Older runtimes omit the field.
Enable sessionDirectoryTool (off by default) to let agents in local SDK sessions run file, shell, search, and language-server tools in another existing directory without reloading project configuration. The execution directory is restored when resuming in the same project and can be reset with metadata.setWorkingDirectory.
Approving a move into a trusted directory outside the allowed folders (a worktree of the project's repository, or a folder covered by the trusted folders) grants read and write access to the destination's working tree for the session. A session-wide approval of the tool is not kept, so each such move asks. Other destinations follow the usual path permission rules.