Command Completion Not Recognized in Cursor Chat When Using zsh p10k theme

I am writing to report a bug I encountered when using Cursor in combination with the powerlevel10k (p10k) Zsh theme.

Issue Description

When AI execute a command in the terminal, Cursor is unable to detect when the command has completed. This causes issues with features that rely on knowing whether a command is still running or has finished (e.g., prompt updates, inline feedback, etc.).

After conducting several tests, I found that this issue seems to be related to an incompatibility with powerlevel10k. When I disable p10k and switch to a simpler Zsh prompt, the problem disappears.

Environment

  • Shell: Zsh
  • Theme: powerlevel10k

Steps to Reproduce

  1. Enable powerlevel10k in .zshrc
  2. Open a new terminal window in Cursor
  3. Run any command (e.g., sleep 3)
  4. Observe that Cursor does not correctly detect when the command has completed

Expected Behavior

Cursor should accurately recognize the completion of commands even when p10k is active.

Actual Behavior

Cursor does not detect command completion when using p10k, possibly due to how p10k renders the prompt or manages output.

Request

I am unsure whether this is a known limitation or a bug. Could you please advise if there’s a recommended configuration or workaround for using Cursor with p10k? I’d appreciate any guidance or fixes you can suggest.

Thank you for your time and support!

1 Like

related

i’m also having this issue. please escalate @danperks

i’m using this mcp as a backup for now

1 Like

ahh this makes sense now why the issue isnt as widespread, although a LOT of people do use powerlevel10k, I wonder when we’ll see a fix.