Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Unable to execute shell commands in latest release

Open p-l-ta opened this issue 5 months ago • 9 comments

Before opening, please confirm:

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

  1. Open Kiro
  2. Messages about unable to launch shell env due to timeout (which was 10 sec, still fails at 20!!!)
  3. 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

p-l-ta avatar Jun 19 '26 20:06 p-l-ta

🤖 Potential Duplicate Detected

This issue appears to be similar to:

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

github-actions[bot] avatar Jun 19 '26 20:06 github-actions[bot]

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 avatar Jun 22 '26 20:06 AnilMaktala

@AnilMaktala Same problem with ZSH and bash

ERR Cannot read properties of undefined (reading 'dimensions'): TypeError: Cannot read properties of undefined (reading 'dimensions') at get dimensions () at u.scrollLines () at x.scrollLines () at x.scrollToBottom () at u.scrollToBottom () at R_.scrollToBottom () at VN.sendText () at async VN.runCommand ()
  | error | @ | workbench.desktop.main.js:38 -- | -- | -- | --   | error | @ | workbench.desktop.main.js:38   | error | @ | workbench.desktop.main.js:11726   | pc | @ | workbench.desktop.main.js:11723   | (anonymous) | @ | workbench.desktop.main.js:11723   | onUnexpectedError | @ | workbench.desktop.main.js:7   | vt | @ | workbench.desktop.main.js:7   | (anonymous) | @ | workbench.desktop.main.js:11723

RohanKaran avatar Jun 26 '26 07:06 RohanKaran

control_bash_process is working so I have to mention agent to use this tool over execute_bash every time

RohanKaran avatar Jun 26 '26 07:06 RohanKaran

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

AnilMaktala avatar Jun 26 '26 19:06 AnilMaktala

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.

Image

RohanKaran avatar Jun 26 '26 20:06 RohanKaran

I was having this issue (almost no terminal commands succeeding), and found one clear culprit and two contributing factors:

  1. 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.
  2. 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!

Herbys68 avatar Jul 01 '26 21:07 Herbys68

I am now on Kiro the latest insider 1.0.108, which is MUCH better.

p-l-ta avatar Jul 10 '26 14:07 p-l-ta

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.

AnilMaktala avatar Jul 10 '26 21:07 AnilMaktala