Skip to content

Accessing files in directory using '@' #416

@thawkins

Description

@thawkins

Describe the bug

I often use the '@' command to show the agent screenshots of the problems I'm having. I keep my screenshots in a folder called assets/screenshots. If I'm working with the tool and need to show it a new screenshot, I take the shot, and then move the file to my assets/screenshots folder. But @ can't find it unless I quit copilot and restart it. It seems to have cached the contents of the folder and does not refresh them.

It would also be great if I could declare a set of folders outside of my repo with virtual roots, so I could map Screenshots->~/Pictures/Screenshots and be able to reffer to it using @Screenshots/.....

Affected version

Latest 351

Steps to reproduce the behavior

  1. Create a folder in the repo called assets/screenshots
  2. Open copilot and ensure that @assets/screenshots has no contents.
  3. Create a screenshot (PNG file) and copy it to the assets/screenshots folder
  4. Observe it is not available
  5. Close copilot
  6. Open copilot
  7. Use @assets/screenshots and confirm the new file is visible.

Expected behavior

The file should be visable after being copied into the assets/screenshots folder.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions