-
Notifications
You must be signed in to change notification settings - Fork 17
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
Navie misunderstands the intended file path #2063
Comments
TitleFix file path resolution and context retrieval in Navie context service ProblemNavie is incorrectly interpreting file paths when instructed to generate code modifications for a specific file. This leads to non-file names being treated as files and the actual file name not being recognized or modified correctly. AnalysisThe problem arises when Navie is instructed to access or modify a file using an explicitly given full file path. Instead of correctly identifying the file and its contents, Navie misidentifies non-file names as actual files and vice versa. This leads to context retrieval issues and incorrect file modifications during code generation tasks. The symptoms of this issue include:
The key issues to resolve include:
Proposed Changes
By implementing these changes, the file path resolution will be corrected, ensuring that the correct file context is retrieved and used for code generation tasks. This should effectively resolve the issue of incorrect file path interpretation and related context errors in the Navie package. |
I'm trying to understand this problem and I see two separate bugs here:
Is that a correct understanding? |
Instructed to specifically generate code for a full file path:
When Navie lists files, non-file names are detected as files, and the actual file name is not detected. Navie then emits changes to the wrong file.
If I change the question to
@generate src/snippet-index.ts
, then I get a listing of the full code and the UI shows the correct file path, but clicking the "Apply" button results in the wavy "apply" animation and then the checkmark, but the file is not modified. The initial file contents is simply:Trajectory
4861736c-8592-40a4-a2ef-c0dc5863fd9c.zip
Plan solution in the navie package only.
The text was updated successfully, but these errors were encountered: