Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Autopilot repeatedly requests tool approval despite "Always allow" selection and no permission management settings can be found

Open gujunxiang opened this issue 4 months ago β€’ 11 comments

Before opening, please confirm:

Operating System

Windows11

Kiro Version

1.0.138

Bug Description

When using Kiro IDE in Autopilot mode, tool execution permissions are repeatedly requested even after selecting "Always allow".

I expect Kiro to remember the permission decision and automatically execute subsequent tool calls without additional prompts. However, the approval dialog continues to appear for every tool invocation.

In addition, I could not find any setting, configuration page, or configuration file where tool permissions can be viewed, managed, or verified. This makes it impossible to determine whether the "Always allow" decision is actually being saved.

Steps to Reproduce

  1. Open Kiro IDE.
  2. Enable Autopilot mode.
  3. Ask Kiro to perform a task that requires tool execution.
  4. When the approval dialog appears, click "Always allow".
  5. Continue the task and allow Kiro to invoke additional tools.
  6. Observe that permission dialogs continue to appear.

Expected Behavior

After selecting "Always allow":

  1. The approval decision should be persisted.
  2. Subsequent executions of the same tool should not require additional approval.
  3. Autopilot mode should continue automatically without manual intervention.
  4. Users should be able to review and manage tool permissions from either:
    • Settings UI, or
    • A configuration file/documented location.

Conversation ID

No response

Additional Context

sess_fe5f0713-aff8-45b2-a59d-60d442f350ac

gujunxiang avatar Jul 14 '26 07:07 gujunxiang

πŸ€– Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with πŸ‘Ž to this message.
  • πŸ’¬ Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues report the same core problem: 'Always Allow' selection in Autopilot mode does not persist, and tool approval dialogs continue to appear for every tool invocation despite having selected 'Always allow'

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

I don't believe this is a complete duplicate.

While the permission persistence issue is similar, this report also highlights that there appears to be no user-accessible location to view or manage stored tool permissions.

I searched through the available settings and configuration files but could not find any place where "Always allow" decisions are stored or managed.

This additional aspect may help identify whether the root cause is:

  • permission persistence failing,
  • permissions not being loaded correctly,
  • or a missing permission management mechanism.

The repeated approval prompts are only one part of the issue; the lack of visibility into permission storage is the other concern being reported.

gujunxiang avatar Jul 14 '26 07:07 gujunxiang

Thank you for your feedback! πŸ™

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

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

Thanks @gujunxiang β€” we're aware of the persistence issue and are tracking it. To help us narrow down what's happening on your install specifically:

Could you check whether your "Always allow" selections are actually being written to the permissions file?

  1. Open the Command Palette (Ctrl+Shift+P)
  2. Run "Kiro: Open Permissions"
  3. Check if there are any shell rules with effect: allow and a match pattern corresponding to the commands you approved

If the file is empty or missing rules you've already approved, that confirms the write path is failing. If the rules ARE there but you're still being prompted, it's an evaluation/matching issue on reload.

Either way, sharing the content of that file (with any sensitive paths redacted) would help us pinpoint the root cause.

AnilMaktala avatar Jul 14 '26 20:07 AnilMaktala

Thanks for the guidance.

I checked the permissions file via Kiro: Open Permissions. The "Always allow" selection is being written to the permissions file.

In my case, the file contains a shell allow rule for playwright-cli *, for example:

rules:
  - capability: shell
    match:
      - playwright-cli *
    effect: allow

However, Kiro still prompts for approval when running a matching command such as:

playwright-cli eval "document.querySelector('[id="..."]').click()"

So this does not look like a write/persistence failure. The permission rule exists in the file, but the approval dialog still appears. This seems more likely to be an evaluation/matching issue, or the permissions file is not being reloaded/applied correctly. I also noticed similar behavior with other shell commands such as rtk *, where the permission rule exists but approval can still be requested.

Image

permissions.yaml

xiangagou163 avatar Jul 15 '26 01:07 xiangagou163

I did see this error too:

Image

Kikadass avatar Jul 15 '26 12:07 Kikadass

IDE 1.0.337 (Aug 18) shipped improvements to filesystem and command permission rules. This might resolve the behavior you reported β€” could you test with 1.0.337 and let us know if it’s fixed? To update: download from kiro.dev.

AnilMaktala avatar Aug 19 '26 15:08 AnilMaktala

This issue has been automatically closed due to inactivity. It has been 7 days since we requested additional information.

If you still need help with this issue, please feel free to reopen it or create a new issue with the requested details.

github-actions[bot] avatar Aug 27 '26 01:08 github-actions[bot]

Running 1.2.37 here with the new workflows enabled, and it still seems not fixed. "Always Allow" has no effect (it doesn't matter whether it's "In this session" or "All workspaces").

jgrumboe avatar Oct 06 '26 08:10 jgrumboe

same

Georgechengtai avatar Oct 07 '26 13:10 Georgechengtai

Same issue on IDE 1.4.26 (Windows). permissions.yaml allow rules for mcp/power capabilities are not enforced β€” approval prompts appear on every call. "Always allow" is not offered (only Allow / Deny / Always deny). autoApprove in mcp.json also has no effect.

nanashi123 avatar Oct 27 '26 14:10 nanashi123