Context completion does not work when working in a 'non-git' repository
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).
ℹ️ Note that by initializing the directory as a git repo with git init makes it work.
To Reproduce Steps to reproduce the behavior:
- Create a new directory, example:
mkdir somedir - Add any file such as
touch anyfile.txt - Open the file in your favorite IDE using ECA
- Try to reference your file using
@ - Note it does not work
- Initialize
somediras a git repo withgit init - Goes back to Step 3. 8 Note that now it works.
@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
Fixed now!