Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

kiro-cli shell integration hijacks all terminal sessions, not just Kiro's own terminal

Open lyh-cf opened this issue 7 months ago • 5 comments

Before opening, please confirm:

Operating System

macOS Tahoe 26.1

Kiro Version

0.11.132

Bug Description

  • kiro-cli init 注入的 kiro-cli-term 会劫持所有终端会话(包括 macOS Terminal.app)
    • 当 Kiro 后台未运行时会导致终端完全卡死
    • 应该默认只在 TERM_PROGRAM == "kiro" 时加载,而不是无条件注入

Steps to Reproduce

install kiro-cli

Expected Behavior

终端显示ruby-W1--disable=gems,rubyopt/opt/homebrew/Library/Homebrew/brew.rb list amazon-q - 1 • curl - 269×71

Conversation ID

e982be08-84ae-4bd9-909b-009471c9b96b e982be08-84ae-4bd9-909b-009471c9b96b e982be08-84ae-4bd9-909b-009471c9b96b e982be08-84ae-4bd9-909b-009471c9b96b e982be08-84ae-4bd9-909b-009471c9b96b

Additional Context

No response

lyh-cf avatar Apr 18 '26 10:04 lyh-cf

🤖 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 kiro-cli-term functionality on macOS Tahoe - the new issue describes terminal hijacking and freezing when Kiro backend isn't running, while #5711 reports the PTY wrapper dropping input, indicating related terminal integration problems with the same component

github-actions[bot] avatar Apr 18 '26 10:04 github-actions[bot]

kiro-cli init 注入的 kiro-cli-term 会劫持所有终端会话(包括 macOS Terminal.app)

lyh-cf avatar Apr 18 '26 10:04 lyh-cf

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 Apr 18 '26 10:04 github-actions[bot]

Hey @lyh-cf did you try a different terminal? If you can share kiro-cli doctor / kiro-cli diagnostics with the desktop app running that would help debug

Otherwise I recommend kiro-cli integrations uninstall dotfiles to immediately unblock your setup, this is an unknown issue that isn't otherwise reproducible

brandonskiser avatar Apr 21 '26 17:04 brandonskiser

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 Apr 29 '26 00:04 github-actions[bot]