Skip to content

[ENHANCEMENT] Codebase_Search should trim project paths #11869

@jeepshop

Description

@jeepshop

Problem (one or two sentences)

Some models seem to think they need to pass the absolute workspace path to the codebase search. However if they do that, the codebase search won't return any results. However if I instruct the LLM to try again with a relative path, then the search works.

Context (who is affected and when)

This happens often with Qwen 3.5, but I've seen other model decide to use the full workspace path when trying to search the code base.

Desired behavior (conceptual, not technical)

It would be great if the codebase_search tool could detect the use of an absolute workspace path and auto-convert in into a relative path that it really needs.

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions