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
- 10,000 Agents, 88 Hours to Solve CS's Hardest Problems? Skeptic Predicts the Inevitable Backlash — IgorCarron · 2026-09-12
- Stress-Testing an AI Gateway With 100 Concurrent Agents: All HTTP 200, Continuity Collapsed — its_vayishu · 2026-09-12
- Blender MCP hands-on: impressive engineering, but outputs need a full remodel — Intelligent_Prize532 · 2026-09-12
- Managing an army of Claude-built agents: memory, tools, and harnesses — Trokkan · 2026-09-12
- DeepSeek 4.1 Flash wired into Claude Code: open-source model runs agent workflows — jasonkneen · 2026-09-12
- Dev builds a fictional Hinge-style dating app for a simulated fly, dopamine activity drives swipe decisions — w1kke · 2026-09-12