Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

[Edit file tool error] aborted. The agent has seen this error and will try a different approach

Open AyuTao opened this issue 1 year ago • 38 comments

Before opening, please confirm:

Operating System

darwin

Kiro Version

0.1.9

Bug Description

aborted. The agent has seen this error and will try a different approach to write the file if needed.

Steps to Reproduce

aborted. The agent has seen this error and will try a different approach to write the file if needed

Expected Behavior

aborted. The agent has seen this error and will try a different approach to write the file if needed

Conversation ID

5a4847fe-3ddb-40e7-8584-99a11d344db7 95e8187b-9355-4e2f-a933-8dda28fd71ff c7ef1cfc-e225-466b-b105-d4d28b9c85b8 c85ef399-55d7-4c84-aadd-00f1bba3ce06 555c6379-632c-4c44-9b1f-aec83bc8b12b

Additional Context

No response

AyuTao avatar Jul 18 '25 04:07 AyuTao

I also encountered the same error, and it happened very frequently.

yigeFYW avatar Jul 19 '25 02:07 yigeFYW

just open with admin

lusunn111 avatar Jul 19 '25 05:07 lusunn111

just open with admin

Im also having the same issue. I tried to reopen as admin, but the issue still remains.

yuanweize avatar Jul 20 '25 13:07 yuanweize

Mac computer how to you the admin,what's the soft problem

xiqing21 avatar Jul 21 '25 13:07 xiqing21

Image shit

xiqing21 avatar Jul 21 '25 13:07 xiqing21

I'm win reopen as admin but issue the same, network already check everything ok

yuanweize avatar Jul 21 '25 19:07 yuanweize

Related to #947

nadetastic avatar Jul 22 '25 22:07 nadetastic

same issue on Ubuntu 25.04. Version: 0.1.0 VSCode Version: 1.94.0 Commit: 8c12d528fc95c4235fd9c5808778c4f9c20a0280 Date: 2025-07-13T23:24:21.496Z Electron: 30.5.1 ElectronBuildId: undefined Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Linux x64 6.14.0-24-generic

hrahimi270 avatar Jul 26 '25 12:07 hrahimi270

Same here. I'm using Please use bash command like touch and cat to edit files prompt as a workaround.

shidianxia avatar Aug 01 '25 06:08 shidianxia

Same here. I'm using Please use powershell command to edit files prompt as a workaround.

connoryang331 avatar Aug 02 '25 05:08 connoryang331

Image shit

Feel ashamed of you

xieweimm avatar Aug 07 '25 01:08 xieweimm

I also encountered the same error, and it happened very frequently.

and i use bash error host process is unresponsive, terminals may stop working. Click to manually restart the pty host.

hcg1023 avatar Aug 08 '25 02:08 hcg1023

我还以为是我的问题,原来大家也aborted. The agent has seen this error and will try a different approach to write the file if needed.

频率很高 高到无法继续工作

huxiang1126 avatar Aug 11 '25 00:08 huxiang1126

「aborted. The agent has seen this error and will try a different approach to write the file if needed.」

出现这个不能叫频繁,应该说一直出现!请问怎么解决?

huxiang1126 avatar Aug 14 '25 01:08 huxiang1126

I am currently making the tool work properly by using the filesystem MCP and manual pasting.

hcg1023 avatar Aug 14 '25 01:08 hcg1023

Thanks a lot for this tool, because it's the first tool with which I can't complete 20 tasks spending 150 credits... Aborted, aborted, aborted.. I forgot how much time I typed "retry".

netrenerisLT avatar Aug 16 '25 23:08 netrenerisLT

Same here. I'm using Please use bash command like touch and cat to edit files prompt as a workaround.

It works, Thx!

But this is really an annoying bug.

Kenrick-Zhou avatar Aug 20 '25 05:08 Kenrick-Zhou

Same here. I guessed it was a context length issue, and the problem was resolved after instructing the agent to break down the task into smaller subtasks and execute them step by step.

ksana-kami avatar Aug 20 '25 14:08 ksana-kami

Same here, Kiro has become practically unusable because of this error, it now happens with every prompt.

gibsonndemanga avatar Aug 20 '25 19:08 gibsonndemanga

这种问题一般是你本身的文件过长,同时又需要写入大量内容,导致上下文长度不够。只需要把原本的大文件中的类拆分成小文件,即可完美解决这个问题。例如:models.py 可以新建一个models 文件夹,拆分,如下图

Image

RiseInRose avatar Sep 01 '25 08:09 RiseInRose