qwen-code/packages/cli
euxaristia e6cb9d67ff fix(cli): remove quote-based drag detection to prevent input lag
The previous implementation delayed broadcasting quote characters by 100ms
to detect file drag-and-drop operations. This caused noticeable input lag
when typing quotes, significantly impacting the typing experience.

Modern terminals use bracketed paste mode (PASTE_MODE_PREFIX) for file
drag-and-drop, which is already properly handled. The quote-based heuristic
was an unnecessary fallback that compromised responsiveness.

Changes:
- Remove quote character special handling in KeypressContext
- Remove unused drag-related refs and timers
- Remove drag cleanup code on exit
- Update tests to reflect immediate quote broadcasting

Impact:
- Eliminates input lag when typing quotes and other characters
- Maintains drag-and-drop support via bracketed paste mode
- Reduces code complexity (~75 lines removed)
- Legacy terminals without bracketed paste may need Ctrl+V for file paths

Fixes: input lag when typing single quote (') and double quote (") characters

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-02 16:27:30 -04:00
..
src fix(cli): remove quote-based drag detection to prevent input lag 2026-04-02 16:27:30 -04:00
index.ts fix(cli): sync PTY race condition error handling to global uncaughtException 2026-03-23 21:23:27 +08:00
package.json chore(release): bump version to 0.14.0 2026-04-01 19:23:49 +08:00
test-setup.ts fix: prevent bogus shell permission rules in tests 2026-03-20 17:55:33 +08:00
tsconfig.json Merge pull request #2428 from qqqys/feat/mcp_reconnect_error 2026-04-01 16:53:36 +08:00
vitest.config.ts refactor(core): Unify package exports and improve dev experience 2026-02-01 11:59:05 +08:00