feat: add privacy settings for time and timezone in context #8733
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses Issue #8731 by adding privacy settings that allow users to control whether current time and timezone information is included in AI request contexts.
Changes
Core Implementation
Added privacy settings to ProviderSettings ()
includeCurrentTime: Controls whether current time is included (defaults to true)includeTimezone: Controls whether timezone is included (defaults to true, disabled when current time is disabled)Updated environment details generation ()
User Interface
Created PrivacySettings component ()
Integrated into Settings panel ()
Localization
Testing
Review Results
The implementation was reviewed with a 95% confidence score:
Testing
Screenshots
Privacy settings appear in the Settings panel under a new "Privacy" section, with clear descriptions of what each setting controls.
Fixes #8731
Important
Adds privacy settings for time and timezone inclusion in AI contexts, with UI integration and comprehensive testing.
includeCurrentTimeandincludeTimezonesettings toProviderSettingsinprovider-settings.ts.getEnvironmentDetails()ingetEnvironmentDetails.tsto conditionally include time/timezone based on settings.PrivacySettingscomponent inPrivacySettings.tsxwith checkboxes for new settings.PrivacySettingsintoSettingsView.tsxunder a new "Privacy" section.settings.json.getEnvironmentDetails.spec.tsto verify time/timezone inclusion based on settings.This description was created by
for 286fdbb. You can customize this summary. It will automatically update as commits are pushed.