Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 592f281

Browse files
committed
feat: always show line count in read_file approval UI
- Changed getLineSnippet() to always return 'up to X lines' even for default limit - Previously only showed line count when limit < DEFAULT_LINE_LIMIT - Now users always see how many lines will be read (e.g., 'up to 2000 lines')
1 parent 118412a commit 592f281

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/tools/ReadFileTool.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ export class ReadFileTool extends BaseTool<"read_file"> {
532532
return `lines ${offset1}-${offset1 + limit - 1}`
533533
}
534534

535-
return limit < DEFAULT_LINE_LIMIT ? `up to ${limit} lines` : ""
535+
// Always show the line limit, even when using the default
536+
return `up to ${limit} lines`
536537
}
537538

538539
/**

0 commit comments

Comments
 (0)