Skip to content

Create File tool should add to @files context #5361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
chezsmithy opened this issue Apr 25, 2025 · 1 comment · May be fixed by #5564
Open
2 tasks done

Create File tool should add to @files context #5361

chezsmithy opened this issue Apr 25, 2025 · 1 comment · May be fixed by #5564
Assignees
Labels
area:indexing Relates to embedding and indexing kind:enhancement Indicates a new feature request, imrovement, or extension priority:medium Indicates medium priority

Comments

@chezsmithy
Copy link
Contributor

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

When the create file tool creates a new file it should be immediately indexed and added to the @files context so it can be referenced in subsequent prompts.

Solution

I’d like some help developing a solution. I’m aware of where the create file tool is called but I am not quite sure how to best trigger indexing of a single file and how to reload the files context or add the single file to the list.

@dosubot dosubot bot added area:indexing Relates to embedding and indexing kind:enhancement Indicates a new feature request, imrovement, or extension priority:medium Indicates medium priority labels Apr 25, 2025
@Patrick-Erichsen
Copy link
Collaborator

Patrick-Erichsen commented Apr 28, 2025

I believe this should be happening automatically, so it might be a broader bug of new files not being indexed automatically. Although now that I'm typing this out, I think this has been a known bug for quite a long time. E.g. if you just create a file manually in the IDE, it won't get picked up by @files until you reload the window.

If we were to resolve this I think I'd like to fix the root cause rather than attempting a bandaid solution specifically for the create file tool. My hunch is this logic lives in CodebaseIndexer.

@chezsmithy chezsmithy linked a pull request May 7, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:indexing Relates to embedding and indexing kind:enhancement Indicates a new feature request, imrovement, or extension priority:medium Indicates medium priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants