it always reject agent edits for new created files event
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
darwin
Kiro Version
0.10.16
Bug Description
Current behavior
- The agent created a new file
- As a user, I click the view diff button, and then click the accept button
- The agent shows rejected, but in fact the file is created.
Steps to Reproduce
- Open Kiro, and turn off Autopilot
- Input a prompt, and let the agent create a new file
- As a user, I click the view diff button, and then click the accept button
Expected Behavior
The agent shows user accepted the edits.
Conversation ID
No response
Additional Context
https://github.com/user-attachments/assets/28263aba-b571-4b5c-963f-08d7f5236e2b
Thanks for reporting this issue and for the detailed reproduction steps and video! 🙏 It sounds like there's a mismatch where accepting edits for newly created files shows them as "rejected" even though the file is actually created successfully. A maintainer will take a look at this soon — we appreciate you helping us improve Kiro!
clean install with the latest version - only fix. Dont forget to backup. /username/.kiro must be deleted :( 👍
This bug only happens for me when I have the 'view diff' button on a record where it is a new file
- New file is created by kiro. it shows the view diff button.
- Click view diff to see the file. File opens just fine.
- Click any accept (Inline, in chat line item, or accept all)
- Creation is rejected as displayed
While using it for file updates, rejection does not happen.
I am also having this issue, and as far as i can tell it handles it as a rejection of the chat as well, so it will stop whatever it's doing completely. I was running tasks and it created a file as first task, then got 'rejected' which caused the rest of the tasks to also not get executed.
-
I'm experincing the same, click "view diff" on a new file, file opens fine, click "accept" in chat window and get "User rejected creation of..." and Task execution is aborted.
-
I just tried creation of a new page without viewing diff/opening page and accept worked.
-
new page "Need input for creation of...", view diff and clicked "accepted" and get "User rejected"
-
I tried viewing diff and then saving the file, still rejected.
-
using the green tick to accept has the same result.
Hey @JoeShi, Are you still experiencing this issue in the latest version of KIRO?
I am also seeing this and I'm on the latest version of Kiro. I experience the same behavior as @reecoa