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

Bug Report: Automatic Suggestion Menu Stops Appearing After File Addition via Prompt Instructions #2701

Open
nanafy opened this issue Dec 25, 2024 · 5 comments
Labels
question Further information is requested

Comments

@nanafy
Copy link

nanafy commented Dec 25, 2024

Description

A bug occurs in the Aider tool where the automatic gray suggestion menu (for commands or files) disappears after a file is added indirectly via typing part of the filename into the prompt. This behavior differs from using the explicit /add command. After the bug manifests, the menu does not reappear unless Aider is restarted. The tab key still functions for autocompletion, but the absence of the menu significantly impacts usability.


Steps to Reproduce

  1. Start typing a command or instruction in Aider that includes part of a filename (e.g., look into H(...)).
  2. When the gray menu appears, use the tab key to autocomplete the filename (e.g., Hero.svelte).
  3. Complete the command and press enter.
  4. When prompted to add the file, select Y to confirm.
  5. Observe that:
    • The command computes correctly, and the file is added.
    • The automatic gray menu does not appear for subsequent typing unless Aider is restarted.
  6. Attempt using D for "Don't ask again" when prompted to add the file. Note that the file is not added, and Aider produces an error.

Expected Behavior

The automatic gray suggestion menu should continue to appear during typing after a file is added through prompt instructions, just as it does when using the /add command explicitly.


Actual Behavior

  • The menu disappears after adding a file via the typing-prompt method.
  • The menu does not reappear unless the tool is restarted.
  • Using the D option during the add prompt causes the file not to be added, and subsequent functionality depending on the file fails.

Additional Information

  • The issue does not occur if files are added explicitly via the /add command.
  • The issue negatively impacts usability as it forces manual knowledge of when to press the tab key for autocompletion.

Version and model info

Aider v0.69.1
Model: openrouter/anthropic/claude-3-5-haiku-20241022 with whole edit format +sonnet-3.5 with default options (unlimited output etc)
Windows CMD + PS on Win10

@FullThrottle
Copy link

I have also observed the suggestion menu stops appearing immediately after Aider suggests adding a command or output to the chat, regardless if you respond yes or no to the prompt. You have to /quit and restart aider to get the suggestion menu back.
Windows 10
Sonnet 3.5
Aider v0.69.1

@paul-gauthier
Copy link
Collaborator

The fix should be available in the main branch. You can get it by installing the latest version from github:

aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works better for you.

@FullThrottle
Copy link

Hi Paul. I took a quick look, and the suggestion menu appears to be working again, but I'm not sure the /run command is working anymore.
This was working but generates no output/errors now:
/run main transcript.txt
This still works fine:
uv run main transcript.txt

@github-actions github-actions bot added the question Further information is requested label Dec 26, 2024
@nanafy
Copy link
Author

nanafy commented Dec 26, 2024

Works. Thank you so much. Need to check the /run command too to verify comment above.

@nanafy
Copy link
Author

nanafy commented Dec 26, 2024

I think it is fixed. Run seems to work for me. I can open a new ticket, but I have a question if you could please help. I've been trying other agents, where they can see the outputs of the console and can run commands as well, but I like aider granular control better. I've been struggling to set this up with aider. I have been streaming the output of console to a log file and watching it, but its not that great. LLM keeps saying it wants me to add a new file to see the latest changes even though its being watched.

Is there a native solution to this?
I have not seen much discussion on this. I'd appreciate it. Thanks again.
I know there is linting built in, but its not that great without a console output.

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