Fix MCP permission tests with unsafe command

This commit is contained in:
Mohamed Boudra
2025-12-24 19:58:53 +07:00
parent 8489f35cdd
commit 43030b792c
2 changed files with 12 additions and 9 deletions
@@ -552,7 +552,7 @@ describe("CodexMcpAgentClient (MCP integration)", () => {
session = await client.createSession(config);
const prompt = [
"Request approval to run the command `pwd`.",
"Request approval to run the command `date`.",
"After approval, run it and reply DONE.",
].join(" ");
@@ -625,7 +625,7 @@ describe("CodexMcpAgentClient (MCP integration)", () => {
session = await client.createSession(config);
const prompt = [
"Request approval to run the command `pwd`.",
"Request approval to run the command `date`.",
"After approval, run it and reply DONE.",
].join(" ");
@@ -687,7 +687,7 @@ describe("CodexMcpAgentClient (MCP integration)", () => {
session = await client.createSession(config);
const prompt = [
"Request approval to run the command `pwd`.",
"Request approval to run the command `date`.",
"If approval is denied, acknowledge and stop.",
].join(" ");
@@ -764,7 +764,7 @@ describe("CodexMcpAgentClient (MCP integration)", () => {
session = await client.createSession(config);
const prompt = [
"Request approval to run the command `pwd`.",
"Request approval to run the command `date`.",
"If approval is denied, stop immediately.",
].join(" ");