Kiro is always includes extra charactors TY=not a tty before any prompt.
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
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
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
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #4833: Terminal tool corrupts output and reports incorrect exit codes when shell outputs OSC escape sequences (92% similar)
- #5250: Subagent crashes with "failed to enable raw mode" error in non-interactive Docker environment (85% similar)
- #4132: Kiro keeps displaying 'working' after executing the command (85% similar)
- #4011: Kiro chat agent cannot read output from commands (85% similar)
- #5376: Bug Report: execute_bash Tool Blocking All Commands (82% similar)
- #4009: Command execution appears to succeed in UI but fails silently without recording in execution history (82% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ Remove the
duplicatelabel 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
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.
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.
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.
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
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
same happening with me