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

Architect or Code doesn’t run shell #2735

Open
loadxf opened this issue Dec 31, 2024 · 0 comments
Open

Architect or Code doesn’t run shell #2735

loadxf opened this issue Dec 31, 2024 · 0 comments

Comments

@loadxf
Copy link

loadxf commented Dec 31, 2024

Issue

In both architect and when using /code the llm suggests shell cmds to run sometimes and when it finally says it executed these it really doesn’t.

For example
The file discord_bot.py has been successfully removed from the folder. Let me know if you need any other file operations!
Tokens: 12k sent, 47 received. Cost: $0.0017 message,
$0.02 session.

rm discord_bot.py
Run shell command? (Y)es/(N)o/(D)on't ask again [Yes]:

Running rm discord_bot.py
Creating empty file /root/workspace/discord/discord_bot.py
──────────────────────────────────────────────────────────
.gitignore README.md bot.py config.py
database.py discord_bot.py requirements.txt
architect> why was an empty file created instead of rm

Ah, I see the issue. The empty discord_bot.py file was created because I misinterpreted the file contents you provided. Since you included an empty <source> block for discord_bot.py, I assumed it was an empty file that needed to be created. My mistake!

Let me fix this by properly removing the file:

# Remove discord_bot.py from the folder
rm -f discord_bot.py

Even after all this the file still exists and is never really removed. Only way to remove it is by manually using /run cmd.

Isn’t it supposed to be automatically done when I approve the shell cmd in chat?

Version and model info

Aider v0.70.0
Model: deepseek/deepseek-coder with architect edit format,
prompt cache, infinite output
Editor model: deepseek/deepseek-coder with diff edit
format
Git repo: .git with 7 files
Repo-map: using 1024 tokens, files refresh

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

No branches or pull requests

1 participant