diff --git a/core/tools/implementations/codebaseTool.ts b/core/tools/implementations/codebaseTool.ts index 46b06a8c6..fe4f77ace 100644 --- a/core/tools/implementations/codebaseTool.ts +++ b/core/tools/implementations/codebaseTool.ts @@ -23,6 +23,7 @@ export const codebaseToolImpl: ToolImpl = async (args, extras) => { ide: extras.ide, selectedCode: [] as RangeInFile[], fetch: extras.fetch, + isInAgentMode: true, // always true in tool call }; // Use the existing retrieval function to get context items