qwen-code/packages/cli
jinye 6fdd0fc710
fix(core): Support large text range reads (#6404)
* fix(core): support large text range reads

Allow text reads to stream bounded line ranges for files larger than the previous 10MB guard, while preserving media size limits and forwarding cancellation through read_file/read_many_files/ACP paths.

Refs #6403

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): address large text review feedback

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): propagate abort signals in text reads

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): validate streamed utf8 reads

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): handle disabled line truncation for large reads

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): use kebab-case for text range reader

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): preserve artifact size errors for large sources

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): address large text review follow-up

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): allow default large text reads

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): honor text read byte caps

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): clarify invalid utf8 range read errors

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): prevent truncated full large reads

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): preserve unbounded line-zero reads

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): forward artifact read cancellation

Pass artifact execution abort signals into source file reads and preserve cancellation semantics when the read is aborted.

Add regression coverage for unbounded large UTF-8 range reads and offsets beyond EOF.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): address file read review feedback

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(core): preserve large text mutation reads

Allow default unbounded readTextFile calls to keep reading full large text files so mutation tools can prepare complete snapshots after a prior ranged read.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
2026-07-07 11:40:15 +00:00
..
src fix(core): Support large text range reads (#6404) 2026-07-07 11:40:15 +00:00
index.ts fix(cli): add bootstrap fast paths (#6188) 2026-07-02 22:28:11 +00:00
package.json chore(release): v0.19.6 (#6280) 2026-07-03 16:37:54 +00:00
test-setup.ts perf(cli): code-split lowlight to cut startup V8 parse cost (#4070) 2026-05-15 17:26:18 +08:00
tsconfig.json feat(cli): Add daemon-managed channel worker for serve --channel (#6031) 2026-07-01 01:40:54 +00:00
vitest.config.ts fix(serve): optimize daemon NDJSON stream handling (#6263) 2026-07-03 15:27:28 +00:00