Skip to content

Commit a3a1b20

Browse files
committed
refactor(runner): remove --no-interactive flag from CLI arguments
Eliminated the --no-interactive flag from both print and preflight commands in the CLI arguments. Updated related tests to reflect this change, ensuring the expected behavior remains intact.
1 parent e1875fc commit a3a1b20

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

__tests__/runner.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,7 @@ describe("runAgent", () => {
114114
);
115115
expect(mockGetExecOutput).toHaveBeenCalledWith(
116116
"cursor-agent",
117-
expect.arrayContaining([
118-
"-p",
119-
"--trust",
120-
"--no-interactive",
121-
"--output-format",
122-
]),
117+
expect.arrayContaining(["-p", "--trust", "--output-format"]),
123118
expect.objectContaining({ silent: true })
124119
);
125120
});

src/runner.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const buildPrintArgs = (inputs: ActionInputs): string[] => {
3535
const args: string[] = [
3636
"-p",
3737
"--trust",
38-
"--no-interactive",
3938
"--output-format",
4039
"text",
4140
"--model",
@@ -53,7 +52,6 @@ const buildPrintArgs = (inputs: ActionInputs): string[] => {
5352
const buildPreflightArgs = (inputs: ActionInputs): string[] => [
5453
"-p",
5554
"--trust",
56-
"--no-interactive",
5755
"--output-format",
5856
"text",
5957
"--model",

0 commit comments

Comments
 (0)