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
- Enable powerlevel10k in
.zshrc
- Open a new terminal window in Cursor
- Run any command (e.g.,
sleep 3
) - 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!