qwen-code/packages
顾盼 875f3ffeb4
fix(core): add shell argument quoting guidance to prevent special char errors (#3327)
* fix(core): add shell argument quoting guidance to prevent special char errors

When models pass arguments containing special characters (parentheses,
backticks, single quotes, dollar signs, etc.) to shell commands like
`gh pr create --body '...'`, bash can misinterpret them as shell syntax,
causing the command to fail with cryptic errors.

Add an explicit quoting guide to `getShellToolDescription()` covering:
- Single quotes: pass everything literally but cannot contain `'`
- ANSI-C quoting (`$'...'`): supports escape sequences including `\'`
- Heredoc: the most robust approach for multi-line or mixed-quote text,
  with a concrete `gh pr create` example

Fixes #3300

* test: update shell tool description snapshots
2026-04-17 15:37:22 +08:00
..
channels chore(release): bump version to 0.14.5 (#3298) 2026-04-15 22:43:29 +08:00
cli feat(cli): support multi-line status line output (#3311) 2026-04-17 12:44:30 +08:00
core fix(core): add shell argument quoting guidance to prevent special char errors (#3327) 2026-04-17 15:37:22 +08:00
sdk-java feat(cli/sdk): expose /context usage data in non-interactive mode and SDK API (#2916) 2026-04-14 03:28:32 +08:00
sdk-typescript fix(sdk): avoid leaking process exit listeners in ProcessTransport (#3295) 2026-04-16 10:52:19 +08:00
vscode-ide-companion feat(memory): managed auto-memory and auto-dream system (#3087) 2026-04-16 20:05:45 +08:00
web-templates chore(release): bump version to 0.14.5 (#3298) 2026-04-15 22:43:29 +08:00
webui feat(memory): managed auto-memory and auto-dream system (#3087) 2026-04-16 20:05:45 +08:00
zed-extension chore(zed-extension): update package version to 0.10.0 2026-02-06 14:26:01 +08:00