Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Terminals keep closing

Open chrisc0 opened this issue 5 months ago • 7 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

1.0.0

Bug Description

In the latest Kiro release you've made it much, much harder to follow along with what Kiro is doing. I have to be able to follow along with what all agents are doing at all time to correct and steer their behavior. Like right now I'm being asked for my approval to continue. The context is "1". What the heck am I supposed to do with that? In addition, any time terminal commands are run it opens a terminal, runs the command and then immediately closes again!! How on earth am I supposed to be able to follow along??!

Steps to Reproduce

Run tasks

Expected Behavior

Keep the terminals open. Never close automatically. Make it extremely easy to see what an agent is doing at any one time. Group by task. Just like before. You've gone and ruined the entire well working workflow.

Conversation ID

No response

Additional Context

No response

chrisc0 avatar Jun 17 '26 11:06 chrisc0

🤖 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 issues report problems with terminal/shell command execution in Kiro CLI 2.0, with the new issue specifically mentioning terminals closing immediately and #7438 discussing interactive and long running shell commands issues

github-actions[bot] avatar Jun 17 '26 11:06 github-actions[bot]

Don't think this is a duplicate - the issue is new with the latest release in that there is no terminal icon on the commands in the chat, AND I can't even see the terminal sessions for Kiro unless I already have a terminal open.

The sessions also close so I can't review the output once Kiro is done with it, which makes it much less useful.

Reproduction:

  1. start a conversation that needs to run a command
  2. approve the execution - nowhere on the conversation is there the nice row of buttons and terminal icon.
  3. Open a terminal, then you will see a Kiro tagged terminal
  4. Notice that the terminal closes after the conversation or subagent is done with the command and processes the output.

So far I've been unable to see how to change that behavior

Note: this was working the way I'd expect before - there was a bit of a bug in that it would open new terminals sometimes when it wasn't apparent it needed them, but at least the output was there until you closed it.

Oh and FWIW, I am on OSX with latest version as well

Version: 1.0.0 VSCode Version: 1.107.1 Commit: 0974fb9837d3a1c159ee4016bbbcd4fc21e14111 Date: 2026-06-17T02:33:34.894Z Electron: 39.6.0 Chromium: 142.0.7444.265 Node.js: 22.22.0 V8: 14.2.231.22-electron.0 OS: Darwin arm64 25.5.0

robw-adobe avatar Jun 18 '26 20:06 robw-adobe

Thank you for your feedback! 🙏

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

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

https://github.com/user-attachments/assets/2b93fdcb-fae3-48a4-986d-b36b4a9c522f

See this video - shows the issue pretty well as the conversation writes some code that doesn't finish due to syntax errors, I find the terminal kill it, the terminal goes away. Next command (which finishes) pops up other terminals which also disappear.

robw-adobe avatar Jun 18 '26 20:06 robw-adobe

Yes can we please revert this change that closes the terminal or at least get a setting where we can choose to leave it open, I'm currently stuck on my project where it is trying to run a simple cargo build and it fails 7 times and then wants to give up and it does this the whole time as the steering documents in our project instructs Kiro to build after making changes. When I take the same command it tried to run and I run it manually it works perfectly file, but since the Terminal is being closed I can't see what issue Kiro is actually experiencing.

This is also an issue as we have a set of custom skills to enforce certain flows and checks during development and this keeps interrupting is as you neem do Cancel the agent flow, tell it that you built the code yourself and it can continue (and it doesn't always continue in the same way deviating from the skill instructions)

And some times it just breaks over and over and doesn't even give an output

Image Image

werner-hoziron avatar Jul 01 '26 07:07 werner-hoziron

Thanks @chrisc0 for the report, and @robw-adobe and @werner-hoziron for the additional detail and video. This is clearly a regression from the pre-1.0 terminal behavior where agent terminals stayed open after execution.

Three symptoms identified:

  1. Terminals auto-close after commands complete — can't review output
  2. No terminal icon/button in chat to reopen closed terminals
  3. @werner-hoziron: Terminal closing mid-execution causing cargo build failures (commands work manually but fail when agent runs them due to premature close)

IDE 1.0.116 (Jul 9) shipped terminal and "Run Command" reliability fixes. Could @werner-hoziron and others check if the auto-close behavior and the build-failure symptom still reproduce on 1.0.116?

To update: download from kiro.dev.

AnilMaktala avatar Jul 13 '26 18:07 AnilMaktala

This issue has been automatically closed due to inactivity. It has been 7 days since we requested additional information.

If you still need help with this issue, please feel free to reopen it or create a new issue with the requested details.

github-actions[bot] avatar Jul 21 '26 00:07 github-actions[bot]