Usability: Warp Agent Crashes with PSReadLine Error
Environment:
- OS: Windows 10 (win32 10.0.26100)
- Warp Version: Latest (as of 2025-07-09)
- Shell: PowerShell (
C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe) - Workspace Path:
<WORKSPACE_PATH>
Description:
The Warp agent crashes with a System.ArgumentOutOfRangeException in PSReadLine when creating example.md via PowerShell for an amoCRM widget project. It processes logs (console logs/) and SDK files (<INSTRUCTIOINS_PATH>/<SDK_PATH>/), but fails on:
. { . { @"..."@ } | Out-File -FilePath "<WORKSPACE_PATH>\example.md" -Encoding UTF8 -Force }
Error:
- Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the buffer size in this dimension. Parameter name: top. Actual value was -96/-160. - Source:
System.Console.SetCursorPositioninMicrosoft.PowerShell.PSConsoleReadLine. - Additional Error:
Exception calling "BackwardDeleteLine" with "0" arguments: "The value must be greater than or equal to zero and less than the buffer size in this dimension. Parameter name: top. Actual value was -160."
Steps to Reproduce:
- Set up a project in Warp at
<WORKSPACE_PATH>. - Instruct agent to create an
.mdfile using PowerShell (Out-File, UTF-8). - Agent reads logs and SDK files.
- Agent executes nested PowerShell command.
- Warp crashes with the error.
Expected:
- Agent creates
.mdfile without crashing. - No
PSReadLineerrors.
Actual:
- Agent outputs logs, then crashes during PowerShell execution.
Tried:
- Restarted Warp.
- Verified UTF-8 encoding.
- Simplified instructions, but the crash persists. (Side note: trying to work around this burned over 1,500 requests in a few days, ouch!)
Details:
- Project: amoCRM widget with 104
.mdSDK files, logs,script.js. - Tools:
grep_search,read_file, PowerShell peruser_rules.md.