Unable to execute shell commands in latest release
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
darwin
Kiro Version
1.0.0
Bug Description
- shell not working, can't do much
- Agent Focus removed all my IDE sessions on restart, lost context
Steps to Reproduce
- Open Kiro
- Messages about unable to launch shell env due to timeout (which was 10 sec, still fails at 20!!!)
- try to use shell, even a simple "echo" by the AI fails
Expected Behavior
Shell execution woks like it did in previous versions
Conversation ID
No response
Additional Context
No response
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #9501: Kiro 1.0.0 — agent shell commands (execute_pwsh) no longer run in a visible, interactive terminal (95% similar)
- #9571: Tool execution won't finish (85% similar)
- #9544: Chat gets hung up while trying to run command after file changes (85% similar)
- #9512: execute_pwsh tool unavailable after Kiro update (85% similar)
- #9498: Terminal broken after update — "Cannot launch conpty" after switching to Agent Focus mode (85% similar)
- #9483: execute_bash tool returns empty stdout on all commands mid-session (85% similar)
- #9180: CLI returns <tool_use> markup with intended tool
in response but doesn't execute the command (85% similar) - #8992: Shell tool cannot handle interactive stdin input on macOS (kinit, ssh-add, etc.) (85% similar)
- #8090: Kiro CLI Shell Tool — Environment Isolation Regression (85% similar)
- #7491: fsWrite and executeBash drop parameters after context compaction (85% similar)
- #7431: [Bug] Shell tool fails on Windows native kiro-cli 2.0 (85% similar)
- #9535: Bash keeps returning empty (82% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both report shell command execution failures in Kiro 1.0.0 - new issue mentions shell not working and AI shell commands failing, while #9501 specifically reports agent shell commands no longer running properly
Hey @p-l-ta, thanks for raising this. We're tracking several distinct 1.0.0 terminal issues with the same surface symptom (see #9628 for the full breakdown). You mentioned "unable to launch shell env due to timeout (10s, still fails at 20)" — could you share the exact error text and any output from Help → Toggle Developer Tools → Console around the time of the failure? That will tell us whether this is one of the three known modes or a separate issue.
Removing the duplicate label — the bot's match was incorrect.
@AnilMaktala Same problem with ZSH and bash
control_bash_process is working so I have to mention agent to use this tool over execute_bash every time
Hi! Several updates have shipped since this was filed — the latest is Kiro IDE 1.0.52, which includes terminal handling improvements. Could you update and let us know if this is still happening?
To update: download from kiro.dev.
If the issue persists after updating, please share:
- Your current version (Help → About)
- Whether the workaround mentioned in your report still applies
- A Conversation ID if possible
For me latest is still 1.0.0, no updates available on Kiro IDE nor showing on changelog, will wait for 1.0.52, but problem still persists.
I was having this issue (almost no terminal commands succeeding), and found one clear culprit and two contributing factors:
- the culprit: the default timeout setting of -1 is broken. Kiro was literally taking it as "if command takes more than -1 millisecond to process, terminate it". I swapped the value to 10000 and it all now works, always.
- Contributing factors: the auto-selection of terminal profile was a problem, seemed to have been picking some unsupported terminal. Switched to "PowerShell" (which uses PS7) and reliability improved (this was before the -1 fix, so improvement was partial). I also noticed that I had a custom PowerShell prompt (showing the time and path as part of the prompt) and Kiro was mangling it with its own prompt wrapping.
But the key bug is the -1, switching the terminal timeout to a longer value fixed my prompt issues. Kiro is useful again!
I am now on Kiro the latest insider 1.0.108, which is MUCH better.
Thanks for the follow-up, @p-l-ta — glad to hear 1.0.108 resolved this. The terminal execution improvements shipped progressively through 1.0.52 → 1.0.89 → 1.0.108, addressing shell initialization timeouts and command delivery reliability.
Closing as completed. If you hit shell execution issues again on a future version, please open a new issue with the version and a Conversation ID.