Skip to content
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

[Cody Ignore] Fix risks arising from file based .cody/ignore #3642

Closed
2 of 16 tasks
Tracked by #3641
dominiccooney opened this issue Apr 1, 2024 · 2 comments
Closed
2 of 16 tasks
Tracked by #3641

[Cody Ignore] Fix risks arising from file based .cody/ignore #3642

dominiccooney opened this issue Apr 1, 2024 · 2 comments

Comments

@dominiccooney
Copy link
Contributor

dominiccooney commented Apr 1, 2024

There's a file-based .cody/ignore feature, there's an remote configured Cody Ignore feature planned for Enterprise, we need to make these coherent. This records clean-up while reviewing the VSCode, extension code:

☢️ risk 👷 integrating new requirements w/ existing codegm 💪 defensive, mitigation 🧹 clean up

Tasks

@abeatrix
Copy link
Contributor

abeatrix commented Apr 2, 2024

@dominiccooney For the ☢️ items, IIRC we removed isCodyIgnored checks from those on purpose because we have moved them to the prompt constructing step in SimpleChatModel and prompt-builder where context will be filtered before the request is sent to the LLM for chat and commands

Edit: not saying that was right though. just wanted to provide some context 😃

@philipp-spiess philipp-spiess self-assigned this Apr 8, 2024
@philipp-spiess philipp-spiess mentioned this issue Apr 8, 2024
6 tasks
@dominiccooney dominiccooney changed the title [Cody Ignore] Fix defects arising from file based .cody/ignore [Cody Ignore] Fix risks arising from file based .cody/ignore Apr 16, 2024
@dominiccooney
Copy link
Contributor Author

@abeatrix thanks for the pointers, I have moderated the language in the issue a bit—defects to risks, etc.

We still need to clean this up, because it relies on really long range dependencies lining up and staying aligned. For example, if EditManager.executeEdit are passed configuration.document that doesn't belong to the active editor, then we check whether the editor is ignored, but I believe we can pass the document+selection down to buildGenericPrompt and put the selection in the instruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants