Skip to content

The Copilot CLI asks for permission to access the /repos/Neoteroi/rodi folder used in the 'gh api /repos/Neoteroi/rodi' tool command #216

Description

@yurivict

Describe the bug

'gh api /repos/{account-name}/{project-name}' is an API access point for gh.
It doesn't access /repos/{account-name}/{project-name} as a directory.

How to let copilot know that /repos/{account-name}/{project-name} is not a directory?

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on Oct 5, 2025
  2. RyanHecht commented on Oct 6, 2025

    @RyanHecht
    Collaborator

    Hi! We're looking into ways to improve our path detection heuristic. Thanks for the report!

  3. yurivict commented on Oct 14, 2025

    @yurivict
    Author

    Also this:

    
     ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
     │ This operation accesses path(s) outside allowed directories: //--------------------------------------------------------------------.                              │
     │                                                                                                                                                                   │
     │ Would you like to add these directories to the allowed list?                                                                                                      │
     │                                                                                                                                                                   │
     │ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
     │ │ //--------------------------------------------------------------------                                                                                        │ │
     │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
     │                                                                                                                                                                   │
     │ ❯ 1. Yes                                                                                                                                                          │
     │   2. No (Esc)                                                                                                                                                     │
     │                                                                                                                                                                   │
     │ Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc                                                                                                    │
     ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    
    
  4. RyanHecht commented on Oct 24, 2025

    @RyanHecht
    Collaborator

    We've improved both the gh api /repos/user/repo case and the code comment case in 0.0.351! Go check it out :)

  5. yurivict commented on Mar 23, 2026

    @yurivict
    Author

    @RyanHecht

    The problem is still there:

    ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ Allow directory access                                                                                                                                                                                                                                                                            │
    │ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
    │ This action may read or write the following path outside your allowed directory list.                                                                                                                                                                                                             │
    │                                                                                                                                                                                                                                                                                                   │
    │ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
    │ │ //tensorflow/tools/pip_package:wheel                                                                                                                                                                                                                                                          │ │
    │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
    │                                                                                                                                                                                                                                                                                                   │
    │ Do you want to allow this?                                                                                                                                                                                                                                                                        │
    │                                                                                                                                                                                                                                                                                                   │
    │   1. Yes                                                                                                                                                                                                                                                                                          │
    │ ❯ 2. Yes, and add these directories to the allowed list                                                                                                                                                                                                                                           │
    │   3. No (Esc)                                                                                                                                                                                                                                                                                     │
    │                                                                                                                                                                                                                                                                                                   │
    │ ↑↓ to navigate · Enter to select · Esc to cancel                                                                                                                                                                                                                                                  │
    ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯```
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions