一直没办法修改代码aborted. The agent has seen this error and will try a different approach to write the file if needed.
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
window11
Kiro Version
版本: 0.10.78 (user setup) 提交: 1.107.1 日期: f3e4928cf245d100dc44e637bdeefd3ea095589a Electron: 2026-03-05T01:16:49.392Z ElectronBuildId: 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.26200
Bug Description
提出问题时,AI帮忙修改代码的时候出现aborted. The agent has seen this error and will try a different approach to write the file if needed.问题,一直循环重复
Steps to Reproduce
打开kiro,随便提出一个代码需求
Expected Behavior
理解问题并对问题进行解决,而目前只是对问题进行理解,在解决的过程中,没办法对代码文件进行修改
Conversation ID
d3f88a23-2605-49a1-bc90-0bed50a0ba81
Additional Context
Thanks for reporting this issue and providing detailed reproduction steps! We can see that the AI agent is getting stuck in a loop when trying to write or modify code files, repeatedly encountering an "aborted" error — that sounds really frustrating. A maintainer will take a look at this soon to investigate what's going on. We appreciate you including the conversation ID and screenshots, as that will help a lot with debugging! 🙏
铁铁,我想要找你要小黄熊,怎么联系
联系地球号=VX-l8588I
---原始邮件--- 发件人: @.> 发送时间: 2026年4月15日(周三) 晚上11:08 收件人: @.>; 抄送: @.@.>; 主题: Re: [kirodotdev/Kiro] 一直没办法修改代码aborted. The agent has seen this error and will try a different approach to write the file if needed. (Issue #7449)
qiutiande-F left a comment (kirodotdev/Kiro#7449)
铁铁,我想要找你要小黄熊,怎么联系
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
FWIW I am also seeing this issue very recently on version 0.11.133. Here are my Help -> About contents:
Version: 0.11.133
VSCode Version: 1.107.1
Commit: f7f7d41b94b715768e6eaf53c0e0845e698a5587
Date: 2026-04-22T18:33:10.106Z
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Linux x64 6.16.3-76061603-generic
Error(s) while creating
im-load-optimization.md
aborted. The agent has seen this error and will try a different approach to write the file if needed. A network error occurred. Please check your connection and try again.
This issue has existed for so long?! Does anyone actually care whether this thing lives or dies?
最新版本问题依旧
版本: 0.12.155 (user setup) 提交: 1.107.1 日期: 103c4f954913f697123acb72ef6b2266dd9272b5 Electron: 2026-05-06T01:12:04.463Z ElectronBuildId: 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.26200
一直报错 aborted. The agent has seen this error and will try a different approach to write the file if needed.
I have the same issue for the latest version。
I have found a way to 100% reliably reproduce this bug. Here are the step-by-step instructions to replicate the issue:
- Install the workflow skills repository: Install the following workflow skills:
https://github.com/liuzhengdongfortest/CodeStable - Generate a long document: Run the
cs-feat-design skillcommand to draft a software requirements document. Please define a relatively complex requirement to ensure the generated output is as long as possible. - Observe the error: At the final step of the process during the "write" operation, the Kiro model will consistently fail with the following error message:
"aborted. The agent has seen this error and will try a different approach to write the file if needed."
- Scope of the issue (Models): This error occurs across all Kiro models under this specific workflow.
- Scope of the issue (Products): This is not isolated to a single interface; other Kiro products, such as the Kiro CLI, exhibit the exact same behavior.
Root Cause Analysis & Insights: I have strong reasons to believe that there are no inherent issues with the Kiro IDE or the Kiro CLI itself. Instead, the bug likely resides on the Kiro model server-side.
Specifically, the server seems to have a defect when handling model calls for the write tool. When the text payload is exceptionally long, the server returns corrupted or malformed data, which subsequently causes a format error when the client-side model attempts to invoke the write tool.
This bug appeared with no fix from the last year. May be the first version of kiro.
Hi! Thanks for reporting this. Several updates have shipped since this was filed (you were on version 0.11.x — the latest is Kiro IDE 1.0.0 / CLI 2.8.1), and this area has seen significant fixes.
Could you update to the latest version and let us know if this is still happening?
- Kiro IDE: update via the built-in updater or download from kiro.dev
- Kiro CLI:
npm install -g @anthropic-ai/kiro-clior your package manager
If the issue persists, please share:
- Your current Kiro version
- Steps to reproduce
- Your Conversation ID
If we don't hear back within 7 days, we'll close this as resolved. Thanks! 🙏
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.