qwen-code/packages/cli/src
yiliang114 d951e30cfa fix: clear retry error messages promptly after auto-retry succeeds
Previously, when an auto-retry countdown elapsed and the server sent a
Retry event (without retryInfo) to signal the actual retry attempt, the
error message was not cleared because `pendingRetryCountdownItemRef` was
still set. This caused stale error messages to persist in the UI until
the user manually initiated a new request.

Additionally, when the user pressed Ctrl+Y to retry, the error was
committed to history (without hint) instead of being discarded. This was
inconsistent with the auto-retry behavior where errors are silently
cleared on success.

Changes:
- Always call clearRetryCountdown() when a Retry event without retryInfo
  is received, removing the flawed guard condition
- Remove error-to-history commit in retryLastPrompt for consistent UX
- Add test covering the countdown-elapsed retry scenario

Closes #2310

Made-with: Cursor
2026-03-12 20:43:29 +08:00
..
acp-integration fix(core): handle ENOENT from ACP readTextFileWithInfo gracefully 2026-03-11 22:37:03 +08:00
commands refactor stop hook 2026-02-22 02:20:45 -08:00
config fix: remove redundant scope field from MCP server display and add CONCAT merge strategy for mcp allowed/excluded lists 2026-03-09 21:38:42 +08:00
constants feat(shell): enable PTY by default and various enhancements 2026-03-05 11:28:13 +08:00
core Merge pull request #1637 from QwenLM/fix/output-language-init-timing 2026-01-29 11:14:07 +08:00
i18n Fix translation for context compression message 2026-03-10 03:17:27 +08:00
nonInteractive feat: add --session-id support for CLI and SDK 2026-02-13 21:40:57 +08:00
patches adh/bugfix/1563 (#4822) 2025-07-25 16:39:37 +00:00
services Merge branch 'main' into feat/shell-pty-default-and-enhancements 2026-03-06 14:36:18 +08:00
test-utils Merge branch 'main' into feat/extension 2026-01-14 17:56:01 +08:00
ui fix: clear retry error messages promptly after auto-retry succeeds 2026-03-12 20:43:29 +08:00
utils Merge branch 'main' into feat/shell-pty-default-and-enhancements 2026-03-06 15:02:41 +08:00
gemini.test.tsx Merge branch 'main' into feat/sandbox-config-improvements 2026-03-06 14:38:39 +08:00
gemini.tsx fix(cli): ignore stream-json input format in TTY mode to prevent hanging 2026-03-02 21:23:59 +08:00
nonInteractiveCli.test.ts feat: add MCP tool progress update support in TUI and SDK mode 2026-02-08 15:48:13 +08:00
nonInteractiveCli.ts feat: add MCP tool progress update support in TUI and SDK mode 2026-02-08 15:48:13 +08:00
nonInteractiveCliCommands.test.ts fix: explicit output if command is not supported 2025-12-26 17:55:03 +08:00
nonInteractiveCliCommands.ts feat(cli): migrate console calls to debugLogger and stdioHelpers (M3 Phase 7-9) 2026-01-26 15:02:37 +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