Skip to content

Cannot interrupt hanging shell process #6852

@evgenijkostin

Description

@evgenijkostin

Before opening, please confirm:

Operating System

Ubuntu 24.04.4 LTS

Kiro Version

1.28.1

Bug Description

In --tui mode, if a shell command hangs (e.g. sudo without permissions, or network request to unreachable host), it cannot be interrupted by
Ctrl+C, Ctrl+Z or any other key combination. The only way out is to kill the kiro-cli process externally.

Steps to Reproduce

  1. Run: kiro-cli chat --tui
  2. Ask kiro to execute a hanging shell command, e.g.:
    • sudo command (without sudo rights)
    • curl to an unreachable host
  3. Try to interrupt with Ctrl+C / Ctrl+Z

Expected: process is interrupted
Actual: no reaction, process hangs until killed externally

Note: works correctly without --tui

Expected Behavior

Ctrl+C interrupts the hanging shell process and returns control to the user.

Conversation ID

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions