[BUG] The autocomplete/dropdown menu in Claude Code CLI is not properly clearing from the terminal display when dismissed or after selection. The menu items remain visible on screen as visual artifacts.

Resolved 💬 3 comments Opened Apr 1, 2026 by jagadeesh52423 Closed May 23, 2026

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?

Description

The autocomplete/dropdown menu in Claude Code CLI is not properly clearing from the terminal display when dismissed or after selection. The menu items remain visible on screen as visual artifacts.

Environment

  • OS: macOS (Darwin 25.3.0)
  • Shell: bash
  • Terminal: Both tmux and normal terminal windows affected
  • Claude Code version: Latest (as of 2026-04-01)

Actual Behavior

Menu items remain visible on screen as leftover text/visual artifacts. See attached screenshot showing leftover menu items including /exit, /export, /executing-plans, /multi-agent-dev, /brainstorming, and /superpowers:execute-plan.

<img width="1496" height="280" alt="Image" src="https://github.com/user-attachments/assets/9f69d92e-7bff-49e1-9ed1-3f582ed0ab10" />

Impact

  • Visual clutter in terminal
  • Confusing user experience
  • Happens consistently in both tmux and standard terminal sessions
  • Affects usability when working with slash commands

Workaround

Pressing Ctrl+L to clear the screen removes the visual artifacts (but shouldn't be necessary).

Technical Notes

This appears to be a terminal buffer management issue where the CLI is not properly sending the escape sequences to clear the menu area before redrawing the prompt. The issue occurs when the dropdown/autocomplete UI is dismissed, suggesting the terminal rendering code is not tracking the menu's screen position correctly for cleanup.

What Should Happen?

The autocomplete menu should be completely cleared from the terminal display when:

  • Menu is dismissed (ESC key)
  • User continues typing past the menu
  • User selects an option

Error Messages/Logs

Steps to Reproduce

  1. Type /ex to trigger autocomplete
  2. Press escape or continue typing to dismiss the menu
  3. Observe that the autocomplete menu items remain visible in the terminal

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.1.89

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗