Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Always Allow prompt doesn't prompt the command being run

Open franklin-lobb opened this issue 4 months ago • 4 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

1.0.138

Bug Description

When prompted for approval of a command, choosing Always Allow yields a counter-intuitive request: "1" and "1 *" as opposed to the original command being run.

Image

Steps to Reproduce

I don't have specific steps to reproduce, as it's an action generated by Kiro / autopilot. Once the command is attempted, I click Always Allow to see the unexpected values.

Expected Behavior

expected behavior is that the command being run would be in the fields, not the number 1.

Conversation ID

No response

Additional Context

No response

franklin-lobb avatar Jul 14 '26 01:07 franklin-lobb

Thanks for reporting this issue! It's definitely unexpected to see "1" and "1 *" in the Always Allow prompt instead of the actual command being run — great catch with the screenshot. A maintainer will take a look at this shortly. We appreciate you helping us improve the experience! 🙌

github-actions[bot] avatar Jul 14 '26 01:07 github-actions[bot]

I have the same issue

gujunxiang avatar Jul 14 '26 01:07 gujunxiang

Thanks for raising this. The Always Allow confirmation dialog showing '1' and '1 *' instead of the actual command being approved is a trust dialog display bug — the option label is the picker index rather than the command string. Marking this as a bug to investigate further.

AnilMaktala avatar Sep 22 '26 21:09 AnilMaktala

Seeing the same 1 / 1 * on Kiro 1.2.56, Windows 11 x64.

In the screenshot the command ends with 2>&1, and the generated pattern is 1. It looks like the 1 is being picked up from the trailing 2>&1 rather than from the actual command (python ...), so the saved rule doesn't match what was run, which probably explains why it keeps re-prompting.

We've seen the same kind of broken pattern with other commands that start with or contain special characters ((, $, [, redirects). Looks related to #7611, and the repeated-prompt side of it shows up in #10355 and #11838.

Also raised with the Kiro team via AWS support case 179162738300618.

rgoltz avatar Oct 10 '26 10:10 rgoltz