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

Auto-apply creates incorrect diff when target file not focused #805

Open
evrenesat opened this issue Dec 18, 2024 · 0 comments
Open

Auto-apply creates incorrect diff when target file not focused #805

evrenesat opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@evrenesat
Copy link

evrenesat commented Dec 18, 2024

What happened?

The auto-apply feature requires the target file to be open and focused in the editor. Without proper file focus, the feature generates incorrect diff comparisons and attempts to apply changes to whatever file is currently focused instead of the intended target.

Proposed Solutions:

  1. Ensure correct file focus before applying changes
  2. Add a dedicated button in the chat window to open the target file directly
  3. Diff against correct file regardless of what is focused.

Relevant log output or stack trace

No response

Steps to reproduce

No response

CodeGPT version

2.14.3-241.1

Operating System

macOS

@evrenesat evrenesat added the bug Something isn't working label Dec 18, 2024
@evrenesat evrenesat changed the title Auto-apply Functionality Creates Incorrect Diff When Target File Not Focused Auto-apply creates incorrect diff when target file not focused Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant