Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro is always includes extra charactors TY=not a tty before any prompt.

Open NileshjVaghela opened this issue 9 months ago • 7 comments

Before opening, please confirm:

Operating System

linux

Kiro Version

0.8.135

Bug Description

sudo docker compose -f docker-compose.test.yml run --rm test-runner npm test -- src/tests/property/database-constraints.property.test.ts

The output TY=not a ttyilesh@nilesh-Inspiron-14-7435-2-in-1: ~/kiro/cost-report/mcq-exam-appnilesh@nilesh-Inspiron-14-7435-2-in-1:~/kiro/cost-report/mcq-exam-app

with exit status code -1, and kiro always seems to be consider the exit status code and try to run other docker commnads and alll fails even though every thing work fine. It is consuming my credits. All command run perfact in Linux shell, I do not know why the output referred by Kiro is always includes extra charactors TY=not a tty before any prompt.

Steps to Reproduce

Image Image

Expected Behavior

Kiro command execusion shoul d not include any extra character. Like there is no extra character in Kiro shell. Some how it is included in output which is referred by kiro and it give exit status code. It should produce exist status code 0 not -1

Conversation ID

a2970ddc-fdc3-440a-8fe9-ec499414520d a693394f-14e1-4b4e-aa01-aefa586d3bc6 0cbb88be-a7e3-45dd-ae78-aad9c019f30f 0c7422b5-2268-4e61-81b5-303126b5d2c4 a3f48576-c448-46b2-8eea-8e706d6356e6

Additional Context

No response

NileshjVaghela avatar Feb 08 '26 17:02 NileshjVaghela

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ Remove the duplicate label if this is NOT a duplicate
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both report terminal tool corrupting output with extra characters and incorrect exit codes. The new issue mentions 'TY=not a tty' characters being added to output and exit code -1, while #4833 reports output corruption and incorrect exit codes due to OSC escape sequences - these are the same core terminal output corruption problem

github-actions[bot] avatar Feb 08 '26 17:02 github-actions[bot]

Hi I am totally confused. My KIRO-CLI work like a charm. Whlie KIRO-IDE gives a problem. It is related to exit status code always product -1, difficult to ignore it. I tried to resolve it but unfortunately could not. All command works well without any error at any Linux shell in my system. But when it is executed by KIRO-IDE and it capture the output it is exist status code -1. While I can see the command is running correctly at KIRO shell with perfect output. It is consuming my credits and lots of manual work. Request to resolve as soon as possible.

Image Image

NileshjVaghela avatar Feb 09 '26 15:02 NileshjVaghela

Hi I found work around on this. Not technical but logical.

I use Kiro IDE to generate requirements and design phase. Then all task I an doing with KIRO-CLI. It works well.

NileshjVaghela avatar Feb 18 '26 08:02 NileshjVaghela

Hi @NileshjVaghela, thank you for the detailed bug report and for your patience!

We are glad you found a workaround in the meantime and appreciate you sharing it with the community. Using Kiro CLI for task execution while using Kiro IDE for requirements and design is a reasonable workaround until this is resolved.

Could you please try with the latest version of Kiro IDE and let us know if the issue persists?

We will investigate further why Kiro IDE is corrupting terminal output and producing incorrect exit codes when executing commands on Linux and will update this issue with our findings.

AnilMaktala avatar Feb 19 '26 20:02 AnilMaktala

Didn't have this issue in Feb, March or by mid April and now I experience the same. Latest Kiro version. As the author posted many conversation IDs I will just provide one of mine. But happened many times more even after reloading Kiro. b69af8ff-7a2a-469b-89da-145abdb29c38

Dscheksn avatar Apr 29 '26 19:04 Dscheksn

Same is happening with the latest version of Kiro IDE Version: 0.11.133 (user setup) VSCode Version: 1.107.1 Commit: f7f7d41b94b715768e6eaf53c0e0845e698a5587 Date: 2026-04-22T18:54:43.929Z Electron: 39.6.0 Chromium: 142.0.7444.265 Node.js: 22.22.0 V8: 14.2.231.22-electron.0 OS: Windows_NT x64 10.0.19045

yapnel avatar May 01 '26 16:05 yapnel

same happening with me

princeandrew-anire avatar Jul 28 '26 01:07 princeandrew-anire