-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Split subtask approval settings #2482
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
Conversation
|
| mode: "ask", | ||
| alwaysAllowModeSwitch: true, | ||
| alwaysAllowSubtasks: true, | ||
| alwaysAllowSubtaskCreation: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only feedback on this - I wonder if we should stick to the alwaysAllowSubtasks key for the creation, and preserve their current setting. Otherwise the settings are going to get cleared out for everyone right?
I guess we could also add migration logic that sets the value of both new keys to the value of the old key - that might not be so bad. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially I didn't change it for the same reason, but as I was working on it I thought it would be important to maintain clarity in the code going forward (already too many references to "subtasks".)
Adding some migration logic I suppose would be easy, just have no idea where exactly to put it. Even easier would be to just put a notice in the changelog that this setting will now be reset to defaults and people should double check their config after the update. People do read changelogs, right? That way there's no need to leave some migration code hanging around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think people read in general :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do have a migrateSettings method called from extension.ts
|
@Cdddo We're going to close this because it seems to add complexity for an edge case that may not be broadly applicable. If the user must manually approve task completion, it would effectively shift Roo into a semi-automatic state, defeating much of the advantage of automatic orchestration. Typically, orchestration should either fully automate or require consistent manual oversight, not sit in-between. We believe the scenario you're addressing could be better handled through custom modes or tailored prompting. That said, we're happy to explore this further if you'd like to open a detailed issue proposal following our issue-first approach. We appreciate your effort. Sorry for the delay on this. |
Context
I split the setting to auto-approve subtask creation and completion into two separate settings. Having them be combined is a nuisance because it's generally fine to let Roo create subtasks automatically, but unfortunately too often it tries to complete them when they're still incomplete or buggy. This way we can allow it to make all the subtasks it wants but give the user control on when they are truly completed.
Implementation
I added a new setting "AlwaysAllowSubtaskCompletion" and also renamed the older setting from "AlwaysAllowSubtasks" to "AlwaysAllowSubtaskCreation" for clarity. This means that the settings users had saved for subtasks will be now set to the default values.
Screenshots
How to Test
Use boomerang mode. Play with the auto-approve settings.
Get in Touch
My discord handle in the RooCode server is Hyper.
Important
Splits subtask approval into separate settings for creation and completion, updating code and UI components accordingly.
AlwaysAllowSubtasksintoAlwaysAllowSubtaskCreationandAlwaysAllowSubtaskCompletionfor separate control over subtask creation and completion.subtasks.test.ts,roo-code-defaults.ts, androo-code.tsto use new settings.ClineProvider.tsandwebviewMessageHandler.tsto handle new settings.AutoApproveMenu.tsx,ChatView.tsx, andAutoApproveSettings.tsxto reflect new settings.This description was created by
for 762ec17. It will automatically update as commits are pushed.