Skip to content

Commit a973581

Browse files
committed
Fix remaining SDK CI regressions
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 812b44f2-ef93-4b32-b051-c7092f612279
1 parent b154da6 commit a973581

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

dotnet/test/E2E/RpcServerMiscE2ETests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ user.AuthInfo is AuthInfoUser userAuth
111111
Assert.Equal(token, account.Token);
112112
}
113113

114-
var logout = await client.Rpc.Account.LogoutAsync(authInfo);
114+
var logout = await client.Rpc.Account.LogoutAsync(authInfo: authInfo);
115115
Assert.False(logout.HasMoreUsers);
116116

117117
var afterLogout = await client.Rpc.Account.GetCurrentAuthAsync();

nodejs/src/client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,6 +1919,12 @@ export class CopilotClient {
19191919
session["_workspacePath"] = workspacePath;
19201920
session.setCapabilities(capabilities);
19211921
session.setOpenCanvases(openCanvases ?? []);
1922+
if (config.mcpServers) {
1923+
await this.connection!.sendRequest("session.mcp.reloadWithConfig", {
1924+
sessionId,
1925+
config: { mcpServers: toWireMcpServers(config.mcpServers) },
1926+
});
1927+
}
19221928
if (config.onMcpAuthRequest) {
19231929
await this.connection!.sendRequest("session.eventLog.registerInterest", {
19241930
sessionId,

nodejs/test/e2e/mcp_and_agents.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ describe("MCP Servers and Custom Agents", async () => {
103103
// Create a session first
104104
const session1 = await client.createSession({ onPermissionRequest: approveAll });
105105
const sessionId = session1.sessionId;
106-
await session1.sendAndWait({ prompt: "What is 1+1?" });
107106

108107
// Resume with MCP servers
109108
const mcpServers = createTestMcpServers("test-server");

python/copilot/rpc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
from .generated.rpc import * # noqa: F401, F403
1010
from .generated.rpc import (
1111
BuiltinToolInputSchemaType as UIElicitationSchemaType, # noqa: F401
12+
)
13+
from .generated.rpc import (
1214
SessionFsReaddirWithTypesEntryType as SessionFSReaddirWithTypesEntryType, # noqa: F401
1315
)
1416
from .generated.rpc import __all__ as _generated_all

0 commit comments

Comments
 (0)