Skip to content

Commit efb9090

Browse files
committed
Approve all permission requests
PR microsoft#1028 updated the Copilot SDK package we use for testing to at least version 0.1.25. This brought along a [breaking change](github/copilot-sdk#509) where all tool operations are denied by default. Since our integration tests needs to run in a fully automated manner, this commit adds `onPermissionRequest: approveAll` to restore the previous behavior.
1 parent 25c876c commit efb9090

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/utils/agent-runner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as fs from "fs";
1616
import * as os from "os";
1717
import * as path from "path";
1818
import { fileURLToPath } from "url";
19-
import { type CopilotSession, CopilotClient, type SessionEvent } from "@github/copilot-sdk";
19+
import { type CopilotSession, CopilotClient, type SessionEvent, approveAll } from "@github/copilot-sdk";
2020
import { getAllAssistantMessages } from "./evaluate";
2121
import { redactSecrets } from "./redact";
2222

@@ -391,6 +391,7 @@ export function useAgentRunner() {
391391

392392
const session = await client.createSession({
393393
model: "claude-sonnet-4.5",
394+
onPermissionRequest: approveAll,
394395
skillDirectories: [skillDirectory],
395396
mcpServers: {
396397
azure: {
@@ -735,6 +736,7 @@ export async function runConversation(config: ConversationConfig): Promise<Conve
735736

736737
session = await client.createSession({
737738
model: "claude-sonnet-4.5",
739+
onPermissionRequest: approveAll,
738740
skillDirectories: [skillDirectory],
739741
mcpServers: {
740742
azure: {

0 commit comments

Comments
 (0)