Skip to content

Allow trusting tools (ex: write tool) over an arbitrary directory, not just the immediate file, immediate parent directory, or * #6715

@AWSJackson

Description

@AWSJackson

When kiro makes a file change suggestion and I indicate to trust it to write changes I'm currently given the following options:

  1. Trust all future changes to the specific file in question.
  2. Trust all future changes to the immediate directory of the specific file in question.
  3. Trust all future changes period.

It's rare for me to want any of these options. I'm much more likely to want to trust future changes on a whole workspace or module directory. It would be ideal to have a convenient way of selecting an arbitrary directory that's related to the current file as my trusted scope.


A possible suggestion would be to use navigation left/right to change the depth of the directory scope in the trust tool UI.

Example:
The options could start with:

Press (up/down) to navigate - (left/right) to change directory scope - (enter) to select scope
Specific paths      -> .../src/this/is/my/directory/ExampleFile.java
Directory scope     -> .../src/this/is/my/directory
Entire Tool         -> *

After pressing left:

...
Directory scope     -> .../src/this/is/my
...

After pressing left:

...
Directory scope     -> .../src/this/is
...

After pressing left:

...
Directory scope     -> .../src/this
...

After pressing right:

...
Directory scope     -> .../src/this/is
...

etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions