You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(settings): Add API cost limit to auto-approval settings
This commit introduces a new auto-approval setting that allows users to define a maximum API cost. The system will automatically approve requests up to this cost limit before prompting the user for approval to continue the task.
Key changes include:
- Added `allowedMaxCost` to `globalSettingsSchema` in `@packages/types`.
- Implemented cost tracking and limit enforcement in `Task.ts`.
- Integrated `allowedMaxCost` into `ClineProvider` and `webviewMessageHandler` for state management.
- Created new UI components `CostInput`, `FormattedTextField`, and `MaxLimitInputs` in `webview-ui` to handle cost input and formatting.
- Updated `AutoApproveMenu` and `AutoApproveSettings` to include the new cost limit input.
- Added new Storybook stories for `AutoApproveMenu` and `AutoApproveSettings`.
- Included new test files for `FormattedTextField` and `MaxCostInput`.
- Updated i18n localization files across all supported languages to include new strings for the API cost limit setting.
0 commit comments