From d495771cee414a366ce3e66a3910eadcec2dfe1e Mon Sep 17 00:00:00 2001 From: gaojunran Date: Thu, 27 Aug 2026 12:56:56 +0800 Subject: [PATCH] fix(ui): raise file open line limit to 20k lines --- CHANGELOG.md | 2 ++ packages/ui/src/lib/fileOpenLimits.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a743d8b3..bfa5c9b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/packages/ui/src/lib/fileOpenLimits.ts b/packages/ui/src/lib/fileOpenLimits.ts index d4d1504c..734af429 100644 --- a/packages/ui/src/lib/fileOpenLimits.ts +++ b/packages/ui/src/lib/fileOpenLimits.ts @@ -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) {