* feat: add user agent support in profile configuration
* Introduced a new user agent field in profile settings, allowing users to specify a custom user agent.
* Updated relevant components and localization files to support the new user agent feature.
* Added a new pnpm workspace configuration for built dependencies.
* feat: enhance profile settings with user agent input and toggle functionality
* Added a user agent input field to the advanced profile settings.
* Implemented toggle icons for showing/hiding advanced settings.
* Updated layout to accommodate the new user agent input alongside the existing auth token field.
* chore: remove pnpm workspace configuration for built dependencies
Replace async SVG→Image→Canvas pipeline with synchronous Canvas rendering
to eliminate tray icon flickering. Use showTrafficRef to read showTraffic
value without recreating the IPC listener, preventing icon hiding caused
by appConfig temporarily becoming undefined during config reloads.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When adding a new subscription that becomes the current profile with
'diffWorkDir' enabled, 'generateProfile()' was not being called to
prepare the profile's working directory before the core was restarted.
This caused the working directory to be empty and missing necessary
database files (geoip, geosite, etc.), leading to proxies appearing
to work (showing green) but actually failing to function properly.
The fix ensures that when a new profile is added and becomes current
with 'diffWorkDir' enabled, 'generateProfile()' is explicitly called
before 'changeCurrentProfile()' to prepare the working directory.
Co-authored-by: Your Name <your-email@example.com>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>