Skip to content

CLI v3: "Always allow" for "pattern · session" is not working #9507

Description

@thraciatron

Before opening, please confirm:

Operating System

Windows 11

Kiro Version

2.8

Bug Description

When the default agent asks for approval to run a command, if you select "Always allow" and then select "pattern · session" trust level, it just refreshes and asks you again, and again until you select "Allow".

Example of command

 Run Command requires approval
 shell → cd c:\Users\username\project && dir test\*.ts /s /b

   Allow
❯  Always allow
   Deny
   Always deny
....
   Trust "cd c:\Users\username\project && d…"    exact match · session
 ❯ Trust "cd *"                                                pattern · session
   Trust entire tool (Run Command)                             session

Cycling through (s) to workspace, session or always produces the same result.

Steps to Reproduce

  1. Open Kiro kiro-cli --v3
  2. Tell it to create tests for some code
  3. Even though you are in the project directory it decides to run a "cd" command and wants permission
  4. Select "Always allow" and the select "Trust pattern · session"
  5. Notice the CLI refreshes and asks you again

Expected Behavior

Once the pattern is trusted, I should not be asked again for the workspace, session or always depending on whats selected.

Conversation ID

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions