diff --git a/src/core/mentions/index.ts b/src/core/mentions/index.ts index f038b5b783..5a6756d055 100644 --- a/src/core/mentions/index.ts +++ b/src/core/mentions/index.ts @@ -278,7 +278,8 @@ async function getFileOrFolderContent( return `(File ${mentionPath} is ignored by .rooignore)` } try { - const content = await extractTextFromFile(absPath, maxReadFileLine) + // Always read full file for @ mentions (bypass maxReadFileLine) + const content = await extractTextFromFile(absPath, -1) return content } catch (error) { return `(Failed to read contents of ${mentionPath}): ${error.message}` @@ -318,7 +319,8 @@ async function getFileOrFolderContent( if (isBinary) { return undefined } - const content = await extractTextFromFile(absoluteFilePath, maxReadFileLine) + // Always read full file for @ mentions (bypass maxReadFileLine) + const content = await extractTextFromFile(absoluteFilePath, -1) return `\n${content}\n` } catch (error) { return undefined