Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Too restrictive commands flagged for manual review

Open hgspch opened this issue 1 year ago • 3 comments

Before opening, please confirm:

Operating System

darwin

Kiro Version

0.1.42

Bug Description

A simple Django command like

python3 manage.py shell -c "from core.models import Profile, Sector, Industry, Country, Item; print('All models imported successfully')"

needs manual review.

There are a lot of them like this, so you have to be constantly present to click, otherwise the task becomes much too long.

Steps to Reproduce

Any Django shell command is problematic.

Image

Expected Behavior

Any python command should be able to be marked as "trusted", with a wildcard like python3 *

I read the doc at https://kiro.dev/docs/chat/terminal/#dangerous-patterns, of course Django / Python commands contain characters like ;

It's way too restrictive.

Conversation ID

beaddd54-aa60-482f-9e07-8c3fdeb2c7f6 ae32c432-33a3-42b3-82f5-e691cbc25841 0e362810-7137-495c-9d2c-aa0ebadda709 7817d8ed-2075-49f1-a31b-31575cb2374a 7d1875b8-fe69-4988-b3c7-6a48dad32122

Additional Context

No response

hgspch avatar Aug 06 '25 09:08 hgspch

Hi @hgspch 👋 thanks for raising this issue.

It seems you opened this issue on version 0.1.42 and there may have been improvements since then.

For instance, when I attemped to reproduce on the latest version (0.2.13) by asking the Agent to run the same command, I clicked "Trust command and accept," and I was given several options for commands to trust, including the wildcard python3 * option as you recommended.

Image

chrisbonifacio avatar Aug 28 '25 13:08 chrisbonifacio

Hi @chrisbonifacio , I tested again with version 0.2.13, and same issue:

Image

Please note that:

  • it's on mac
  • I already have python3 * in the trusted commands in Settings

hgspch avatar Aug 28 '25 15:08 hgspch

Hi 👋, we're closing this issue due to inactivity. If you're still experiencing this problem, please create a new issue with detailed information so we can investigate and provide the support you need.

AnilMaktala avatar Jan 08 '26 15:01 AnilMaktala