Update @github/copilot to 1.0.47 (#1286) · github/copilot-sdk@f4121e3 · GitHub
Skip to content

Commit f4121e3

Browse files
github-actions[bot]stephentoubCopilot
authored
Update @github/copilot to 1.0.47 (#1286)
* Update @github/copilot to 1.0.47 - Updated nodejs and test harness dependencies - Re-ran code generators - Formatted generated code * Fix generated Python mode type and Rust fork tests Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix C# RPC union result generation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix Go RPC union result decoding Use generated union decoders for RPC method results so non-empty interface results are returned as concrete variants instead of being unmarshaled directly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Restore Python generated type aliases Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Avoid caching Rust cargo shims in CI Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix Rust no-result permission handling Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix Python slash command result deserialization Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix C# discriminator serialization Keep generated base discriminator properties serializable so permission responses include their required kind/type fields. Also include the Python test formatting change required by ruff. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix optional RPC request codegen Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4d14749 commit f4121e3

30 files changed

Lines changed: 2444 additions & 252 deletions

‎.github/workflows/rust-sdk-tests.yml‎

Lines changed: 4 additions & 0 deletions

‎dotnet/src/Generated/Rpc.cs‎

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

‎dotnet/src/Generated/SessionEvents.cs‎

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

‎dotnet/test/Unit/SerializationTests.cs‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,21 @@ public void QueuedCommandResult_SerializesHandledAsBoolean_WithSdkOptions()
264264
Assert.Null(deserialized.StopProcessingQueue);
265265
}
266266

267+
[Fact]
268+
public void PermissionDecision_SerializesBaseDiscriminator_WithSdkOptions()
269+
{
270+
var options = GetSerializerOptions();
271+
var original = new PermissionDecision
272+
{
273+
Kind = PermissionRequestResultKind.Approved.Value
274+
};
275+
276+
var json = JsonSerializer.Serialize(original, options);
277+
using var document = JsonDocument.Parse(json);
278+
279+
Assert.Equal("approve-once", document.RootElement.GetProperty("kind").GetString());
280+
}
281+
267282
private static JsonSerializerOptions GetSerializerOptions()
268283
{
269284
var prop = typeof(CopilotClient)

‎go/rpc/generated_rpc_union_test.go‎

Lines changed: 55 additions & 0 deletions

0 commit comments

Comments
 (0)