Skip to content

fix(cli): support Windows and WSL image paste shortcuts - #400

Merged
qorzj merged 3 commits into
mainfrom
fix/windows-image-paste-shortcut
Nov 5, 2026
Merged

qorzj merged 3 commits into
mainfrom
fix/windows-image-paste-shortcut

Conversation

@qorzj

@qorzj qorzj commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Windows terminals can intercept Ctrl+V before the CLI receives it, leaving image paste unresponsive or pasting a file path. Use Alt+V for clipboard images on Windows, and accept both Ctrl+V and Alt+V on WSL. macOS and other Linux environments continue to use Ctrl+V. Text paste keeps its existing behavior.

The prompt footer, welcome tips and CLI help show the available shortcuts for the current environment. Update the Chinese and English README/quickstart documentation and the bundled CLI reference. Regression tests cover shortcut handling and displayed hints, including WSL detection through environment variables and WSL 1/2 kernel identifiers.

Fixes #229. Addresses the Windows clipboard shortcut conflict reported in #319; model selection and File API behavior are outside this change.

Validation:

  • npm run check passed.
  • npm test passed: CLI 523; core 612 with 2 skipped; VS Code extension 88.
  • Windows and WSL terminal behavior has not been manually verified on those systems.

@qorzj qorzj changed the title fix(cli): use Alt+V to paste clipboard images on Windows fix(cli): support Windows and WSL image paste shortcuts Nov 5, 2026
@qorzj
qorzj merged commit e266a24 into main Nov 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ctrl+v 无法粘贴图片

1 participant