qwen-code/packages/cli/src/ui/utils
tanzhenxin d6f5d9997f fix(cli): prevent terminal response leakage on high-latency SSH
When SSHing into a VM with network latency, terminal responses to startup
queries (kitty protocol detection) can arrive after the 200ms timeout expires.
The original code immediately restored raw mode, causing late responses to
leak through as visible text.

This fix adds two layers of defense:
1. Drain handler in kittyProtocolDetector: Adds a 100ms window after timeout
   to silently consume late-arriving responses
2. Regex filter in KeypressContext: Catches any terminal response patterns
   that make it past the detection phase, regardless of timing

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 12:09:37 +00:00
..
__snapshots__ Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
export refactor(core): rename read_file parameter from absolute_path to file_path 2026-03-20 11:05:47 +08:00
clipboardUtils.test.ts feat add multi-platform support 2026-02-10 14:38:01 +08:00
clipboardUtils.ts feat add multi-platform support 2026-02-10 14:38:01 +08:00
CodeColorizer.tsx fix: update colorizeCode calls to use new parameter order 2026-03-04 20:12:58 +08:00
commandUtils.test.ts fix: character encoding corruption when executing the /copy command on Windows. (#1069) 2025-11-20 10:23:17 +08:00
commandUtils.ts fix(cli): harden /btw command error handling and type safety 2026-03-22 01:21:07 +08:00
computeStats.test.ts # 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483) 2025-09-01 14:48:55 +08:00
computeStats.ts # 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483) 2025-09-01 14:48:55 +08:00
displayUtils.test.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
displayUtils.ts feat(arena): add IDLE status for agent follow-up task support 2026-03-09 21:33:48 +08:00
formatters.test.ts feat(ui): enhance LoadingIndicator to display token counts and improve formatting 2026-03-17 20:10:54 +08:00
formatters.ts feat(ui): enhance LoadingIndicator to display token counts and improve formatting 2026-03-17 20:10:54 +08:00
highlight.test.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
highlight.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
InlineMarkdownRenderer.tsx feat(arena): Add agent collaboration arena feature 2026-02-18 10:51:35 +08:00
isNarrowWidth.ts feat(ui): Improve UI layout adaptation for narrow terminals (#5651) 2025-08-07 22:55:53 +00:00
kittyProtocolDetector.ts fix(cli): prevent terminal response leakage on high-latency SSH 2026-03-27 12:09:37 +00:00
layoutUtils.ts feat(cli): add agent composer UI and refactor text input handling 2026-03-10 16:53:10 +08:00
MarkdownDisplay.test.tsx feat: Redesign CLI welcome screen and improve visual consistency 2026-01-16 11:48:31 +08:00
MarkdownDisplay.tsx fix: update colorizeCode calls to use new parameter order 2026-03-04 20:12:58 +08:00
markdownUtilities.test.ts pre-release commit 2025-07-22 23:26:01 +08:00
markdownUtilities.ts pre-release commit 2025-07-22 23:26:01 +08:00
platformConstants.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
resumeHistoryUtils.test.ts feat(core,cli): add Anthropic provider, normalize auth/env config, and centralize logging 2025-12-24 19:00:56 +08:00
resumeHistoryUtils.ts refactor(core): rename TaskTool to AgentTool 2026-03-19 14:55:14 +08:00
sessionPickerUtils.test.ts rework /resume slash command 2025-12-16 19:54:55 +08:00
sessionPickerUtils.ts fix review comments 2025-12-16 20:36:24 +08:00
TableRenderer.tsx feat: Redesign CLI welcome screen and improve visual consistency 2026-01-16 11:48:31 +08:00
terminalSetup.ts feat(cli): migrate console calls to debugLogger and stdioHelpers (M3 Phase 7-9) 2026-01-26 15:02:37 +08:00
textUtils.test.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
textUtils.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
updateCheck.test.ts # 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483) 2025-09-01 14:48:55 +08:00
updateCheck.ts feat(cli): migrate console calls to debugLogger and stdioHelpers (M3 Phase 7-9) 2026-01-26 15:02:37 +08:00