Shell Integration script causes StackOverflowException in PowerShell terminal on Windows0.7.45
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
Windows 10 Professional 21H1
Kiro Version
0.7.45
Bug Description
The PowerShell terminal in Kiro crashes immediately on launch when the Kiro shell integration script is enabled in the user's $PROFILE. The crash manifests as a StackOverflowException.
The shell integration script loaded is located at:
c:\Users\HUANGYU46\AppData\Local\Programs\Kiro\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1
(Returned by kiro --locate-shell-integration-path pwsh).
Steps to Reproduce
1.Enable Kiro shell integration in the
$PROFILE by including the line: if ($env:TERM_PROGRAM -eq "kiro") { . "$(kiro --locate-shell-integration-path pwsh)" }.
Current relevant $PROFILE content:
`oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/amro.omp.json" | Invoke-Expression
Set-Alias ll Get-ChildItem
if ($env:TERM_PROGRAM -eq "kiro") { . "$(kiro --locate-shell-integration-path pwsh)" }2.Open a terminal within Kiro. 3.The terminal window crashes instantly. Debug output shows:Process is terminated due to StackOverflowException.`
Expected Behavior
PowerShell can use
Conversation ID
No response
Additional Context
No response
Cheapest Anthropic & OpenAI-Compatible API 🚀
Works with Claude Code, Cursor, Cline, Void, Continue, Kilo Code, OpenClaw, OpenCode, LangChain, Obsidian, IntelliJ — any OpenAI-compatible client.
💰 Pricing (1 credit ≈ $1 original Anthropic)
| Credits | Price | Tokens |
|---|---|---|
| 1k | $5 | ~100M |
| 5k | $15 | ~500M |
| 10k | $30 | ~1B |
🤖 Models: claude-opus-4-6 / sonnet-4-6 / haiku-4-5 (1M ctx + websearch)
✅ Why us?
- 100 trial credits before payment
- Credits issued before payment
- Any country, any payment method
- 400+ clients, quality guarantee
- We can prove Opus is real and explain pricing
📩 Telegram: @yon_sup
Hi, this was filed against IDE 0.7.45. PowerShell terminal integration was completely reworked in CLI 2.0 (Apr 13, 2026) with native Windows support. The shell integration scripts have been rewritten since this version.
If you're still experiencing this on the latest version, please open a new issue.
Closing as resolved.