Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

it always reject agent edits for new created files event

Open JoeShi opened this issue 9 months ago • 7 comments

Before opening, please confirm:

Operating System

darwin

Kiro Version

0.10.16

Bug Description

Current behavior

  1. The agent created a new file
  2. As a user, I click the view diff button, and then click the accept button
  3. The agent shows rejected, but in fact the file is created.

Steps to Reproduce

  1. Open Kiro, and turn off Autopilot
  2. Input a prompt, and let the agent create a new file
  3. 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

JoeShi avatar Feb 21 '26 12:02 JoeShi

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!

github-actions[bot] avatar Feb 21 '26 12:02 github-actions[bot]

clean install with the latest version - only fix. Dont forget to backup. /username/.kiro must be deleted :( 👍

Ozgurooozer avatar Feb 22 '26 20:02 Ozgurooozer

This bug only happens for me when I have the 'view diff' button on a record where it is a new file

  1. New file is created by kiro. it shows the view diff button.
  2. Click view diff to see the file. File opens just fine.
  3. Click any accept (Inline, in chat line item, or accept all)
  4. Creation is rejected as displayed

While using it for file updates, rejection does not happen.

clhoneycutt avatar Mar 14 '26 14:03 clhoneycutt

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.

Blackpinned avatar Mar 16 '26 15:03 Blackpinned

  • 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.

reecoa avatar Mar 18 '26 19:03 reecoa

Hey @JoeShi, Are you still experiencing this issue in the latest version of KIRO?

AnilMaktala avatar Jun 19 '26 19:06 AnilMaktala

I am also seeing this and I'm on the latest version of Kiro. I experience the same behavior as @reecoa

nkalscheuer avatar Jul 10 '26 18:07 nkalscheuer