经常会卡住
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
win32
Kiro Version
0.7.45
Bug Description
经常卡住,无响应。可能是在显示:editing、working等状态。但是follow发现无任何输出,并且尝试等待2个小时也无响应。怀疑和context usage进度条有关
Steps to Reproduce
如题
Expected Behavior
如题
Conversation ID
08e65379-3a90-4cd0-8c6f-3f6b8ea37645
Additional Context
No response
Hey @jiangweibo240617, Could you please share screenshots of the chat and terminal window so we can better understand the issue? Additionally, it would be helpful if you could provide the Kiro logs.
这个是聊天记录的截图。日志怎么获取?如第一张图,在【Accepted edits to OrderLogisticsAdapterImpl.java】这里卡住一次,我输入继续,再次卡住。再次输入继续,开始了继续处理任务。但是这个任务处理到一半再次卡住,我重新输入多次继续,仍然卡住。
全部聊天: 不要自行发明创造,要结合当前代码,有DeliveryQueryBO和DeliveredPackageDTO?不是叫这个名字吧
Kiro 你说得对!我不应该自己发明类名。让我查看 xuanwu-order-api 中实际存在的类:
Searched workspace 查找项目中实际使用的order api相关的DTO和BO类 我看到了!在 OrderMallAdapterImpl 中使用的是:
com.credithc.xuanwu.order.api.loan.dto.MallOrderInfoDTO com.credithc.xuanwu.order.api.loan.query.OrderMallQuery 让我查看 OrderMallFacade 接口,看看它有哪些方法:
Command javap -cp "~/.m2/repository/com/credithc/xuanwu-order-api/2.3.17-SNAPSHOT/xuanwu-order-api-2.3.17-SNAPSHOT.jar" com.credithc.xuanwu.order.api.loan.OrderMallFacade 2>&1 | Select-String -Pattern "deliveredPackages|logistics|delivery|package" -Context 2 javap -cp "~/.m2/repository/com/credithc/xuanwu-order-api/2.3.17-SNAPSHOT/xuanwu-ord der-api-2.3.17-SNAPSHOT.jar" com.credithc.xuanwu.order.api.loan.OrderMallFacade 2>&1 | Select-String -Pattern "deliveredP Packages|logistics|delivery|package" -Context 2 :\WINDOWS\system32\cmd.EXE - javap -cp "~/.m2/repository/com/credithc/xuanwu-order-api/2.3.17-SNAPSHOT/xuanwu-order-api-2.3.17-SNAPSHOT.jar" com.credithc.xuanwu.order.api.loan.OrderMallFacade :\WINDOWS\system32\cmd.EXE'Select-String' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
D:\workspace\xuanwu-capital-system2 让我直接查看编译错误信息,它会告诉我正确的方法签名:
Read file(s)
OrderLogisticsAdapterImpl.java 好的,看来这些类确实不存在。让我询问用户正确的类名是什么,因为我不应该自己发明:
明白了!DeliveryQueryBO 和 DeliveredPackageDTO 这两个类在当前的 xuanwu-order-api 2.3.17-SNAPSHOT 中不存在。
请告诉我:
OrderMallFacade.deliveredPackages() 方法的正确参数类型是什么? 该方法返回的DTO类型是什么? 或者,如果这个方法还没有在 xuanwu-order-api 中实现,我可以先创建一个临时的实现,返回空列表,等待API更新后再完善。
Credits used: 1.73 Elapsed time: 3m 24s Checkpoint Restore 我发现了,DeliveryQueryBO是有的,但是你导的包是错的。
另外,在准则里加一项,先判定当前系统是mac还是windows还是linux,再使用对应的命令,默认windows。
Kiro 好的!让我先搜索正确的包路径:
Searched workspace 搜索DeliveryQueryBO的正确包路径 让我搜索项目中是否有其他地方使用了正确的包:
Searched workspace 搜索xuanwu.order.api中所有的query类 我看到了!正确的包路径应该是 com.credithc.xuanwu.order.api.loan.query.DeliveryQueryBO,而不是 com.credithc.xuanwu.order.api.loan.bo.DeliveryQueryBO。让我修复:
Accepted edits to
OrderLogisticsAdapterImpl.java
Checked diagnostics
OrderLogisticsAdapterImpl.java 好的,DeliveryQueryBO 找到了,但是:
setOrderNo 需要 String 类型,不是 Long DeliveredPackageDTO 还是找不到 让我搜索正确的返回DTO:
Searched workspace 搜索xuanwu.order.api.loan.dto包下的所有DTO 看来 DeliveredPackageDTO 确实不存在。让我直接询问用户正确的DTO名称,而不是继续猜测。同时,我先修复 orderNo 的类型问题,并暂时注释掉不存在的DTO:
Accepted edits to
OrderLogisticsAdapterImpl.java
Credits used: 2.63 (?) Elapsed time: 17m 37s Checkpoint Restore 继续
Kiro Checkpoint Restore 继续啊
Kiro 好的,让我继续完成 OrderLogisticsAdapterImpl 的实现。现在我需要:
修复 orderNo 类型(从 Long 转为 String) 查找正确的返回DTO类型 让我先修复代码,将 orderNo 转为 String,并使用泛型来处理未知的返回类型:
Accepted edits to
OrderLogisticsAdapterImpl.java
Checked diagnostics
OrderLogisticsAdapterImpl.java 很好!编译通过了。现在让我更新编码规范文档,添加关于操作系统判断的规则:
Read file(s)
d
java-coding-standards.md 1 - 51 Error(s) while editing
Operation was aborted by user or system. The agent has seen this error and will try a different approach to write the file if needed. 继续
好的,让我在编码规范文档中添加操作系统判断的规则:
Canceled edits
继续
好的,让我在编码规范文档中添加操作系统判断的规则:
Canceled edits
继续
好的,让我继续添加操作系统判断规则到编码规范文档中:
Canceled edits
Credits used: 1.55 (?) Elapsed time: 2h 1m 55s Checkpoint Restore 继续
Kiro 好的,让我继续添加操作系统判断的规范到编码规范文档中:
Canceled edits
其中,我发现下方的进度条已经橙色了,在之前的版本中,经常发生进度条满了,但是并没有开启新的对话,而是以错误结束。当我再次开启对话时,上下文已经丢了。 不知道是不是因为修复这个问题导致的。
很有可能和编辑的是java-coding-standards.md文件有关,我这边的文件已经1700行了,不确定是否是因为太长导致。可是不经过这个文件总结,输出的内容很多是不符合规范的
很有可能和编辑的是java-coding-standards.md文件有关,我这边的文件已经1700行了,不确定是否是因为太长导致。可是不经过这个文件总结,输出的内容很多是不符合规范的
是的,现在基本定位了,几乎百分百复现。每当我让他修改java-coding-standards.md文件时,就有很大的概率卡住。我现在在尝试让他拆成多个文件,可似乎已经来不及了。拆分文件这个动作,也许是ai应该自动去做的事情。
在我删除所有.md文件之后再也不能在这个工程使用chat了,卡死在那里,即使重装app也一样 但是其他工程就可以
在我删除所有.md文件之后再也不能在这个工程使用chat了,卡死在那里,即使重装app也一样 但是其他工程就可以
![]()
我删掉了会话记录好了: ~/Library/Application Support/Kiro/User/globalStorage/kiro.kiroagent/ 里一串数字的文件夹
执行 Terminal 命令时,将命令合并为单行,不使用 \ 换行符
使用这个全局提示词可以解决,原理暂时不明,但是确认可以解决
Closing this issue as it was reported against an older version of Kiro (v0.x or early v1.x) and has had no activity in several months.
Kiro has shipped significant improvements since these versions, including stability fixes, new features, and major changes across v1.0, v1.1, v2.x, and the current v2.23.x releases. The behavior described here may already be resolved.
If this is still affecting you on the latest version, please open a new issue at https://github.com/kirodotdev/Kiro/issues/new with your current version (kiro-cli --version or Help > About in the IDE), your OS, and steps to reproduce. The latest version is available at https://kiro.dev/downloads/ or via kiro-cli update.
Thank you for taking the time to report this.