qwen-code/packages/cli/src
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
..
acp-integration Merge pull request #2731 from QwenLM/feat/in-session-cron-loops 2026-04-01 16:18:46 +08:00
commands Merge pull request #2428 from qqqys/feat/mcp_reconnect_error 2026-04-01 16:53:36 +08:00
config Merge pull request #2628 from QwenLM/feat/channels-telegram 2026-04-01 16:19:08 +08:00
constants fix(docs): update references from Bailian to ModelStudio in README and localization files 2026-03-27 17:55:42 +08:00
core fix(cli): preserve selected auth type on startup auth failure 2026-03-04 16:13:24 +08:00
i18n remove hooks experimental and refactor hook Config 2026-04-01 11:50:23 +08:00
nonInteractive refactor(core): rename TaskTool to AgentTool 2026-03-19 14:55:14 +08:00
patches adh/bugfix/1563 (#4822) 2025-07-25 16:39:37 +00:00
services fix: hide skills with cron allowedTools when cron is disabled 2026-04-02 10:24:49 +08:00
test-utils feat(cli): make /btw command non-blocking with parallel execution 2026-03-20 00:25:51 +08:00
ui fix(cli): remove quote-based drag detection to prevent input lag 2026-04-02 16:27:30 -04:00
utils refactor(core): rename TaskTool to AgentTool 2026-03-19 14:55:14 +08:00
gemini.test.tsx remove hooks experimental and refactor hook Config 2026-04-01 11:50:23 +08:00
gemini.tsx Merge pull request #2628 from QwenLM/feat/channels-telegram 2026-04-01 16:19:08 +08:00
nonInteractiveCli.test.ts feat(cron): make cron tools opt-in via experimental settings 2026-03-29 02:25:28 +00:00
nonInteractiveCli.ts fix(cron): prevent concurrent cron execution and queue properly 2026-03-30 19:49:17 +08:00
nonInteractiveCliCommands.test.ts feat(cli): make /btw command non-blocking with parallel execution 2026-03-20 00:25:51 +08:00
nonInteractiveCliCommands.ts feat(cli): make /btw command non-blocking with parallel execution 2026-03-20 00:25:51 +08:00
validateNonInterActiveAuth.test.ts refactor(debug): replace ConsolePatcher with debugLogger and update error reporting 2026-02-02 17:37:54 +08:00
validateNonInterActiveAuth.ts Merge branch 'main' into feat/debug-logging-refactor 2026-02-01 20:47:38 +08:00