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

Feature: asking Aider to replicate a change in the last commit to another file doesn't work #3526

Open
hboon opened this issue Mar 14, 2025 · 5 comments
Labels
question Further information is requested

Comments

@hboon
Copy link

hboon commented Mar 14, 2025

  1. aider --architect --model o3-mini --reasoning-effort high --editor-model sonnet
  2. Then the prompt below and confirmed to add the file(s) when prompted:
Replicate my last commit to CleanUpFollowinngsView to FollowBackView.vue

To help gauge the complexity, it is about total 10+ lines of code, pretty localized to the same area.

@bexelbie
Copy link
Contributor

It appears LLMs don't know how to ask for the content of a specific commit. Should aider have a way to load that content in the chat? I hit a related issue wanting to create docs for a specific commit.

@paul-gauthier
Copy link
Collaborator

paul-gauthier commented Mar 14, 2025

Thanks for trying aider and filing this issue.

You can do:

/run git diff HEAD^
/add other-file.ext
Make that change to the other file

@paul-gauthier
Copy link
Collaborator

(sorry, not closing the issue)

@bexelbie
Copy link
Contributor

That worked like a champ - thank you.

@github-actions github-actions bot added the question Further information is requested label Mar 15, 2025
@hboon
Copy link
Author

hboon commented Mar 15, 2025

@paul-gauthier Thanks for the tip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants