eca icon indicating copy to clipboard operation
eca copied to clipboard

Context completion does not work when working in a 'non-git' repository

Open joaopluigi opened this issue 1 year ago • 2 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the bug I have a very simple directory called writing/ to help me creating documents that will later be moved to some platform (such as google docs, confluence, etc.):

writing
├── document.md
└── references.md

I usually ask ECA to write content on document.md based on what is written on references.md. However, when writing the prompt, is not possible to add the files to the context using @ (as also they are not shown in the repoMap).

Image

ℹ️ Note that by initializing the directory as a git repo with git init makes it work.

To Reproduce Steps to reproduce the behavior:

  1. Create a new directory, example: mkdir somedir
  2. Add any file such as touch anyfile.txt
  3. Open the file in your favorite IDE using ECA
  4. Try to reference your file using @
  5. Note it does not work
  6. Initialize somedir as a git repo with git init
  7. Goes back to Step 3. 8 Note that now it works.

joaopluigi avatar Aug 29 '25 16:08 joaopluigi

@joaopluigi I believe you can complete ./ for this use case, will close the issue right now, but we could improve to return the files at current workspace root I guess

ericdallo avatar Aug 30 '25 19:08 ericdallo

Fixed now!

ericdallo avatar Aug 30 '25 19:08 ericdallo