fix(ui): raise file open line limit to 20k lines

This commit is contained in:
gaojunran
2026-08-27 12:56:56 +08:00
parent 2a1c10cb3e
commit d495771cee
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
- Files: opening a file over 5,000 lines is no longer blocked — the line-count guard now allows up to 20,000 lines, letting large files reach the virtualized full-file preview instead of being rejected at the open step (thanks @gaojunran).
## [1.21.0] - 2026-08-26
- **Chat scrolling rebuilt around your message.** Sending parks your message near the top and the reply streams in below it, gliding smoothly a paragraph at a time. Scrolling up immediately hands you the wheel; the scroll-to-bottom pill carries the model's working status while you're away.
+1 -1
View File
@@ -1,4 +1,4 @@
export const MAX_OPEN_FILE_LINES = 5_000;
export const MAX_OPEN_FILE_LINES = 20_000;
export const countLinesWithLimit = (content: string, limit: number): number => {
if (!content) {