Repository navigation
v2.0.5-preview.0
Pre-release
Pre-release
·
2 commits
to main
since this release
- SDK sessions skip automatic LSP configuration discovery when tool filters hide
lspand all agent-management tools. A tool metadata read picks up newly enabled tools when idle and returns the last published catalog during initialization. Explicit LSP requests remain available while the tools are hidden. - Prevent a closed child input pipe from terminating Unix in-process SDK hosts.
user.settings.diagnoseProblemsaccepts optionalallowLocalhostHooksandallowHttpAuthHooksflags that can only narrow the server's hook relaxations.user.settings.diagnoseProblemsnow omitsrawKeyinstead of returningnullwhen a problem has no associated settings key, such as a malformed settings file.- Session usage no longer counts the same committed Fusion compaction receipt twice.
- Fixed “session not found” errors during SDK disconnect or client shutdown by keeping completed subagent sessions available until their last attachment is released.
- Session detach retains final completion events until finalization finishes and then releases the session ID.
- Fix disconnecting from completed subagents without disrupting parent sessions.
- Logging out without specifying an account now keeps the SDK session signed out instead of silently signing it back in with available credentials. Explicit login and account switching still work, and logout for a specific account can still rediscover credentials.
- Session event polling is faster in long sessions with duplicate event IDs when the cursor points to a unique event ID. Cursors still resume from the same position.
- Fixed remote custom agent prompt loading to use the GitHub token supplied by the SDK for the session.
- Extensions joining their owning session are no longer treated as unstarted while waiting for runtime admission.
- Honor a single model preference already supplied by an organization custom agent, using existing model availability checks.
- Allow indexed-search collection to release storage for queued repositories during incomplete recovery.
- Avoid native trust initialization for empty telemetry queues in embedded hosts.
- With the stable prompt prefix experiment enabled, SDK model requests place state notes before first-turn memories, retain the latest note of each kind, unchanged and in order, before the compaction summary, and place a prompt-cache breakpoint after those leading notes on Anthropic and Responses requests. Sessions outside the experiment keep their existing ordering and breakpoints.
- assistant.usage omits cacheReadTokens for a Responses or Chat Completions model call whose provider did not report cache reads, instead of reporting 0.
- With the stable prompt prefix experiment enabled, specialized subagents keep their initial working-directory listing across follow-ups, so new files don’t invalidate the cached prompt prefix. Subagents can still use their file tools to see current contents.
- Python: Prevent a duplicate custom-tool request from running its handler again while the first reply is in flight.
- Git remote discovery now preserves URLs containing spaces and recognizes fetch URLs in partial clones.
- Marketplace Git authentication no longer opens a console window on Windows.
- Skill discovery now disables Git terminal prompts and applies stricter Git security settings when checking symlinks.
- Sandboxed commands and file tools now enforce read-only protection for the working directory’s Git configuration and hooks when covered by
readwritePaths, even ifaddCurrentWorkingDirectoryis disabled. - Session events:
user.messageandsystem.notificationcan carry an optionalresponsesTextFormatrecording the output format in effect before that message, so a schema change on a Responses model replays correctly after resume. - Session resume can now continue if the session is removed from memory while the SDK waits to check its plugin inventory.
- Fixed an issue where an outdated notification could make the SDK report Auto mode recovery as disabled after a successful resume with recovery enabled. Later changes to recovery availability are still reported.
- With OpenTelemetry tool definition capture enabled, read
gen_ai.tool.definitionson per-requestchatspans, including subagent calls, instead ofinvoke_agentspans. The attribute no longer falls back to the session tool catalog: it records[]for observed requests with no tools and is omitted when request tools are unknown. - Fixed OpenAI Responses requests failing when MCP tool input or output schemas set
anyOf,oneOf, orallOftonull. These entries are ignored without changing the schemas shown in the SDK tool catalog.