qwen-code/packages/cli
ChiGao 4bab7a1ad6
Some checks are pending
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (macos-latest, Node 22.x) (push) Waiting to run
Qwen Code CI / Test (ubuntu-latest, Node 22.x) (push) Waiting to run
Qwen Code CI / Test (windows-latest, Node 22.x) (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
fix(cli): replace clearTerminal with targeted repaint on resize (#3967)
Add repaintStaticViewport() that uses cursorTo(0,0)+eraseDown instead
of the full clearTerminal (ESC[2J ESC[3J ESC[H]) sequence. Hook it to
terminal width changes via a new useEffect that guards against no-op
repaints when width is unchanged.

clearTerminal remains in use for explicit refreshStatic() calls (model
switches, /clear, etc.) where a full history remount is intended.
previousTerminalWidthRef ensures the resize effect only fires on actual
column changes, not height-only resizes.

Closes the full-screen flash that occurs on every terminal width change.

Generated with AI

Co-authored-by: 秦奇 <gary.gq@alibaba-inc.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-09 18:27:03 +08:00
..
src fix(cli): replace clearTerminal with targeted repaint on resize (#3967) 2026-05-09 18:27:03 +08:00
index.ts fix(cli): stop double-wrapping and double-printing API errors in non-interactive mode (#3749) 2026-05-03 08:39:31 +08:00
package.json chore(release): v0.15.9 [skip ci] 2026-05-08 22:46:11 +08:00
test-setup.ts fix: prevent bogus shell permission rules in tests 2026-03-20 17:55:33 +08:00
tsconfig.json Add background agent resume and continuation (#3739) 2026-05-01 12:14:33 +08:00
vitest.config.ts refactor(core): Unify package exports and improve dev experience 2026-02-01 11:59:05 +08:00