-
Notifications
You must be signed in to change notification settings - Fork 1.5k
UI Prefers global modes json over built-in modes but agents do not #2558
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
Comments
Hello @strawgate! I'm Dosu, here to help you solve bugs, answer questions, and assist you in becoming a contributor. I'm available while you wait for a human maintainer. Let's tackle this together! The issue you're encountering seems to be related to the precedence of global modes JSON files over built-in modes in the UI versus the agent behavior. According to the documentation, the configuration files and settings dictate the behavior of mode selection for agents. Specifically, project-level configurations from However, it appears that while the UI correctly prioritizes the global modes JSON, the agent does not update its prompt based on the new global modes file. This discrepancy might be due to how the agent loads and applies prompts, which may not be fully aligned with the UI's behavior. Unfortunately, I couldn't find specific details in the repository about the logic for handling conflicts between global and built-in mode slugs for agents. This might be an area that requires further investigation or a bug report to address the inconsistency. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Thanks for flagging! We'll take a look. |
I can't get rid of the default modes, they are stuck and its messing up my entire roo set up since my orchestrator keeps changing to the default modes instead of the ones I set up. I ccan't figure out how to delete the default modes or overwrite them.!!!! |
Would love to be able to override them as well and delete them |
@strawgate I'm unable to repro this - when I override in the global modes the role definition and custom instructions seem to take effect in the prompt. |
Thank you @strawgate, let me see if I can repro this. |
Strange, still not able to repro |
I'm also unable to reproduce it. Do you still have this issue @strawgate ? Any particular flow to cause this? I tried changing it through the UI, through the custom_modes.json file (just like yours), and the System Message is always showing my custom role, not the default. |
okay I see what the flow that causes the problem is
If you do not first edit the mode in the UI before reusing the slug then you have no problem |
Ahhh that helps, thank you |
I could fix this |
When defining the global modes json with a slug that matches a built-in mode slug. The UI shows the prompt from the file but the agent is passed the prompt saved from before the global modes file was introduced with the slug.
Ex
Originally posted by @strawgate in #2542 (comment)
The text was updated successfully, but these errors were encountered: