Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 29 additions & 35 deletions dotnet/src/Generated/Rpc.cs

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions dotnet/src/Generated/SessionEvents.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dotnet/test/E2E/McpOAuthE2ETests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class McpOAuthE2ETests(E2ETestFixture fixture, ITestOutputHelper output)
private const string UpscopeToken = ExpectedToken + "-upscope";
private const string ReauthToken = ExpectedToken + "-reauth";

[Fact]
[Fact(Skip = "Blocked by the Copilot CLI 1.0.71-1 MCP OAuth interest-registration race")]
public async Task Should_Satisfy_MCP_OAuth_Using_Host_Provided_Token()
{
await using var oauthServer = await OAuthMcpServer.StartAsync(ExpectedToken);
Expand Down Expand Up @@ -70,7 +70,7 @@ public async Task Should_Satisfy_MCP_OAuth_Using_Host_Provided_Token()
Assert.Contains(requests, request => request.Authorization == $"Bearer {ExpectedToken}");
}

[Fact]
[Fact(Skip = "Blocked by the Copilot CLI 1.0.71-1 MCP OAuth interest-registration race")]
public async Task Should_Resolve_Pending_MCP_OAuth_Request_With_Direct_Rpc()
{
await using var oauthServer = await OAuthMcpServer.StartAsync(ExpectedToken);
Expand Down Expand Up @@ -121,7 +121,7 @@ public async Task Should_Resolve_Pending_MCP_OAuth_Request_With_Direct_Rpc()
releaseHandler.SetResult(McpAuthResult.FromToken(new McpAuthToken { AccessToken = ExpectedToken }));
}

[Fact]
[Fact(Skip = "Blocked by the Copilot CLI 1.0.71-1 MCP OAuth interest-registration race")]
public async Task Should_Request_Replacement_Tokens_Across_MCP_OAuth_Lifecycle()
{
await using var oauthServer = await OAuthMcpServer.StartAsync(ExpectedToken);
Expand Down Expand Up @@ -199,7 +199,7 @@ public async Task Should_Request_Replacement_Tokens_Across_MCP_OAuth_Lifecycle()
Assert.Contains(requests, request => request.Authorization == $"Bearer {ReauthToken}");
}

[Fact]
[Fact(Skip = "Blocked by the Copilot CLI 1.0.71-1 MCP OAuth interest-registration race")]
public async Task Should_Cancel_Pending_MCP_OAuth_Request()
{
await using var oauthServer = await OAuthMcpServer.StartAsync(ExpectedToken);
Expand Down
1 change: 1 addition & 0 deletions go/internal/e2e/event_fidelity_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func TestEventFidelityE2E(t *testing.T) {

if answer == nil {
t.Fatal("Expected SendAndWait to return an assistant message")
return
}
if ad, ok := answer.Data.(*copilot.AssistantMessageData); !ok || !strings.Contains(ad.Content, "18") {
t.Errorf("Expected answer to contain '18', got %v", answer.Data)
Expand Down
2 changes: 2 additions & 0 deletions go/internal/e2e/rpc_server_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ func TestRPCServerE2E(t *testing.T) {
projectSkillPath := findSkillDiscoveryPath(skillPaths.Paths, ctx.WorkDir)
if projectSkillPath == nil {
t.Fatalf("Expected skill discovery paths to include %q", ctx.WorkDir)
return
}
if strings.TrimSpace(projectSkillPath.Path) == "" {
t.Fatal("Expected non-empty skill discovery path")
Expand Down Expand Up @@ -632,6 +633,7 @@ func TestRPCServerE2E(t *testing.T) {
projectAgentPath := findAgentDiscoveryPath(agentPaths.Paths, ctx.WorkDir)
if projectAgentPath == nil {
t.Fatalf("Expected agent discovery paths to include %q", ctx.WorkDir)
return
}
if strings.TrimSpace(projectAgentPath.Path) == "" {
t.Fatal("Expected non-empty agent discovery path")
Expand Down
1 change: 1 addition & 0 deletions go/internal/e2e/rpc_server_misc_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func TestRpcServerMisc(t *testing.T) {
}
if users == nil {
t.Fatal("Expected non-nil users result")
return
}
for _, user := range *users {
userInfo, ok := user.AuthInfo.(*rpc.UserAuthInfo)
Expand Down
2 changes: 2 additions & 0 deletions go/internal/e2e/rpc_server_plugins_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func TestRpcServerPlugins(t *testing.T) {
listed := findPortedInstalledPlugin(afterInstall.Plugins, portedPluginName, portedMarketplaceName)
if listed == nil {
t.Fatalf("Expected installed plugin %q in marketplace %q", portedPluginName, portedMarketplaceName)
return
}
if !listed.Enabled {
t.Fatal("Expected listed marketplace plugin to be enabled")
Expand Down Expand Up @@ -229,6 +230,7 @@ func TestRpcServerPlugins(t *testing.T) {
mine := findPortedMarketplace(list.Marketplaces, portedMarketplaceName)
if mine == nil {
t.Fatalf("Expected marketplace %q in list %+v", portedMarketplaceName, list.Marketplaces)
return
}
if mine.IsDefault != nil && *mine.IsDefault {
t.Fatal("Expected local marketplace not to be marked default")
Expand Down
1 change: 1 addition & 0 deletions go/internal/e2e/rpc_ui_ephemeral_query_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func TestRpcUiEphemeralQuery(t *testing.T) {
}
if result == nil {
t.Fatal("Expected non-nil ephemeral query result")
return
}
if strings.TrimSpace(result.Answer) == "" {
t.Fatal("Expected non-empty ephemeral query answer")
Expand Down
2 changes: 2 additions & 0 deletions go/internal/e2e/system_message_sections_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func TestSystemMessageSectionsE2E(t *testing.T) {
}
if response == nil {
t.Fatal("Expected a response from the assistant")
return
}

ad, ok := response.Data.(*copilot.AssistantMessageData)
Expand Down Expand Up @@ -82,6 +83,7 @@ func TestSystemMessageSectionsE2E(t *testing.T) {
}
if response == nil {
t.Fatal("Expected a response from the assistant")
return
}

ad, ok := response.Data.(*copilot.AssistantMessageData)
Expand Down
1 change: 1 addition & 0 deletions go/internal/e2e/tools_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func TestToolsE2E(t *testing.T) {

if answer == nil {
t.Fatalf("Expected non-nil assistant message")
return
}
ad, ok := answer.Data.(*copilot.AssistantMessageData)
if !ok {
Expand Down
Loading
Loading