v0.1.33-preview.0
Pre-release
Pre-release
Feature: pre-select a custom agent at session creation
You can now specify which custom agent should be active when a session starts, without needing a separate session.rpc.agent.select() call. (#722)
const session = await client.createSession({
customAgents: [
{ name: "researcher", prompt: "You are a research assistant." },
{ name: "editor", prompt: "You are a code editor." },
],
agent: "researcher", // active agent at session start
onPermissionRequest: approveAll,
});var session = await client.CreateSessionAsync(new SessionConfig {
CustomAgents = [
new CustomAgentConfig { Name = "researcher", Prompt = "You are a research assistant." },
new CustomAgentConfig { Name = "editor", Prompt = "You are a code editor." },
],
Agent = "researcher", // active agent at session start
});Feature: custom model listing for BYOK
Applications using bring-your-own-key providers can now supply onListModels in client options to override client.listModels() with their own model list, instead of forwarding the call to the CLI. (#730)
const client = new CopilotClient({ onListModels: () => myProviderModels });var client = new CopilotClient(new CopilotClientOptions {
OnListModels = () => Task.FromResult(myProviderModels)
});- Python:
on_list_models=lambda: my_provider_models - Go:
OnListModels: func(ctx context.Context) ([]copilot.ModelInfo, error) { return myModels, nil }
Feature: new events and APIs (system notifications, session log, extension support)
Updated to match the latest CLI runtime, adding: system.notification events, a session log RPC API, reasoningEffort changes after model switch, alreadyInUse flag on sessions, and the groundwork for extension-based integrations. (#737)
Other changes
- feature: add
no-resultpermission outcome so extensions can attach to sessions without actively answering permission requests (#802) - bugfix: fix race condition where events emitted during session creation (e.g.
session.start) could be dropped; also addsOnEventcatch-all handler toSessionConfig(#664) - improvement: [C#] optional RPC params are now represented as optional C# method params for forward-compatible generated code (#733)
- bugfix: [C#] fix codegen for discriminated unions nested within other types (#736)
- improvement: [C#] emit XML doc comments from schema descriptions in generated RPC code (#724)
- improvement: [C#] use lazy property initialization in generated RPC classes (#725)
- improvement: [C#] add
DebuggerDisplayattribute toSessionEventfor easier debugging (#726) - improvement: [.NET] add NuGet package icon (#688)
- bugfix: [Node] don't resolve
cliPathwhencliUrlis already set (#787)
New contributors
@sergiou87made their first contribution in #787@kirankashyapmade their first contribution in #740
Generated by Release Changelog Generator
Generated by Release Changelog Generator