Skip to content
Merged
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
2 changes: 1 addition & 1 deletion dotnet/test/E2E/EventFidelityE2ETests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ await session.SendAsync(new MessageOptions
Prompt = "What is 9+9? Reply with just the number.",
});

var pendingEvent = await pendingMessagesModified;
var answer = await TestHelper.GetFinalAssistantMessageAsync(session);
var pendingEvent = await pendingMessagesModified;

Assert.NotNull(pendingEvent);
Assert.Contains("18", answer?.Data.Content ?? string.Empty);
Expand Down
8 changes: 0 additions & 8 deletions dotnet/test/E2E/SessionMcpAndAgentConfigE2ETests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,6 @@ public async Task Should_Accept_Both_MCP_Servers_And_Custom_Agents()
});

Assert.Matches(@"^[a-f0-9-]+$", session.SessionId);

await session.SendAsync(new MessageOptions { Prompt = "What is 7+7?" });

// Use a longer timeout to tolerate slower MCP server spawning on Windows.
var message = await TestHelper.GetFinalAssistantMessageAsync(session, TimeSpan.FromSeconds(120));
Assert.NotNull(message);
Assert.Contains("14", message!.Data.Content);

await session.DisposeAsync();
}

Expand Down
16 changes: 0 additions & 16 deletions go/internal/e2e/mcp_and_agents_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,22 +422,6 @@ func TestCombinedConfigurationE2E(t *testing.T) {
t.Error("Expected non-empty session ID")
}

_, err = session.Send(t.Context(), copilot.MessageOptions{
Prompt: "What is 7+7?",
})
if err != nil {
t.Fatalf("Failed to send message: %v", err)
}

message, err := testharness.GetFinalAssistantMessage(t.Context(), session)
if err != nil {
t.Fatalf("Failed to get final message: %v", err)
}

if md, ok := message.Data.(*copilot.AssistantMessageData); !ok || !strings.Contains(md.Content, "14") {
t.Errorf("Expected message to contain '14', got: %v", message.Data)
}

session.Disconnect()
})
}
5 changes: 0 additions & 5 deletions nodejs/test/e2e/mcp_and_agents.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,6 @@ describe("MCP Servers and Custom Agents", async () => {

expect(session.sessionId).toBeDefined();

const message = await session.sendAndWait({
prompt: "What is 7+7?",
});
expect(message?.data.content).toContain("14");

await session.disconnect();
});
});
Expand Down
4 changes: 2 additions & 2 deletions nodejs/test/e2e/session_fs.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ describe("Session Fs", async () => {
expect(contentBefore).not.toContain("checkpointNumber");

await session.rpc.history.compact();
await expect.poll(() => compactionEvent).toBeDefined();
await expect.poll(() => compactionEvent, { timeout: 30_000 }).toBeDefined();
expect(compactionEvent!.data.success).toBe(true);

// Verify the events file was rewritten with a checkpoint via sessionFs
await expect
.poll(() => provider.readFile(eventsPath, "utf8"))
.poll(() => provider.readFile(eventsPath, "utf8"), { timeout: 30_000 })
.toContain("checkpointNumber");
});
});
Expand Down
6 changes: 1 addition & 5 deletions python/e2e/test_mcp_and_agents_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from copilot.session import CustomAgentConfig, MCPServerConfig, PermissionHandler

from .testharness import E2ETestContext, get_final_assistant_message
from .testharness import E2ETestContext

TEST_MCP_SERVER = str(
(Path(__file__).parents[2] / "test" / "harness" / "test-mcp-server.mjs").resolve()
Expand Down Expand Up @@ -219,10 +219,6 @@ async def test_should_accept_both_mcp_servers_and_custom_agents(self, ctx: E2ETe

assert session.session_id is not None

await session.send("What is 7+7?")
message = await get_final_assistant_message(session)
assert "14" in message.data.content

await session.disconnect()

async def test_should_handle_custom_agent_with_tools_configuration(self, ctx: E2ETestContext):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
models:
- claude-sonnet-4.5
conversations:
- messages:
- role: system
content: ${system}
- role: user
content: What is 7+7?
- role: assistant
content: 7 + 7 = 14
conversations: []
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
models:
- claude-sonnet-4.5
conversations:
- messages:
- role: system
content: ${system}
- role: user
content: What is 7+7?
- role: assistant
content: 7 + 7 = 14
conversations: []
Comment thread
stephentoub marked this conversation as resolved.
Loading