DEV Community

Cover image for "execute_pwsh failed 7 times in a row" -Kiro
Zaphod Dev
Zaphod Dev

Posted on Edited on

"execute_pwsh failed 7 times in a row" -Kiro

When I'm using Kiro on Windows with WSL, this often happens:

I've been trying to use "execute_pwsh" but it's failed 7 times in a row. I'm clearly stuck in a loop.

What would you like me to do?

  • Cancel
  • Keep Iterating

Neither of those, actually.

I would like Kiro to remember that when wsl commands return an error code, that code should be ignored because it does not indicate a failure.

I have tried adding steering but it doesn't help Kiro remember:

When running execute_pwsh for WSL commands, the exit code will be wrong; ignore it.

I've even written an Agent Hook with "Prompt Submit" trigger, to specifically include that steering with every single prompt. It still doesn't work.

Clicking Keep Iterating somehow causes Kiro to think harder and break out of the loop 🤷‍♂️

Top comments (0)