mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
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>
|
||
|---|---|---|
| .. | ||
| acp-integration | ||
| commands | ||
| config | ||
| constants | ||
| core | ||
| i18n | ||
| nonInteractive | ||
| patches | ||
| services | ||
| test-utils | ||
| ui | ||
| utils | ||
| gemini.test.tsx | ||
| gemini.tsx | ||
| nonInteractiveCli.test.ts | ||
| nonInteractiveCli.ts | ||
| nonInteractiveCliCommands.test.ts | ||
| nonInteractiveCliCommands.ts | ||
| validateNonInterActiveAuth.test.ts | ||
| validateNonInterActiveAuth.ts | ||