Terminal output causes terminal rename input to lose focus

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When any integrated terminal session prints output, the inline rename input for terminal sessions loses focus. This makes terminal renaming fail or become very hard to complete while another terminal is producing output.

The output does not need to come from the terminal being renamed. It can come from a different terminal session. The terminal does not need to be scrolling yet; a simple print event is enough to trigger the focus loss.

Steps to Reproduce

  1. Open two integrated terminal sessions.
  2. In terminal A, run:
    for i in $(seq 1 100); do printf '%03d\n' "$i"; sleep 0.3; done
  3. While terminal A is printing numbers, try to rename terminal B.
  4. Observe that the rename input loses focus as soon as terminal output occurs.
  5. After terminal A stops printing, try renaming terminal B again.

Expected Behavior

The terminal rename input should keep focus until I press Enter/Escape or click away, even if another terminal session prints output.

Actual:
The rename input loses focus when terminal output occurs, so the rename is interrupted.

Operating System

Linux

Version Information

  • Cursor: 3.1.17
  • Commit: fce1e9ab7844f9ea35793da01e634aa7e50bce90
  • Package: cursor 3.1.17-1776628399, installed via apt/deb
  • Build date: 2026-04-19T19:33:58.189Z

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. The video and clear steps help a lot.

I can reproduce it, and the bug is real. Any title-change event from a nearby terminal, and shell integration sends these a lot while a command is running, triggers a refresh of the tab list, which steals focus from the active rename input. I reported it internally.

No fix timeline yet, but the issue is logged. If there’s an update, I’ll reply in the thread.

As a temporary workaround, you can rename the terminal when nearby sessions are idle, or right click the tab and use Rename after the output stops.

1 Like

Hi Dean, thanks for the quick reply. Glad to help. Yeah it’s not life or death bug, but it’s a little bit annoying.

Hope to see it fixed in the short term.

Best,

1 Like