feat: add proxy configuration support (#335)#1890
Open
EvanYao826 wants to merge 1 commit into
Open
Conversation
Add proxy settings support to UI-TARS-desktop so users can configure HTTP/HTTPS proxy for all Node.js and Electron network requests. Changes: - Add proxy fields to settings schema (proxyEnabled, proxyMode, httpProxy, httpsProxy, noProxy) - Create proxy service that applies proxy settings to Electron session and Node.js environment variables - Add 'Proxy Settings' section in the Settings page with: - Enable/disable proxy toggle - System proxy vs custom proxy mode selection - HTTP proxy, HTTPS proxy, and no_proxy configuration fields - Proxy settings are auto-saved and applied on change via watch - Proxy is applied on app startup before any network requests - Watch settings changes to re-apply proxy dynamically Closes bytedance#335
✅ Deploy Preview for agent-tars-docs canceled.
|
✅ Deploy Preview for tarko canceled.
|
|
|
Author
|
I have already signed the CLA. @CLAassistant please recheck. |
1 similar comment
Author
|
I have already signed the CLA. @CLAassistant please recheck. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #335
Summary
Add proxy configuration support so users can set HTTP proxy for all Node.js network requests in the app. This solves the problem where Electron/Node.js requests don't use the system proxy.
Changes
Proxy Service (
apps/ui-tars/src/main/services/proxy.ts)session.defaultSessionviasetProxy()HTTP_PROXY,HTTPS_PROXY,NO_PROXYenvironment variables for Node.js HTTP clientshttp://if no protocol)Settings UI (
apps/ui-tars/src/renderer/src/components/Settings/category/proxy.tsx)Settings Integration
PresetSchema(Zod validation)DEFAULT_SETTINGHow It Works
Fixes #335