warp icon indicating copy to clipboard operation
warp copied to clipboard

Warp PowerShell Execution Policy Changes - No input is allowed

Open Devashan opened this issue 1 year ago • 10 comments

Pre-submit Checks

Describe the bug

Image

My Warp was taking a while to load the powershell instance. I clicked "Show initialization block" and saw that I powershell required user input to continue. I continued to try accept the execution policy change and it it does not capture the input to accept.

Reloading Warp or opening a new tab opens a PowerShell instance with this prompt skipped.

To reproduce

No idea, sorry 🙈.

Expected behavior

I can type Y/A/N and click enter to submit the execution policy change

Screenshots, videos, and logs

Image

Operating system (OS)

Windows

Operating system and version

Windows 11 Pro 24H2 (26100.3476)

Shell Version

No response

Current Warp version

v0.2025.03.12.08.02.stable_03

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Devashan avatar Mar 25 '25 09:03 Devashan

Hi @Devashan, I'm sorry to hear about this issue. Can you run . $PROFILE on another terminal to see if you get the prompt for that execution policy? If so, then I suspect you may need to run Warp as an administrator or review your $PROFILE to make sure the script on there has the right permissions to run.

To anyone else facing this issue, please add a 👍 to the original post at the top or comment with your details, and subscribe if you'd like to be notified.

dannyneira avatar Mar 25 '25 14:03 dannyneira

@dannyneira I'm experiencing the same issue after the recent update. Running $PROFILE directly in PowerShell works as expected. However, I can no longer start Warp at all. None of the options listed in the initialization block are selectable.

Image

jacek-jaskolski avatar Mar 27 '25 08:03 jacek-jaskolski

Same for me here. Running as Administrator.

Image

pedroncios avatar Mar 27 '25 17:03 pedroncios

Hey folks, looking into this i was able to reproduce the issue on the first install/run, but not upgrade. I suspect this may have do to with the running of the pwsh.ps1 script in Warp's installation directory, this is the script we use bootstrap Warps features (Input Editor, Blocks, Agent Mode, etc).

If you can please click the "show initialization block" and provide the output of that along with the logs so that we can investigate further. Run this in Windows Terminal to zip the logs to your Desktop:

Compress-Archive -Path "$env:LOCALAPPDATA\warp\Warp\data\logs\warp.log*" -DestinationPath "$HOME\Desktop\warp-logs.zip" -Force

https://docs.warp.dev/help/sending-us-feedback#gathering-warp-logs

dannyneira avatar Mar 28 '25 17:03 dannyneira

Hi all! The latest Warp version v0.2025.03.26.08.10.stable_02 contains an update which may fix this. Can y'all try it on that version and post whether that fixes your issue?

acarl005 avatar Mar 28 '25 17:03 acarl005

Hi all! The latest Warp version v0.2025.03.26.08.10.stable_02 contains an update which may fix this. Can y'all try it on that version and post whether that fixes your issue?

Works for me after the update! Thank you so much @acarl005 !

pedroncios avatar Mar 28 '25 18:03 pedroncios

@jacek-jaskolski @Devashan can you please confirm the latest version fixed the issue for you as well?

dannyneira avatar Mar 28 '25 18:03 dannyneira

Hi @dannyneira, updated Warp to the latest version (v0.2025.03.26.08.10.stable_02) and everything seems to work as expected again.

Thanks for the assistance ⭐

Devashan avatar Apr 01 '25 11:04 Devashan

@dannyneira works as well! Thanks for quick reaction.

jacek-jaskolski avatar Apr 01 '25 14:04 jacek-jaskolski

@dannyneira updated to the v0.2025.03.26.08.10.stable_02 and this started to happen

warp-logs.zip

tomashora avatar Apr 02 '25 11:04 tomashora