The Agent tries to use PowerShell!

:lady_beetle: Provide a clear description of the bug
Strangely, on my Ubuntu, the agent tries to send command using Powershell. Powershell is indeed installed but it is not the default terminal “language”, it is sh.
When I do ask to commit/push, it generate errors like this

git add . && git commit -m “feat: implement …”

“System.InvalidOperationException: Cannot locate the offset in the rendered text that was pointed by the origina
l cursor. Initial Coord: (64, 14) Buffer: (111, 16) Cursor: (65, 8)
at Microsoft.PowerShell.PSConsoleReadLine.RecomputeInitialCoords(Boolean isTextBufferUnchanged)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Render()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)”

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
cursor 0.48.8, vscode 1.96.2, Linux x64 6.8.0-57-generic (Ubuntu)

:prohibited: Tell us if the issue stops you from using Cursor. Not blocking but very annoying

ps: I know it is a little layzy asking the agent to commit but well, I test so :wink:

Should I have to close my agent window? It does not take into account the change

You need to change the default terminal profile. Here’s a guide:

I did it and the agent still tries to use powershell

"
PS /…/__PROJECTS/personal/multitech-cli> git add templates/mobile/flutter.js && git comm

it -m “docs: add emulator setup instructions to Flutter template”

Oops, something went wrong.

Please report this bug with ALL the details below, including both the ‘Environment’ and ‘Exception’ sections.

Please report on GitHub: Sign in to GitHub · GitHub

Thank you!
"

To be sure, I am not talking abot the IDE terminal but the “terminal” used by the agent chat

“I notice there was an error with the PowerShell environment. Let me try the git commands again …”