mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-10 01:29:17 +00:00
* 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. |
||
|---|---|---|
| .. | ||
| src | ||
| index.ts | ||
| package.json | ||
| test-setup.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||