Aider not creating files
Issue
I tried with several model combinations (all from OpenRouter) and in none of them Aider is creating new files when needed. It simply asks me if I want to add the file, then complains the file is not found and says it is dropping the file from the chat.
Example:
Let's analyze your existing files and make the necessary adjustments for
Cloudflare integration. Here are the required modifications:
1 Update docker-compose.yml Traefik service to use Cloudflare DNS challenge:
...
docker-compose.yml
Add file to the chat? (Y)es/(N)o/(D)on't ask again [Yes]:
/Users/acyment/dev/docker-compose.yml: file not found error
Dropping docker-compose.yml from the chat.
To clarify, the directory is currently empty
Version and model info
Aider version: 0.80.0 Python version: 3.12.9 Platform: macOS-15.3.2-arm64-arm-64bit Python implementation: CPython Virtual environment: Yes OS: Darwin 24.3.0 (64bit) Git version: git version 2.39.5 (Apple Git-154)
Aider 0.80.0 Main model: openrouter/deepseek/deepseek-r1 with architect edit format, prompt cache, infinite output Editor model: openrouter/deepseek/deepseek-chat-v3-0324 with editor-diff edit format Weak model: openrouter/deepseek/deepseek-chat Git repo: ../.git with 7 files Repo-map: using 4096 tokens, files refresh Restored previous conversation history.
This was created using /report. If I run ls -a no file shows up in the current directory.
I'm running into the same issue with gemini. Any luck?
Same problem, does aider only can edit existing files?
I think the issue is with the /architect mode. I recommend being extra careful when using it to check if some edition weren't missed. If there are, I manually copy form the .aider.chat.history.md file.
I think the issue is with the
/architectmode. I recommend being extra careful when using it to check if some edition weren't missed. If there are, I manually copy form the.aider.chat.history.mdfile.
More precisely, in at least some of the cases the issue seems to be that if I use the /architect (for example to create a readme.md) but it asks me at some point during the architect execution to add some files (say setup.py) to the context, if I refuse to add at least one of the files then the architect will believe to have created that readme without it being created.
Edit: even more precisely, even if I accept to add the file architect seems to sometimes not modify files. But I have a strong belief that as soon as that file prompt is used the architect will be partially ignored.