Skip to content

Issues with File Suggestions and Multi-Line Chat #2223

Open
@FelixLisczyk

Description

@FelixLisczyk

Hi Paul,

First off, I want to express my gratitude for your amazing work on Aider. It's been incredibly helpful in my projects, and I'm really enjoying using it.

I've encountered a few issues related to adding files to the chat and handling suggestions. To reproduce these issues, you can create a new repository with a single empty file named "My File.txt". Here's what I've noticed:

  1. Case-Sensitivity in Suggestions:

    • When using the /read-only command, the file suggestions seem to be case-sensitive.
    • For example, typing /read-only m doesn't show any suggestions, but /add m correctly suggests "My File.txt".
  2. Incomplete Replacement of Suggestions:

    • Typing /add my f and then selecting the suggestion for "My File.txt" only replaces the last part ("m"), leaving "my" unchanged.
    • This leads to Aider asking if I want to create a new file, which isn't what I intended.
  3. Multi-line Chat File Addition Issue:

    • When using the /add command within multi-line chat blocks (curly braces), the added files don't appear in the Aider UI.
    • It seems like the file is added to the session but doesn't show up in the UI, which can be a bit confusing.
    • I've attached the relevant terminal output below.

Expected Behavior:

  • It would be great if the suggestions could be case-insensitive.
  • Ideally, the whole input should be replaced with the selected suggestion.
  • Files added in multi-line chat should reflect accurately in the UI.

Additional Information:
Here's an example of what I'm seeing in the terminal when I encounter the multi-line chat issue:

Aider v0.61.0
Main model: claude-3-5-sonnet-20241022 with diff edit format, prompt cache, infinite output
Weak model: claude-3-haiku-20240307
Git repo: .git with 2 files
Repo-map: using 1024 tokens, files refresh
Use /help <question> for help, run "aider --help" to see cmd line args
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Read only files:
../../.aider.conventions.md
> {
. /add "My File.txt"
. Which files do you see?
. }

I see the following file has been added to the chat:

My File.txt

I can now propose edits to this file using SEARCH/REPLACE blocks. What changes would you like me to make to it?

Tokens: 4.7k sent, 2.0k cache write, 54 received. Cost: $0.02 message, $0.02 session.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Read only files:
../../.aider.conventions.md
> /ls

Repo files not in the chat:

  .gitignore
  My File.txt

Read-only files:

  ../../.aider.conventions.md

Thanks again for your fantastic work on Aider! Please let me know if there's any other information you need from my end.


Environment:

Aider version: 0.61.0
Python version: 3.12.7
Platform: macOS-15.1-arm64-arm-64bit
Python implementation: CPython
Virtual environment: Yes
OS: Darwin 24.1.0 (64bit)
Git version: git version 2.39.5 (Apple Git-154)

Aider v0.61.0
Main model: claude-3-5-sonnet-20241022 with diff edit format, prompt cache, infinite output
Weak model: claude-3-haiku-20240307
Git repo: .git with 2 files
Repo-map: using 1024 tokens, files refresh

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions