qwen-code/packages
AlexHuang 49aa4c8ab5
fix(cli): show file path in compact tool summary for single collapsible tools (#6448)
* fix(cli): show file path in compact tool summary for single collapsible tools

buildToolSummary() previously discarded the description field from
collapsible tools (ReadFile, Grep, Glob, ListFiles), showing only
generic counts like 'Read 1 file'. Now shows the actual file path or
search pattern for single tools, while preserving count format for
batches of multiple tools of the same type. Falls back to count format
when description is unavailable.

Signed-off-by: Alex <alex.tech.lab@outlook.com>

* fix(cli): sanitize description in buildToolSummary for error args and ANSI

When a tool call errors, useReactToolScheduler sets description to
JSON.stringify(args) which produces '{...}' blobs. Strip ANSI escape
sequences and reject JSON-looking descriptions so the summary falls
back to the count format instead of rendering raw JSON.

Signed-off-by: Alex <alex.tech.lab@outlook.com>

* fix(cli): broaden ANSI stripping and replace newlines with spaces in summary

Strip all common ANSI escape sequences (OSC, charset, CSI, single-byte
ESC) instead of just CSI. Replace all C0 control characters including
newlines with spaces so embedded \n in shell descriptions does not
break the single-line compact summary layout.

Signed-off-by: Alex <alex.tech.lab@outlook.com>

* test(cli): update ToolGroupMessage expectations for description-based summary

The buildToolSummary change from 'Read 1 file' to 'Read a.ts' broke
4 assertions in ToolGroupMessage.test.tsx. Update all 5 occurrences
to use the new description-based format.

Signed-off-by: Alex <alex.tech.lab@outlook.com>

---------

Signed-off-by: Alex <alex.tech.lab@outlook.com>
2026-07-08 05:26:47 +00:00
..
acp-bridge feat(cli): Add serve env isolation and total admission (#6416) 2026-07-08 00:52:36 +00:00
audio-capture chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
channels fix(channel): Relay ACP permission requests (#6446) 2026-07-08 03:27:25 +00:00
chrome-extension chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
cli fix(cli): show file path in compact tool summary for single collapsible tools (#6448) 2026-07-08 05:26:47 +00:00
core fix(core): reject Windows-style workspace artifact paths (#6483) 2026-07-08 03:29:12 +00:00
cua-driver fix(cua-driver): bump BAKED_VERSION to 0.7.0 (#6241) 2026-07-03 07:32:23 +00:00
desktop fix(desktop): preserve glued automation history records (#6344) 2026-07-05 23:53:49 +00:00
mobile-mcp chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
sdk-java fix(core): Align MCP OAuth guidance and docs (#5589) 2026-06-24 07:09:53 +08:00
sdk-python doc[sdk-python] Expand Python SDK usage documentation (#3995) 2026-05-12 15:27:00 +08:00
sdk-typescript fix(serve): classify interrupted model stream errors (#6422) 2026-07-07 13:38:56 +00:00
vscode-ide-companion chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
web-shell fix(web-shell): hide sidebar settings text when width is insufficient (#6494) 2026-07-08 02:41:41 +00:00
web-templates chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
webui chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
zed-extension chore(deps): upgrade ink 6.2.3 → 7.0.2 + bump Node engine to 22 (#3860) 2026-05-11 17:29:50 +08:00