Skip to content

Commit aece1da

Browse files
Apply suggestion from @roomote[bot]
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
1 parent eb488b4 commit aece1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tools/codebaseSearchTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function codebaseSearchTool(
1717
removeClosingTag: RemoveClosingTag,
1818
) {
1919
const toolName = "codebase_search"
20-
const workspacePath = cline.cwd || getWorkspacePath()
20+
const workspacePath = (cline.cwd && cline.cwd.trim() !== '') ? cline.cwd : getWorkspacePath()
2121

2222
if (!workspacePath) {
2323
// This case should ideally not happen if Cline is initialized correctly

0 commit comments

Comments
 (0)