Skip to content

Commit 3f4af18

Browse files
NaccOllroomote[bot]daniel-lxs
authored
fix: Use cline.cwd as primary source for workspace path in codebaseSearchTool (RooCodeInc#6902)
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com> Co-authored-by: Daniel <[email protected]>
1 parent 57389bf commit 3f4af18

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 = 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)