[BUG] Terminal UI flickering, overlapping output, and unstable auto-scrolling when using Claude Code in Android Studio
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using Claude Code inside the Android Studio integrated terminal, there are multiple terminal rendering issues that make it difficult to work effectively:
- Continuous UI flickering and overlapping output
• Old terminal output repeatedly redraws and overlaps with new output
• The terminal keeps flickering while Claude is generating or modifying code
- Unstable and aggressive auto-scrolling behavior
• Scrolling slightly upward causes the terminal to jump too far up
• Typing a new command forces the terminal to scroll back to the very top
• Reviewing previous output during long sessions becomes very difficult
These issues together significantly impact usability during longer Claude Code sessions.
What Should Happen?
• Terminal output should render smoothly and consistently without flickering
• Old content should not redraw or overlap new output
• Manual scrolling should be stable and predictable
• Typing new commands should not forcibly reset the scroll position
Error Messages/Logs
No explicit error messages are shown.
This appears to be a terminal rendering / UI refresh issue.
Steps to Reproduce
- Open Android Studio
- Open the integrated Terminal
- Run Claude Code (e.g. claude)
- Start a task that generates or edits multiple files
- Observe:
• Terminal flickering
• Output overlapping or re-rendering repeatedly
- Scroll slightly upward during output
- Type a new command
- Observe:
• Terminal jumps excessively
• Scroll resets to the top automatically
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.76 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
This issue appears to be specific to Android Studio’s terminal and may be related to how ANSI output, redraws, or auto-scroll are handled during frequent terminal updates. Android Studio is a common environment for mobile developers, so this impacts real-world usage significantly
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗