-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unexpected architect mode like behaviour #2677
Comments
Thanks for trying aider and filing this issue. This doc may be helpful: https://aider.chat/docs/troubleshooting/edit-errors.html How many tokens are you sending? What does |
The two input files and created files themselves are rather small
and as you can see in the attached chat history, my initial prompt + system prompt + files is only 2.8k Token and aiders first request gets finished with this:
And then it starts over providing the file creation output to create the 6 files, this time successfully creating them:
Interestingly, the query to add the (for my request) unrelated |
I have the strong suspicion that this is really related to the files aider wants to add and it happens for simple prompts too.
and start over eventually succeeding with the second request:
|
Issue
Hi,
I'm not sure if my prompt is just too much for Sonnet or aider actually fails to detect file creation. In my case aider behaves as if run in architect mode. The first response looks legit, but nevertheless the model starts over without aider creating the files.
Command:
aider --sonnet --file C:/Users/pwegner/IdeaProjects/KeycloakUI/src/main/kotlin/Main.kt --file C:/Users/pwegner/IdeaProjects/KeycloakUI/build.gradle.kts --file C:/Users/pwegner/IdeaProjects/KeycloakUI/src/main/kotlin/Main.kt --yes --no-suggest-shell-commands --no-pretty --no-fancy-input --no-detect-urls -m $message
where $message isAdvanced prompt to create a few md files before starting implementation of a spring boot + react app
SYSTEM Create plan files in .coding-aider-plans before making code changes:SYSTEM File Requirements:
SYSTEM Content Guidelines:
Context YAML format:
files:readOnly: false
SYSTEM Implementation:
Create/update plan files first
Implement changes step by step
Keep context.yaml current with all needed files
SYSTEM No plan exists yet. Write a detailed description of the requested feature and the needed changes.
SYSTEM The main plan file should include these sections: ## Overview, ## Problem Description, ## Goals, ## Additional Notes and Constraints, ## References
SYSTEM Save the plan in a new markdown file with a suitable name in the .coding-aider-plans directory.
SYSTEM 1. Name format: mainplan_subfeature (e.g. authentication_login)
SYSTEM 2. Create all three files per subplan:
SYSTEM 3. Reference format in main plan:
Subplan: Subfeature Name
SYSTEM 4. Add to main checklist: - [ ] Complete subfeature implementation
SYSTEM 5. Subplan checklists need:
SYSTEM 6. Ensure the main plan checklist properly delegates actual implementation to the subplans
SYSTEM Create separate checklist and context.yaml files for the main plan and each subplan to track the progress of implementing the plan.
SYSTEM For the context.yaml, consider all provided files and add relevant files to the affected context.yaml.
SYSTEM Only proceed with changes after creating and committing the plan files.
SYSTEM Ensure that you stick to the defined editing format when creating or editing files, e.g. only have the filepath above search blocks.
< STRUCTURED MODE> i want to create a fancy ui app for basic keycloak functionality like creating users and assigning roles.
the app should consist of a server (spring boot 3 backend) with a reactjs frontend
the compiled frontend should be served by the backend as well as a wrapper api that proxies to keycloaks apis
define or modify gradle tasks that will use a node gradle plugin to build the frontend and bundle it in the backend jar
ideally the bootRun task will run a function backend with contained frontent
developers working with the project should only have to install a suitable jdk, the gradle wrapper gradle plugins will ensure all other dev dependencies are provided
there is no need for global npm or gradle setup </STRUCTURED MODE>
SYSTEM Make sure to commit the creation of all plan files and don't start the implementation.
SYSTEM Never ask Would you like me to proceed with the initial implementation steps?
Instead of actually creating the files, it wants to add an unrelated file (that gets confirmed by -y) and proceeds to basically start over. I know it's lengthy and not the ideal minimal example but here is the chat history aider.chat.history_excerpt.md
Is this a failed edit format?
Version and model info
Aider v0.69.1
Main model: claude-3-5-sonnet-20241022 with diff edit format, infinite output
The text was updated successfully, but these errors were encountered: