qwen-code/packages/cli
易良 bb96ac4fe5
fix(cli): forward user input to MCP prompts with no declared arguments (#6571)
* fix(cli): forward user input to MCP prompts with no declared arguments

When a prompt declares no arguments, parseArgs() silently discarded
all user input. Forward named args as-is and positional input under
the "input" key, matching Claude Code's behavior.

Fixes #6563

* fix(cli): strip quotes and guard input key in MCP prompt arg forwarding

- Use positionalArgs.join(' ') instead of positionalArgsString to
  properly strip quotes from positional input, consistent with the
  existing single-arg path.
- Guard against overwriting a user-provided --input named arg with
  positional text.
- Add comment explaining the input key convention.

* fix(cli): update help text for no-argument MCP prompts

The help text previously said the prompt 'has no arguments', which is
now misleading — user input is forwarded as-is. Updated to explain
that free-form text is accepted and how it maps to the input key.
2026-07-09 12:49:01 +00:00
..
src fix(cli): forward user input to MCP prompts with no declared arguments (#6571) 2026-07-09 12:49:01 +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.8 (#6549) 2026-07-08 15:51:03 +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(channels): add WeCom intelligent robot channel (#6436) 2026-07-07 15:24:19 +00:00
vitest.config.ts feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00