Skip to content

Commit 25bf6c7

Browse files
committed
test(e2e): stabilize run_shell_command file-listing assertion
The model consistently picks list_directory over run_shell_command for file-listing prompts. Make the prompt explicit about which tool to use, matching the approach taken for the MCP tool flow test.
1 parent 67180d3 commit 25bf6c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

integration-tests/cli/run_shell_command.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ describe('run_shell_command', () => {
110110
const fileName = `test-file-${Math.random().toString(36).substring(7)}.txt`;
111111
rig.createFile(fileName, 'test content');
112112

113-
const prompt = `Run a shell command to list the files in the current directory and tell me what they are.`;
113+
const lsCmd = process.platform === 'win32' ? 'dir' : 'ls';
114+
const prompt = `Use the run_shell_command tool to run "${lsCmd}" in the current directory. You must use run_shell_command, not list_directory. Tell me what files you see.`;
114115
const result = await rig.run(prompt);
115116

116117
const foundToolCall = await rig.waitForToolCall('run_shell_command');

0 commit comments

Comments
 (0)