Skip to content

Commit ebac759

Browse files
Update @github/copilot to 1.0.51 (#1353)
* Update @github/copilot to 1.0.51 - Updated nodejs and test harness dependencies - Re-ran code generators - Formatted generated code * Fix test compilation errors from schema changes - dotnet: Workspace.Id changed from Guid to string; use Assert.NotEmpty - go: TaskProgress is now an interface; use unmarshalTaskProgress and type-assert to concrete types 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: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1015e7a commit ebac759

14 files changed

Lines changed: 7388 additions & 793 deletions

File tree

dotnet/src/Generated/Rpc.cs

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

dotnet/test/E2E/RpcSessionStateE2ETests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public async Task Should_Call_Workspace_File_Rpc_Methods()
116116

117117
var workspace = await session.Rpc.Workspaces.GetWorkspaceAsync();
118118
Assert.NotNull(workspace.Workspace);
119-
Assert.NotEqual(Guid.Empty, workspace.Workspace.Id);
119+
Assert.NotEmpty(workspace.Workspace.Id);
120120
}
121121

122122
[Theory]

go/rpc/generated_rpc_union_test.go

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,28 +134,25 @@ func TestMcpServerConfigJSONUnion(t *testing.T) {
134134
}
135135

136136
func TestTaskProgressUnmarshalsTaskAgentProgressVariants(t *testing.T) {
137-
var agentProgress TaskProgress
138-
if err := json.Unmarshal([]byte(`{"type":"agent","recentActivity":[],"latestIntent":"Summarizing"}`), &agentProgress); err != nil {
137+
agentProgress, err := unmarshalTaskProgress([]byte(`{"type":"agent","recentActivity":[],"latestIntent":"Summarizing"}`))
138+
if err != nil {
139139
t.Fatalf("unmarshal agent task progress: %v", err)
140140
}
141-
agentValue, ok := agentProgress.TaskAgentProgress.(*TaskAgentProgressAgent)
141+
agentValue, ok := agentProgress.(*TaskAgentProgress)
142142
if !ok {
143-
t.Fatalf("agent task progress = %T, want *TaskAgentProgressAgent", agentProgress.TaskAgentProgress)
143+
t.Fatalf("agent task progress = %T, want *TaskAgentProgress", agentProgress)
144144
}
145145
if agentValue.LatestIntent == nil || *agentValue.LatestIntent != "Summarizing" {
146146
t.Fatalf("agent latest intent = %v, want Summarizing", agentValue.LatestIntent)
147147
}
148-
if agentProgress.TaskShellProgress != nil {
149-
t.Fatalf("agent task shell progress = %#v, want nil", *agentProgress.TaskShellProgress)
150-
}
151148

152-
var shellProgress TaskProgress
153-
if err := json.Unmarshal([]byte(`{"type":"shell","recentOutput":"building","pid":123}`), &shellProgress); err != nil {
149+
shellProgress, err := unmarshalTaskProgress([]byte(`{"type":"shell","recentOutput":"building","pid":123}`))
150+
if err != nil {
154151
t.Fatalf("unmarshal shell task progress: %v", err)
155152
}
156-
shellValue, ok := shellProgress.TaskAgentProgress.(*TaskAgentProgressShell)
153+
shellValue, ok := shellProgress.(*TaskShellProgress)
157154
if !ok {
158-
t.Fatalf("shell task progress = %T, want *TaskAgentProgressShell", shellProgress.TaskAgentProgress)
155+
t.Fatalf("shell task progress = %T, want *TaskShellProgress", shellProgress)
159156
}
160157
if shellValue.RecentOutput != "building" {
161158
t.Fatalf("shell recent output = %q, want building", shellValue.RecentOutput)

go/rpc/zrpc.go

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

0 commit comments

Comments
 (0)