gemini-cli PR fixes terminal flicker from stdout contention and native cursor thrash
buraga-kyo · ghdev · 2026-09-12
A community PR (google-gemini/gemini-cli #29294) fixes aggressive terminal flickering when typing while background commands run.
- Root causes: CliSpinner animation updates contend with InputPrompt's heavy re-renders (syntax highlighting, ghost text) over stdout — with no double-buffering, ink's ANSI line-clearing causes visible tearing. Additionally, simulating a cursor via chalk.inverse while enabling terminalCursorFocus forces the native cursor to toggle visibility and recalc ANSI positions on every keystroke.
- Fix: a new AppEvent.UserTyping event debounces the spinner (static frame for 150ms during typing), and the redundant native cursor focus is disabled in favor of the simulated block cursor.
- Author verified locally: typing is now completely smooth with concurrent CLI operations.
More from coding & agent
- Todoist's self-healing agent auto-fixes 1 in 5 Sentry issues and opens PRs — zeeg · 2026-10-31
- Dev's Multica 1.0 build log: 432M tokens, 89 agent runs, just $183 — jiayuan_jy · 2026-10-31
- Stardock's QA now runs agents that play the game and file reports — draginol · 2026-10-31
- Limma MCP structures unstructured data end-to-end so agents never miss a detail — FlimsyIngenuity7248 · 2026-10-31
- Agent audit metric: can you name which tests ran and files changed without reading its summary? — ronbodkin · 2026-10-31
- FlowSense MCP lets Claude Code inspect and firewall your Mac's network traffic locally — hani_q · 2026-10-31