Skip to content

Commit 80430d6

Browse files
authored
Merge pull request #9120 from Kilo-Org/bash-optional-description
feat(cli): make bash tool description parameter optional
2 parents 60a1f3c + f0bc029 commit 80430d6

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@kilocode/cli": patch
3+
---
4+
5+
Make the `description` parameter of the bash tool optional.

packages/opencode/src/tool/bash.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ const Parameters = z.object({
6060
.optional(),
6161
description: z
6262
.string()
63+
.optional() // kilocode_change
6364
.describe(
64-
"Clear, concise description of what this command does in 5-10 words. Examples:\nInput: ls\nOutput: Lists files in current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: mkdir foo\nOutput: Creates directory 'foo'",
65+
// kilocode_change start
66+
"Recommended: a clear, concise description of what this command does in 5-10 words. Examples:\nInput: ls\nOutput: Lists files in current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: mkdir foo\nOutput: Creates directory 'foo'",
67+
// kilocode_change end
6568
),
6669
})
6770

@@ -500,7 +503,7 @@ export const BashTool = Tool.define(
500503
cwd,
501504
env: yield* shellEnv(ctx, cwd),
502505
timeout,
503-
description: params.description,
506+
description: params.description ?? params.command, // kilocode_change
504507
},
505508
ctx,
506509
)

0 commit comments

Comments
 (0)