qwen-code/packages/cli/src/ui/contexts
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
..
AgentViewContext.tsx feat(arena): improve agent UI with header info and simplify worktree branches 2026-03-11 11:04:46 +08:00
AppContext.tsx Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
ConfigContext.tsx Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
KeypressContext.test.tsx fix(keypress): handle unsupported Kitty CSI-u keys and recover plain text 2026-03-17 14:02:41 +08:00
KeypressContext.tsx fix(cli): prevent terminal response leakage on high-latency SSH 2026-03-27 12:09:37 +00:00
OverflowContext.tsx Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
SessionContext.test.tsx Session-Level Conversation History Management (#1113) 2025-12-03 18:04:48 +08:00
SessionContext.tsx Session-Level Conversation History Management (#1113) 2025-12-03 18:04:48 +08:00
SettingsContext.tsx Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
ShellFocusContext.tsx Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
StreamingContext.tsx Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
UIActionsContext.tsx Merge pull request #2668 from JohnKeating1997/feat/optimize-auth-intro 2026-03-27 17:38:17 +08:00
UIStateContext.tsx Merge pull request #2602 from QwenLM/feat/hooks-refactor-hooks-ui 2026-03-26 20:11:50 +08:00
VimModeContext.tsx refactor: refactor settings to a nested structure (#7244) 2025-08-28 01:39:45 +00:00