Skip to content

Conversation

@hassoncs
Copy link
Contributor

@hassoncs hassoncs commented May 14, 2025

Introduce the "auto-approve request count" feature from Cline. This is the first minor UI feature I've added, so please let me know if I'm missing anything! (translations, organization, etc!)

Please see commits for details

  • introduce allowedMaxRequests to globalSettingsSchema
  • update ExtensionState and its context with allowedMaxRequests
  • implement UI for setting max requests in AutoApproveMenu component
  • prompt user when auto-approval limit is reached with i18n support
  • increment consecutiveAutoApprovedRequestsCount and reset upon user approval
  • add translations for auto-approved request limit reached prompt in multiple languages
  • add new UI for "auto_approval_max_req_reached" in ChatRowContent
  • display prompt with title, description, and button for user action
image image

@changeset-bot
Copy link

changeset-bot bot commented May 14, 2025

🦋 Changeset detected

Latest commit: 2f1c838

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

- Introduce allowedMaxRequests property to manage the maximum number of auto-approved API requests.
- Update ClineProvider, webviewMessageHandler, and other related components to handle allowedMaxRequests.
- Modify AutoApproveMenu and SettingsView to include UI for setting allowedMaxRequests.
- Enhance ExtensionStateContext to manage the state of allowedMaxRequests.
@hassoncs hassoncs force-pushed the cline-max-requests branch from 90f86dd to cfb94d6 Compare May 14, 2025 18:11
- introduce handling for maximum auto-approved requests
- increment consecutiveAutoApprovedRequestsCount and reset upon user approval
- prompt user when auto-approval limit is reached with i18n support

🌐 i18n(locales): add auto-approval limit reach translations

- add translations for auto-approved request limit reached prompt in multiple languages
- update kilocode.json files to include new translation keys

♻ refactor(chat): handle new auto-approval max request case in ChatRow

- add case handling for "auto_approval_max_req_reached" in ChatRowContent
- display prompt with title, description, and button for user action
@hassoncs hassoncs force-pushed the cline-max-requests branch 2 times, most recently from 8f08984 to 2f63c37 Compare May 14, 2025 21:33
@hassoncs hassoncs marked this pull request as ready for review May 14, 2025 21:34
@hassoncs hassoncs force-pushed the cline-max-requests branch 2 times, most recently from e2ddbb3 to b6e5000 Compare May 14, 2025 22:02
- introduce AutoApprovedRequestLimitWarning component for better user feedback
- enhance user interface by displaying warning for auto-approved request limits
- move allowedMaxRequests retrieval closer to usage for improved code readability
- add kilocode_change comment in schema for better context understanding
@hassoncs hassoncs force-pushed the cline-max-requests branch from b6e5000 to cfe9e3b Compare May 14, 2025 22:04
Copy link
Collaborator

@kevinvandijk kevinvandijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥🔥🔥

Approved for convenience sake but just with one sidenote: since AutoApprovedRequestLimitWarning is a newly added "kilocode component" (as in: it's not from our source Roo). I would prefer adding it to components/kilocode/chat. Just to keep the proper separation going, if you agree? If not also perfectly fine, lets merge it :)

@mrubens
Copy link
Contributor

mrubens commented May 15, 2025

In case it helps make a call, we’ll probably merge this one back in. Thank you!

@hassoncs
Copy link
Contributor Author

@kevinvandijk, I added a couple commits to remove the kilo specific parts then I opened a PR for Roo here:
RooCodeInc/Roo-Code#3631 cc @mrubens

@hassoncs hassoncs force-pushed the cline-max-requests branch from 5713f02 to 2f1c838 Compare May 15, 2025 17:45
Copy link
Collaborator

@kevinvandijk kevinvandijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love that we can finally start contributing back to Roo Code! Only adding the "request changes" to block people from merging this for now. If Roo merges this that's awesome and then let's just close this and wait for that!

@hassoncs
Copy link
Contributor Author

This merged on the Roo side! Closing this PR :)

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

Successfully merging this pull request may close these issues.

4 participants