Skip to content

v1.0.17

Latest

Choose a tag to compare

@copilot-cli-release-app copilot-cli-release-app released this 07 Oct 14:22
· 1 commit to main since this release

Feature: replace session tools mid-session (experimental)

A live session's client-supplied tools and handlers can now be replaced in a single call without recreating the session. Built-in, MCP, and plugin tools are unaffected; pass an empty list to remove all of this client's tools. (ef04633)

  • TypeScript: await session.setTools([tool])
  • C#: await session.SetToolsAsync(tools)
  • Python: await session.set_tools([tool])
  • Go: session.SetTools(ctx, tools)
  • Java: session.setTools(tools).get()
  • Rust: session.set_tools([tool]).await?

Feature: sub-agent lifecycle hooks

Register OnSubagentStart and OnSubagentStop hooks on the parent session. Start hooks can prepend context to a sub-agent's first prompt. Stop hooks can inspect the response, replace it, or block the stop with a follow-up instruction. (6b4f3a3)

Hooks = new SessionHooks { OnSubagentStart = (input, inv) =>
    Task.FromResult(new() { AdditionalContext = "Read the file first." }) }
Hooks: &copilot.SessionHooks{OnSubagentStart: func(in copilot.SubagentStartHookInput, inv copilot.HookInvocation) (*copilot.SubagentStartHookOutput, error) {
    return &copilot.SubagentStartHookOutput{AdditionalContext: "Read the file first."}, nil }}

Feature: binary session filesystem providers

A session filesystem provider can now serve exact file bytes, so the view tool can read provider-only images. Implement the binary provider interface and set Capabilities.Binary. Reads and writes are capped at about 48 MiB. (6b4f3a3)

  • C#: implement ISessionFsBinaryProvider (ReadFileBytesAsync, WriteFileBytesAsync)
  • Go: implement SessionFSBinaryProvider (ReadFileBytes, WriteFileBytes)

Other changes

  • improvement: update the bundled Copilot CLI to 1.0.93-4 and regenerate RPC and session event types across all SDKs
  • improvement: [C#] add a custom session event JSON converter and updated generated session event types (5b2d7cd)
  • feature: new session events tool.shell_output and human_response.recorded, plus file-edit details on tool.execution_complete (6b4f3a3)
  • feature: new customization reload RPC result types and model discovery types (6b4f3a3)

Full Changelog: v1.0.16...v1.0.17

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by Release Notes Generator · copilot · auto · 30.3 AIC · ⌖ 5.15 AIC · ⊞ 10.5K