mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: Use cline.cwd as primary source for workspace path in codebaseSearchTool (#6902)
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com> Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
This commit is contained in:
parent
57389bff36
commit
3f4af18bf7
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ export async function codebaseSearchTool(
|
|||
removeClosingTag: RemoveClosingTag,
|
||||
) {
|
||||
const toolName = "codebase_search"
|
||||
const workspacePath = getWorkspacePath()
|
||||
const workspacePath = (cline.cwd && cline.cwd.trim() !== '') ? cline.cwd : getWorkspacePath()
|
||||
|
||||
if (!workspacePath) {
|
||||
// This case should ideally not happen if Cline is initialized correctly
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue