Skip to content

Commit e1c575a

Browse files
Merge pull request #11393 from gitbutlerapp/no-truncation
no truncation of bash commands in tool call permissions
2 parents 4314abc + e215021 commit e1c575a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/desktop/src/lib/utils/codegenTools.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ export function formatToolCall(toolCall: ToolCall): string {
6464
return input['file_path'];
6565

6666
case 'Bash':
67-
// Show description if available, otherwise truncate command
68-
return truncate(input['command'], 128);
67+
// Even if they are long, we don't want to truncate commands since
68+
// any part of a command could perform dangerous actions.
69+
return input['command'];
6970

7071
case 'Grep':
7172
return `"${input['pattern']}"${input['path'] ? ` in ${input['path']}` : ''}`;

0 commit comments

Comments
 (0)