Skip to content

Commit 45b44c7

Browse files
Update to latest runtime
1 parent 6d6e3e1 commit 45b44c7

File tree

4 files changed

+172
-17
lines changed

4 files changed

+172
-17
lines changed

dotnet/src/Generated/SessionEvents.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,11 @@ public partial class SessionIdleData
12161216
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
12171217
[JsonPropertyName("backgroundTasks")]
12181218
public SessionIdleDataBackgroundTasks? BackgroundTasks { get; set; }
1219+
1220+
/// <summary>True when the preceding agentic loop was cancelled via abort signal.</summary>
1221+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1222+
[JsonPropertyName("aborted")]
1223+
public bool? Aborted { get; set; }
12191224
}
12201225

12211226
/// <summary>Session title change payload containing the new display title.</summary>
@@ -2593,7 +2598,7 @@ public partial class SessionMcpServerStatusChangedData
25932598
[JsonPropertyName("serverName")]
25942599
public required string ServerName { get; set; }
25952600

2596-
/// <summary>New connection status: connected, failed, pending, disabled, or not_configured.</summary>
2601+
/// <summary>New connection status: connected, failed, needs-auth, pending, disabled, or not_configured.</summary>
25972602
[JsonPropertyName("status")]
25982603
public required SessionMcpServersLoadedDataServersItemStatus Status { get; set; }
25992604
}
@@ -3786,7 +3791,7 @@ public partial class SessionMcpServersLoadedDataServersItem
37863791
[JsonPropertyName("name")]
37873792
public required string Name { get; set; }
37883793

3789-
/// <summary>Connection status: connected, failed, pending, disabled, or not_configured.</summary>
3794+
/// <summary>Connection status: connected, failed, needs-auth, pending, disabled, or not_configured.</summary>
37903795
[JsonPropertyName("status")]
37913796
public required SessionMcpServersLoadedDataServersItemStatus Status { get; set; }
37923797

@@ -3998,7 +4003,7 @@ public enum ElicitationRequestedDataMode
39984003
Url,
39994004
}
40004005

4001-
/// <summary>Connection status: connected, failed, pending, disabled, or not_configured.</summary>
4006+
/// <summary>Connection status: connected, failed, needs-auth, pending, disabled, or not_configured.</summary>
40024007
[JsonConverter(typeof(JsonStringEnumConverter<SessionMcpServersLoadedDataServersItemStatus>))]
40034008
public enum SessionMcpServersLoadedDataServersItemStatus
40044009
{
@@ -4008,6 +4013,9 @@ public enum SessionMcpServersLoadedDataServersItemStatus
40084013
/// <summary>The <c>failed</c> variant.</summary>
40094014
[JsonStringEnumMemberName("failed")]
40104015
Failed,
4016+
/// <summary>The <c>needs-auth</c> variant.</summary>
4017+
[JsonStringEnumMemberName("needs-auth")]
4018+
NeedsAuth,
40114019
/// <summary>The <c>pending</c> variant.</summary>
40124020
[JsonStringEnumMemberName("pending")]
40134021
Pending,

go/generated_session_events.go

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/src/generated/session-events.ts

Lines changed: 142 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ export type SessionEvent =
9191
* Whether the session was already in use by another client at start time
9292
*/
9393
alreadyInUse?: boolean;
94+
/**
95+
* Whether this session supports remote steering via Mission Control
96+
*/
97+
remoteSteerable?: boolean;
9498
};
9599
}
96100
| {
@@ -168,6 +172,38 @@ export type SessionEvent =
168172
* Whether the session was already in use by another client at resume time
169173
*/
170174
alreadyInUse?: boolean;
175+
/**
176+
* Whether this session supports remote steering via Mission Control
177+
*/
178+
remoteSteerable?: boolean;
179+
};
180+
}
181+
| {
182+
/**
183+
* Unique event identifier (UUID v4), generated when the event is emitted
184+
*/
185+
id: string;
186+
/**
187+
* ISO 8601 timestamp when the event was created
188+
*/
189+
timestamp: string;
190+
/**
191+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
192+
*/
193+
parentId: string | null;
194+
/**
195+
* When true, the event is transient and not persisted to the session event log on disk
196+
*/
197+
ephemeral?: boolean;
198+
type: "session.remote_steerable_changed";
199+
/**
200+
* Notifies Mission Control that the session's remote steering capability has changed
201+
*/
202+
data: {
203+
/**
204+
* Whether this session now supports remote steering via Mission Control
205+
*/
206+
remoteSteerable: boolean;
171207
};
172208
}
173209
| {
@@ -272,6 +308,10 @@ export type SessionEvent =
272308
description?: string;
273309
}[];
274310
};
311+
/**
312+
* True when the preceding agentic loop was cancelled via abort signal
313+
*/
314+
aborted?: boolean;
275315
};
276316
}
277317
| {
@@ -1584,7 +1624,15 @@ export type SessionEvent =
15841624
*/
15851625
duration?: number;
15861626
/**
1587-
* What initiated this API call (e.g., "sub-agent"); absent for user-initiated calls
1627+
* Time to first token in milliseconds. Only available for streaming requests
1628+
*/
1629+
ttftMs?: number;
1630+
/**
1631+
* Average inter-token latency in milliseconds. Only available for streaming requests
1632+
*/
1633+
interTokenLatencyMs?: number;
1634+
/**
1635+
* What initiated this API call (e.g., "sub-agent", "mcp-sampling"); absent for user-initiated calls
15881636
*/
15891637
initiator?: string;
15901638
/**
@@ -3021,6 +3069,65 @@ export type SessionEvent =
30213069
requestId: string;
30223070
};
30233071
}
3072+
| {
3073+
/**
3074+
* Unique event identifier (UUID v4), generated when the event is emitted
3075+
*/
3076+
id: string;
3077+
/**
3078+
* ISO 8601 timestamp when the event was created
3079+
*/
3080+
timestamp: string;
3081+
/**
3082+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
3083+
*/
3084+
parentId: string | null;
3085+
ephemeral: true;
3086+
type: "sampling.requested";
3087+
/**
3088+
* Sampling request from an MCP server; contains the server name and a requestId for correlation
3089+
*/
3090+
data: {
3091+
/**
3092+
* Unique identifier for this sampling request; used to respond via session.respondToSampling()
3093+
*/
3094+
requestId: string;
3095+
/**
3096+
* Name of the MCP server that initiated the sampling request
3097+
*/
3098+
serverName: string;
3099+
/**
3100+
* The JSON-RPC request ID from the MCP protocol
3101+
*/
3102+
mcpRequestId: string | number;
3103+
[k: string]: unknown;
3104+
};
3105+
}
3106+
| {
3107+
/**
3108+
* Unique event identifier (UUID v4), generated when the event is emitted
3109+
*/
3110+
id: string;
3111+
/**
3112+
* ISO 8601 timestamp when the event was created
3113+
*/
3114+
timestamp: string;
3115+
/**
3116+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
3117+
*/
3118+
parentId: string | null;
3119+
ephemeral: true;
3120+
type: "sampling.completed";
3121+
/**
3122+
* Sampling request completion notification signaling UI dismissal
3123+
*/
3124+
data: {
3125+
/**
3126+
* Request ID of the resolved sampling request; clients should dismiss any UI for this request
3127+
*/
3128+
requestId: string;
3129+
};
3130+
}
30243131
| {
30253132
/**
30263133
* Unique event identifier (UUID v4), generated when the event is emitted
@@ -3287,6 +3394,36 @@ export type SessionEvent =
32873394
}[];
32883395
};
32893396
}
3397+
| {
3398+
/**
3399+
* Unique event identifier (UUID v4), generated when the event is emitted
3400+
*/
3401+
id: string;
3402+
/**
3403+
* ISO 8601 timestamp when the event was created
3404+
*/
3405+
timestamp: string;
3406+
/**
3407+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
3408+
*/
3409+
parentId: string | null;
3410+
ephemeral: true;
3411+
type: "capabilities.changed";
3412+
/**
3413+
* Session capability change notification
3414+
*/
3415+
data: {
3416+
/**
3417+
* UI capability changes
3418+
*/
3419+
ui?: {
3420+
/**
3421+
* Whether elicitation is now supported
3422+
*/
3423+
elicitation?: boolean;
3424+
};
3425+
};
3426+
}
32903427
| {
32913428
/**
32923429
* Unique event identifier (UUID v4), generated when the event is emitted
@@ -3524,9 +3661,9 @@ export type SessionEvent =
35243661
*/
35253662
name: string;
35263663
/**
3527-
* Connection status: connected, failed, pending, disabled, or not_configured
3664+
* Connection status: connected, failed, needs-auth, pending, disabled, or not_configured
35283665
*/
3529-
status: "connected" | "failed" | "pending" | "disabled" | "not_configured";
3666+
status: "connected" | "failed" | "needs-auth" | "pending" | "disabled" | "not_configured";
35303667
/**
35313668
* Configuration source: user, workspace, plugin, or builtin
35323669
*/
@@ -3559,9 +3696,9 @@ export type SessionEvent =
35593696
*/
35603697
serverName: string;
35613698
/**
3562-
* New connection status: connected, failed, pending, disabled, or not_configured
3699+
* New connection status: connected, failed, needs-auth, pending, disabled, or not_configured
35633700
*/
3564-
status: "connected" | "failed" | "pending" | "disabled" | "not_configured";
3701+
status: "connected" | "failed" | "needs-auth" | "pending" | "disabled" | "not_configured";
35653702
};
35663703
}
35673704
| {

python/copilot/generated/session_events.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,13 +1556,14 @@ class Role(Enum):
15561556

15571557

15581558
class ServerStatus(Enum):
1559-
"""Connection status: connected, failed, pending, disabled, or not_configured
1559+
"""Connection status: connected, failed, needs-auth, pending, disabled, or not_configured
15601560
1561-
New connection status: connected, failed, pending, disabled, or not_configured
1561+
New connection status: connected, failed, needs-auth, pending, disabled, or not_configured
15621562
"""
15631563
CONNECTED = "connected"
15641564
DISABLED = "disabled"
15651565
FAILED = "failed"
1566+
NEEDS_AUTH = "needs-auth"
15661567
NOT_CONFIGURED = "not_configured"
15671568
PENDING = "pending"
15681569

@@ -1573,7 +1574,7 @@ class Server:
15731574
"""Server name (config key)"""
15741575

15751576
status: ServerStatus
1576-
"""Connection status: connected, failed, pending, disabled, or not_configured"""
1577+
"""Connection status: connected, failed, needs-auth, pending, disabled, or not_configured"""
15771578

15781579
error: str | None = None
15791580
"""Error message if the server failed to connect"""
@@ -1988,6 +1989,9 @@ class Data:
19881989
19891990
URL to open in the user's browser (url mode only)
19901991
"""
1992+
aborted: bool | None = None
1993+
"""True when the preceding agentic loop was cancelled via abort signal"""
1994+
19911995
background_tasks: BackgroundTasks | None = None
19921996
"""Background tasks still running when the agent became idle"""
19931997

@@ -2606,7 +2610,7 @@ class Data:
26062610
"""Array of MCP server status summaries"""
26072611

26082612
status: ServerStatus | None = None
2609-
"""New connection status: connected, failed, pending, disabled, or not_configured"""
2613+
"""New connection status: connected, failed, needs-auth, pending, disabled, or not_configured"""
26102614

26112615
extensions: list[Extension] | None = None
26122616
"""Array of discovered extensions and their status"""
@@ -2632,6 +2636,7 @@ def from_dict(obj: Any) -> 'Data':
26322636
stack = from_union([from_str, from_none], obj.get("stack"))
26332637
status_code = from_union([from_int, from_none], obj.get("statusCode"))
26342638
url = from_union([from_str, from_none], obj.get("url"))
2639+
aborted = from_union([from_bool, from_none], obj.get("aborted"))
26352640
background_tasks = from_union([BackgroundTasks.from_dict, from_none], obj.get("backgroundTasks"))
26362641
title = from_union([from_str, from_none], obj.get("title"))
26372642
info_type = from_union([from_str, from_none], obj.get("infoType"))
@@ -2780,7 +2785,7 @@ def from_dict(obj: Any) -> 'Data':
27802785
servers = from_union([lambda x: from_list(Server.from_dict, x), from_none], obj.get("servers"))
27812786
status = from_union([ServerStatus, from_none], obj.get("status"))
27822787
extensions = from_union([lambda x: from_list(Extension.from_dict, x), from_none], obj.get("extensions"))
2783-
return Data(already_in_use, context, copilot_version, producer, reasoning_effort, remote_steerable, selected_model, session_id, start_time, version, event_count, resume_time, error_type, message, provider_call_id, stack, status_code, url, background_tasks, title, info_type, warning_type, new_model, previous_model, previous_reasoning_effort, new_mode, previous_mode, operation, path, handoff_time, host, remote_session_id, repository, source_type, summary, messages_removed_during_truncation, performed_by, post_truncation_messages_length, post_truncation_tokens_in_messages, pre_truncation_messages_length, pre_truncation_tokens_in_messages, token_limit, tokens_removed_during_truncation, events_removed, up_to_event_id, code_changes, conversation_tokens, current_model, current_tokens, error_reason, model_metrics, session_start_time, shutdown_type, system_tokens, tool_definitions_tokens, total_api_duration_ms, total_premium_requests, base_commit, branch, cwd, git_root, head_commit, host_type, is_initial, messages_length, checkpoint_number, checkpoint_path, compaction_tokens_used, error, messages_removed, post_compaction_tokens, pre_compaction_messages_length, pre_compaction_tokens, request_id, success, summary_content, tokens_removed, agent_mode, attachments, content, interaction_id, source, transformed_content, turn_id, intent, reasoning_id, delta_content, total_response_size_bytes, encrypted_content, message_id, output_tokens, parent_tool_call_id, phase, reasoning_opaque, reasoning_text, tool_requests, api_call_id, cache_read_tokens, cache_write_tokens, copilot_usage, cost, duration, initiator, input_tokens, inter_token_latency_ms, model, quota_snapshots, ttft_ms, reason, arguments, tool_call_id, tool_name, mcp_server_name, mcp_tool_name, partial_output, progress_message, is_user_requested, result, tool_telemetry, allowed_tools, description, name, plugin_name, plugin_version, agent_description, agent_display_name, agent_name, duration_ms, total_tokens, total_tool_calls, tools, hook_invocation_id, hook_type, input, output, metadata, role, kind, permission_request, allow_freeform, choices, question, elicitation_source, mode, requested_schema, mcp_request_id, server_name, server_url, static_client_config, traceparent, tracestate, command, args, command_name, commands, ui, actions, plan_content, recommended_action, skills, agents, errors, warnings, servers, status, extensions)
2788+
return Data(already_in_use, context, copilot_version, producer, reasoning_effort, remote_steerable, selected_model, session_id, start_time, version, event_count, resume_time, error_type, message, provider_call_id, stack, status_code, url, aborted, background_tasks, title, info_type, warning_type, new_model, previous_model, previous_reasoning_effort, new_mode, previous_mode, operation, path, handoff_time, host, remote_session_id, repository, source_type, summary, messages_removed_during_truncation, performed_by, post_truncation_messages_length, post_truncation_tokens_in_messages, pre_truncation_messages_length, pre_truncation_tokens_in_messages, token_limit, tokens_removed_during_truncation, events_removed, up_to_event_id, code_changes, conversation_tokens, current_model, current_tokens, error_reason, model_metrics, session_start_time, shutdown_type, system_tokens, tool_definitions_tokens, total_api_duration_ms, total_premium_requests, base_commit, branch, cwd, git_root, head_commit, host_type, is_initial, messages_length, checkpoint_number, checkpoint_path, compaction_tokens_used, error, messages_removed, post_compaction_tokens, pre_compaction_messages_length, pre_compaction_tokens, request_id, success, summary_content, tokens_removed, agent_mode, attachments, content, interaction_id, source, transformed_content, turn_id, intent, reasoning_id, delta_content, total_response_size_bytes, encrypted_content, message_id, output_tokens, parent_tool_call_id, phase, reasoning_opaque, reasoning_text, tool_requests, api_call_id, cache_read_tokens, cache_write_tokens, copilot_usage, cost, duration, initiator, input_tokens, inter_token_latency_ms, model, quota_snapshots, ttft_ms, reason, arguments, tool_call_id, tool_name, mcp_server_name, mcp_tool_name, partial_output, progress_message, is_user_requested, result, tool_telemetry, allowed_tools, description, name, plugin_name, plugin_version, agent_description, agent_display_name, agent_name, duration_ms, total_tokens, total_tool_calls, tools, hook_invocation_id, hook_type, input, output, metadata, role, kind, permission_request, allow_freeform, choices, question, elicitation_source, mode, requested_schema, mcp_request_id, server_name, server_url, static_client_config, traceparent, tracestate, command, args, command_name, commands, ui, actions, plan_content, recommended_action, skills, agents, errors, warnings, servers, status, extensions)
27842789

27852790
def to_dict(self) -> dict:
27862791
result: dict = {}
@@ -2820,6 +2825,8 @@ def to_dict(self) -> dict:
28202825
result["statusCode"] = from_union([from_int, from_none], self.status_code)
28212826
if self.url is not None:
28222827
result["url"] = from_union([from_str, from_none], self.url)
2828+
if self.aborted is not None:
2829+
result["aborted"] = from_union([from_bool, from_none], self.aborted)
28232830
if self.background_tasks is not None:
28242831
result["backgroundTasks"] = from_union([lambda x: to_class(BackgroundTasks, x), from_none], self.background_tasks)
28252832
if self.title is not None:

0 commit comments

Comments
 (0)